at.spardat.enterprise.util
Class PropertiesToADomainFormat
java.lang.Object
at.spardat.enterprise.util.PropertiesToADomainFormat
- public class PropertiesToADomainFormat
- extends java.lang.Object
This class (with a main method) transforms files in the old java .properties
format to the new ADomain format.
As input to the main method the directory with the .properties files has to be stated.
Under this directory a new directory 'newdomains' with the domains in the new format is created.
Example old format (ress):
# example of a ress-type .properties-file
fe=female
ma=male
un=unknown
Example new format (res/rsc):
# example of a res-type .properties-file
COLS=COD_KEY,SHORT_VALUE,LONG_VALUE,VALID_FROM,VALID_TO,STATUS
10="fe","fe","weiblich"
20="ma","ma","maennlich"
30="un","un","unbekannt"
For the filters as used in the EBV a special behauvior is implemented:
The EBV has domain entries like '_FILTER_VERFUEGER=0,2,1,S,3' specifying a filter.
For entries like these a new domain file in the new format with only the values from the filter
is generated. This file has a name like example 'originaldomain_verfueger.properties'.
Right now this behauvior cannot be changed by configuration, this may be implemented in a later version.
- Since:
- version_number
- Author:
- s3460
|
Method Summary |
static void |
main(java.lang.String[] args)
|
void |
read(java.lang.String directory)
Reads a directory with .properties files representing domains in the old .properties format. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PropertiesToADomainFormat
public PropertiesToADomainFormat()
read
public void read(java.lang.String directory)
- Reads a directory with .properties files representing domains in the old .properties format.
- Parameters:
directory - - Since:
- version_number
main
public static void main(java.lang.String[] args)
- Parameters:
args - - Since:
- version_number