org.gvsig.i18n.utils
Class ConfigOptions

java.lang.Object
  extended byorg.gvsig.i18n.utils.ConfigOptions

public class ConfigOptions
extends java.lang.Object


Field Summary
 java.lang.String databaseDir
           
 java.lang.String defaultBaseDir
           
 java.lang.String defaultBaseName
           
 java.lang.String[] defaultSrcDirs
           
 java.lang.String inputDir
           
 java.lang.String[] languages
           
 java.lang.String outputDir
           
 java.lang.String outputEncoding
          The character encoding of the generated output files for missing keys.
 java.lang.String[] outputLanguages
           
 java.util.ArrayList projects
           
 java.lang.String sourceKeys
           
 java.lang.String sourcesEncoding
          The character encoding of the Java source files, used to search keys in the sources.
 
Constructor Summary
ConfigOptions()
          Creates a new ConfigOptions object.
ConfigOptions(java.lang.String configFileName)
          Creates a new ConfigOptions object, defining the config file to use.
 
Method Summary
static java.lang.String getAbsolutePath(java.lang.String baseDir, java.lang.String path)
          Calculates the canonical path for the given path.
 java.lang.String getConfigFile()
          Gets the name of the config file in use.
 boolean load()
          Loads the config parameters and the projects to consider from the XML config file
 void setConfigFile(java.lang.String configFileName)
          Sets the name of the config file to use.
 void setLanguages(java.lang.String[] languages)
           
 void setProjects(java.util.ArrayList projectList)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

defaultBaseName

public java.lang.String defaultBaseName

defaultBaseDir

public java.lang.String defaultBaseDir

databaseDir

public java.lang.String databaseDir

languages

public java.lang.String[] languages

projects

public java.util.ArrayList projects

sourceKeys

public java.lang.String sourceKeys

outputLanguages

public java.lang.String[] outputLanguages

outputDir

public java.lang.String outputDir

inputDir

public java.lang.String inputDir

defaultSrcDirs

public java.lang.String[] defaultSrcDirs

sourcesEncoding

public java.lang.String sourcesEncoding
The character encoding of the Java source files, used to search keys in the sources.


outputEncoding

public java.lang.String outputEncoding
The character encoding of the generated output files for missing keys.

Constructor Detail

ConfigOptions

public ConfigOptions()
Creates a new ConfigOptions object.


ConfigOptions

public ConfigOptions(java.lang.String configFileName)
Creates a new ConfigOptions object, defining the config file to use.

Parameters:
configFileName - The file name of the config file to use.
Method Detail

setConfigFile

public void setConfigFile(java.lang.String configFileName)
Sets the name of the config file to use.

Parameters:
configFileName -

getConfigFile

public java.lang.String getConfigFile()
Gets the name of the config file in use.

Returns:
The name of the config file in use.

load

public boolean load()
Loads the config parameters and the projects to consider from the XML config file


setLanguages

public void setLanguages(java.lang.String[] languages)

setProjects

public void setProjects(java.util.ArrayList projectList)

getAbsolutePath

public static java.lang.String getAbsolutePath(java.lang.String baseDir,
                                               java.lang.String path)
                                        throws java.io.IOException
Calculates the canonical path for the given path. If the given path is relative, it is calculated from the given baseDir. The 'path' parameter uses the '/' character to as path separator. The returned value uses the default system separator as path separator.

Parameters:
baseDir -
path -
Returns:
Throws:
java.io.IOException