|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectschema2template.example.odf.SourceCodeModel
public class SourceCodeModel
Model for Java specific enhancements like common base classes for elements and Java valuetypes for valuetypes used in schema.
Constructor Summary | |
---|---|
SourceCodeModel(XMLModel model,
OdfModel odfmodel,
Map<String,String> elementnameBasenameMap,
Map<String,String[]> datatypeValueAndConversionMap)
Construct SourceCodeModel. |
Method Summary | |
---|---|
SourceCodeBaseClass |
getBaseclass(QNamed base)
Use in templates: Get baseclass by name |
SourceCodeBaseClass |
getBaseclass(String basename)
Use in templates: Get baseclass by name |
SortedSet<SourceCodeBaseClass> |
getBaseclasses()
Use in templates: Get all baseclasses |
SourceCodeBaseClass |
getBaseclassOf(QNamed subelement)
Use in templates: Get baseclass of one element |
String |
getConversiontype(QNamed datatype)
Use in templates: Get Java conversion class for datatype used in schema. |
String |
getConversiontype(String datatypename)
Use in templates: Get Java conversion class for datatype used in schema. |
String |
getPrimitiveType(String objectType)
Use in templates: Translate Java object to simple Java datatype |
String |
getValuetype(QNamed datatype)
Use in templates: Get Source code value type for datatype used in schema |
SortedSet<String> |
getValuetypes(PuzzleComponent datatypes)
Use in templates: Get source code value types for datatypes used in schema |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SourceCodeModel(XMLModel model, OdfModel odfmodel, Map<String,String> elementnameBasenameMap, Map<String,String[]> datatypeValueAndConversionMap)
model
- the XMLModelodfmodel
- the OdfModelelementnameBasenameMap
- the mapping from element names to source code base class namesdatatypeValueAndConversionMap
- the mapping from schema datatype to {source code types, name of conversion class}Method Detail |
---|
public SourceCodeBaseClass getBaseclassOf(QNamed subelement)
subelement
- element
public SortedSet<SourceCodeBaseClass> getBaseclasses()
public SourceCodeBaseClass getBaseclass(String basename)
basename
- name of baseclass
public SourceCodeBaseClass getBaseclass(QNamed base)
base
- name of baseclass
public String getValuetype(QNamed datatype)
datatype
-
public SortedSet<String> getValuetypes(PuzzleComponent datatypes)
datatypes
- Schema datatypes
public String getPrimitiveType(String objectType)
objectType
- like "Boolean"
public String getConversiontype(QNamed datatype)
datatype
- Source code datatype
public String getConversiontype(String datatypename)
datatypename
- Source code datatypename
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |