org.cip4.jdflib.extensions
Class XJDFSchemaCreator

java.lang.Object
  extended by org.cip4.jdflib.elementwalker.ElementWalker
      extended by org.cip4.jdflib.elementwalker.BaseElementWalker
          extended by 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

Author:
Rainer Prosi, Heidelberger Druckmaschinen *

Nested Class Summary
protected  class XJDFSchemaCreator.WalkChildProduct
           
protected  class XJDFSchemaCreator.WalkDependent
           
protected  class XJDFSchemaCreator.WalkDeviceCap
           
protected  class XJDFSchemaCreator.WalkElement
           
protected  class XJDFSchemaCreator.WalkEnumerationType
           
protected  class XJDFSchemaCreator.WalkEvaluation
           
protected  class XJDFSchemaCreator.WalkIgnore
          any matching class will be removed with extreme prejudice...
protected  class XJDFSchemaCreator.WalkJobPhase
           
protected  class XJDFSchemaCreator.WalkNiCi
           
protected  class XJDFSchemaCreator.WalkNode
          the base of all schema creation walkers
protected  class XJDFSchemaCreator.WalkProduct
           
protected  class XJDFSchemaCreator.WalkProductList
           
protected  class XJDFSchemaCreator.WalkResource
          the class for XJDF Resource Parameter etc elements
protected  class XJDFSchemaCreator.WalkResourceElement
           
protected  class XJDFSchemaCreator.WalkResourcePhysical
          the class for XJDF Resource Parameter etc elements
protected  class XJDFSchemaCreator.WalkResSet
           
protected  class XJDFSchemaCreator.WalkRoot
          class for the classes list root - does nothing special
protected  class XJDFSchemaCreator.WalkState
           
protected  class XJDFSchemaCreator.WalkTerm
           
protected  class XJDFSchemaCreator.WalkTest
           
protected  class XJDFSchemaCreator.WalkTextElement
           
 
Field Summary
 boolean bSpanAsAttribute
          if true, spans are made to a simple attribute rather than retained as span
protected  HashMap<String,org.apache.commons.lang.enums.ValuedEnum> enumMap
           
 
Fields inherited from class org.cip4.jdflib.elementwalker.BaseElementWalker
log
 
Fields inherited from class org.cip4.jdflib.elementwalker.ElementWalker
theFactory
 
Constructor Summary
XJDFSchemaCreator(File baseDir, File output)
           
 
Method Summary
protected  KElement appendSimpleType(KElement baseElem, String typName, String baseType, VString v)
           
 void create()
           
protected  String getEnumName(org.apache.commons.lang.enums.ValuedEnum valuedEnum)
           
protected  VString getEnumVector(org.apache.commons.lang.enums.ValuedEnum ve)
           
protected  String getTypeName(AttributeInfo.EnumAttributeType typ)
           
 
Methods inherited from class org.cip4.jdflib.elementwalker.BaseElementWalker
constructWalkers, getFactory
 
Methods inherited from class org.cip4.jdflib.elementwalker.ElementWalker
toString, walkTree, walkTreeKidsFirst
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

bSpanAsAttribute

public boolean bSpanAsAttribute
if true, spans are made to a simple attribute rather than retained as span


enumMap

protected final HashMap<String,org.apache.commons.lang.enums.ValuedEnum> enumMap
Constructor Detail

XJDFSchemaCreator

public XJDFSchemaCreator(File baseDir,
                         File output)
Parameters:
baseDir -
output -
Method Detail

create

public void create()

getEnumName

protected String getEnumName(org.apache.commons.lang.enums.ValuedEnum valuedEnum)
Parameters:
valuedEnum -
Returns:

getTypeName

protected String getTypeName(AttributeInfo.EnumAttributeType typ)
Parameters:
typ -
Returns:

appendSimpleType

protected KElement appendSimpleType(KElement baseElem,
                                    String typName,
                                    String baseType,
                                    VString v)
Parameters:
baseElem -
typName -
baseType -
v -
Returns:

getEnumVector

protected VString getEnumVector(org.apache.commons.lang.enums.ValuedEnum ve)
Parameters:
ve -
Returns:


Copyright © 2013. All Rights Reserved.