org.gvsig.i18n.utils
Class Project

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

public class Project
extends java.lang.Object

Convenience class to manage the attributes of the project tag from the config.xml file.

Author:
cesar

Field Summary
 java.lang.String basename
           
 java.util.HashMap dictionaries
          Stores the associated dictionaries.
 java.lang.String dir
           
 java.lang.String propertyDir
          The directory which stores the property files of the project.
 java.lang.String sourceKeys
          Source of the keys: whether they are loaded from the property files of the project or they are searched inside the sources.
 java.lang.String[] srcDirs
          Stores the subdirectories containing sources.
 
Constructor Summary
Project()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dir

public java.lang.String dir

basename

public java.lang.String basename

propertyDir

public java.lang.String propertyDir
The directory which stores the property files of the project.


sourceKeys

public java.lang.String sourceKeys
Source of the keys: whether they are loaded from the property files of the project or they are searched inside the sources.


dictionaries

public java.util.HashMap dictionaries
Stores the associated dictionaries. Each value of the HashMap is a Properties object, containing the translations for each language.

Example:

Properties dictionary = (Properties)dictionaries.get("es");


srcDirs

public java.lang.String[] srcDirs
Stores the subdirectories containing sources. When searching for keys in the source files, only these subdirectories will be searched.

Constructor Detail

Project

public Project()