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
- Author:
- Rainer Prosi, Heidelberger Druckmaschinen *
|
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
|
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
XJDFSchemaCreator
public XJDFSchemaCreator(File baseDir,
File output)
- Parameters:
baseDir - output -
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.