Package org.cip4.jdflib.extensions
Class XJDFSchemaCreator
- java.lang.Object
-
- org.cip4.jdflib.elementwalker.ElementWalker
-
- org.cip4.jdflib.elementwalker.BaseElementWalker
-
- org.cip4.jdflib.extensions.XJDFSchemaCreator
-
public class XJDFSchemaCreator extends BaseElementWalker
class to generate a jdf 2.0 schema from the jdf 1.x java library concepts: keep things - mainly data type declarations - local whenever possible remove all deprecated elements TODO devcaps TODO add all generic elements where appropriate
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected classXJDFSchemaCreator.WalkChildProductprotected classXJDFSchemaCreator.WalkDependentprotected classXJDFSchemaCreator.WalkDeviceCapprotected classXJDFSchemaCreator.WalkElementprotected classXJDFSchemaCreator.WalkEnumerationTypeprotected classXJDFSchemaCreator.WalkEvaluationprotected classXJDFSchemaCreator.WalkIgnoreany matching class will be removed with extreme prejudice...protected classXJDFSchemaCreator.WalkJobPhaseprotected classXJDFSchemaCreator.WalkNiCiprotected classXJDFSchemaCreator.WalkNodethe base of all schema creation walkersprotected classXJDFSchemaCreator.WalkProductprotected classXJDFSchemaCreator.WalkProductListprotected classXJDFSchemaCreator.WalkResourcethe class for XJDF Resource Parameter etc elementsprotected classXJDFSchemaCreator.WalkResourceElementprotected classXJDFSchemaCreator.WalkResourcePhysicalthe class for XJDF Resource Parameter etc elementsprotected classXJDFSchemaCreator.WalkResSetprotected classXJDFSchemaCreator.WalkRootclass for the classes list root - does nothing specialprotected classXJDFSchemaCreator.WalkStateprotected classXJDFSchemaCreator.WalkTermprotected classXJDFSchemaCreator.WalkTestprotected classXJDFSchemaCreator.WalkTextElement
-
Field Summary
Fields Modifier and Type Field Description booleanbSpanAsAttributeif true, spans are made to a simple attribute rather than retained as spanprotected java.util.HashMap<java.lang.String,org.apache.commons.lang.enums.ValuedEnum>enumMap-
Fields inherited from class org.cip4.jdflib.elementwalker.ElementWalker
theFactory
-
-
Constructor Summary
Constructors Constructor Description XJDFSchemaCreator(java.io.File baseDir, java.io.File output)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected KElementappendSimpleType(KElement baseElem, java.lang.String typName, java.lang.String baseType, VString v)voidcreate()protected java.lang.StringgetEnumName(org.apache.commons.lang.enums.ValuedEnum valuedEnum)protected VStringgetEnumVector(org.apache.commons.lang.enums.ValuedEnum ve)protected java.lang.StringgetTypeName(AttributeInfo.EnumAttributeType typ)-
Methods inherited from class org.cip4.jdflib.elementwalker.BaseElementWalker
getFactory
-
Methods inherited from class org.cip4.jdflib.elementwalker.ElementWalker
toString, walkTree, walkTreeKidsFirst
-
-
-
-
Method Detail
-
create
public void create()
-
getEnumName
protected java.lang.String getEnumName(org.apache.commons.lang.enums.ValuedEnum valuedEnum)
- Parameters:
valuedEnum-- Returns:
-
getTypeName
protected java.lang.String getTypeName(AttributeInfo.EnumAttributeType typ)
- Parameters:
typ-- Returns:
-
appendSimpleType
protected KElement appendSimpleType(KElement baseElem, java.lang.String typName, java.lang.String baseType, VString v)
- Parameters:
baseElem-typName-baseType-v-- Returns:
-
getEnumVector
protected VString getEnumVector(org.apache.commons.lang.enums.ValuedEnum ve)
- Parameters:
ve-- Returns:
-
-