opale.tools
Class OTCG
java.lang.Object
|
+--opale.tools.OTCG
- public class OTCG
- extends java.lang.Object
This class make it possible to generate Java program files that contain a data base. It works from two files : the first represents the model of data and the second the data according this model. An exemple is in the package opale.const : we can note the class Element that contains the list of atoms.
Format of model file :
nameClass
{
Field1 "what1" type
Field2 "what2" type
...
}
type
is a string that defines the type of the field : STRING, INT or DOUBLE
Format of data file :
nameObject1
{
valField1
valField2
...
}
nameObject2
{
valField1
valField2
...
}
...
- Since:
- Opale-tools 0.13
Constructor Summary |
OTCG()
|
Method Summary |
static void |
main(java.lang.String[] arg)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OTCG
public OTCG()
main
public static void main(java.lang.String[] arg)
throws MalformedFileException