Class 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
  • Field Details

    • 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 Details

    • XJDFSchemaCreator

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

    • 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: