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
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 ClassesModifier and TypeClassDescriptionprotected classprotected classprotected classprotected classprotected classprotected classprotected classany matching class will be removed with extreme prejudice...protected classprotected classprotected classthe base of all schema creation walkersprotected classprotected classprotected classthe class for XJDF Resource Parameter etc elementsprotected classprotected classthe class for XJDF Resource Parameter etc elementsprotected classprotected classclass for the classes list root - does nothing specialprotected classprotected classprotected classprotected class -
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanif true, spans are made to a simple attribute rather than retained as spanprotected final HashMap<String,ValuedEnum> Fields inherited from class org.cip4.jdflib.elementwalker.ElementWalker
theFactory -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected KElementappendSimpleType(KElement baseElem, String typName, String baseType, VString v) voidcreate()protected StringgetEnumName(ValuedEnum valuedEnum) protected VStringprotected StringMethods inherited from class org.cip4.jdflib.elementwalker.BaseElementWalker
getFactoryMethods inherited from class org.cip4.jdflib.elementwalker.ElementWalker
toString, walkTree, walkTreeKidsFirst
-
Field Details
-
bSpanAsAttribute
public boolean bSpanAsAttributeif true, spans are made to a simple attribute rather than retained as span -
enumMap
-
-
Constructor Details
-
XJDFSchemaCreator
- Parameters:
baseDir-output-
-
-
Method Details
-
create
public void create() -
getEnumName
- Parameters:
valuedEnum-- Returns:
-
getTypeName
- Parameters:
typ-- Returns:
-
appendSimpleType
- Parameters:
baseElem-typName-baseType-v-- Returns:
-
getEnumVector
- Parameters:
ve-- Returns:
-