org.cip4.jdflib.extensions
Class XJDFSchemaCreator.WalkElement
java.lang.Object
org.cip4.jdflib.elementwalker.BaseWalker
org.cip4.jdflib.extensions.XJDFSchemaCreator.WalkElement
- All Implemented Interfaces:
- Comparable<BaseWalker>, IWalker
- Direct Known Subclasses:
- XJDFSchemaCreator.WalkChildProduct, XJDFSchemaCreator.WalkDependent, XJDFSchemaCreator.WalkDeviceCap, XJDFSchemaCreator.WalkEnumerationType, XJDFSchemaCreator.WalkIgnore, XJDFSchemaCreator.WalkJobPhase, XJDFSchemaCreator.WalkNode, XJDFSchemaCreator.WalkProduct, XJDFSchemaCreator.WalkProductList, XJDFSchemaCreator.WalkResource, XJDFSchemaCreator.WalkResourceElement, XJDFSchemaCreator.WalkResSet, XJDFSchemaCreator.WalkRoot, XJDFSchemaCreator.WalkState, XJDFSchemaCreator.WalkTerm, XJDFSchemaCreator.WalkTextElement
- Enclosing class:
- XJDFSchemaCreator
protected class XJDFSchemaCreator.WalkElement
- extends BaseWalker
- Author:
- Rainer Prosi, Heidelberger Druckmaschinen
|
Method Summary |
protected KElement |
appendSimpleTypeList(KElement schemaRoot,
String typeName,
String baseType)
|
protected void |
createbaseAttribs()
|
protected void |
createbaseElms()
|
protected void |
createSubstitutionBase(KElement out,
String name)
|
void |
finalizeWalk(KElement e,
KElement trackElem)
hook for guaranteed postwalk finalization |
protected XJDFSchemaCreator.WalkElement.VAttributeDescriptor |
getKnownAtts()
|
protected VString |
getKnownElms()
|
protected String |
getNewName(String string)
locally map attnames and elmnames |
protected XJDFSchemaCreator.WalkElement.AttributeDescriptor |
getSpanAttDesc(String s)
|
protected String |
getTypeForName(String elmName)
|
boolean |
matches(KElement e)
this is the check whether or not to use this walker for a given element should be overwritten |
void |
prepareWalk(KElement e,
KElement trackElem)
hook for guaranteed prewalk initialization |
protected KElement |
setComplexType(KElement out,
String name)
|
protected void |
setGeneric(KElement complexType,
boolean bID)
|
protected void |
setXSAttribute(KElement root,
String attName,
AttributeInfo.EnumAttributeType typ,
boolean required)
|
protected KElement |
setXSAttribute(KElement root,
String attName,
String typName,
boolean required,
org.apache.commons.lang.enums.ValuedEnum ve)
|
protected KElement |
setXSAttribute(XJDFSchemaCreator.WalkElement.AttributeDescriptor ad)
|
protected void |
setXSElement(KElement root,
String elmName)
|
KElement |
walk(KElement in,
KElement out)
the mother routine for walking.... |
complexType
protected KElement complexType
complexElement
protected KElement complexElement
baseAttribs
protected Set<String> baseAttribs
baseElms
protected Set<String> baseElms
refElms
protected Set<String> refElms
refsElms
protected Set<String> refsElms
myNodes
protected Set<String> myNodes
e2
protected KElement e2
XJDFSchemaCreator.WalkElement
public XJDFSchemaCreator.WalkElement()
createbaseAttribs
protected void createbaseAttribs()
walk
public KElement walk(KElement in,
KElement out)
- Description copied from class:
BaseWalker
- the mother routine for walking....
- Specified by:
walk in interface IWalker- Overrides:
walk in class BaseWalker
- Parameters:
in - out -
- Returns:
- not null if must continue
- See Also:
IWalker.walk(KElement, KElement)
setXSAttribute
protected KElement setXSAttribute(XJDFSchemaCreator.WalkElement.AttributeDescriptor ad)
- Parameters:
ad -
- Returns:
getNewName
protected String getNewName(String string)
- locally map attnames and elmnames
- Parameters:
string -
- Returns:
createbaseElms
protected void createbaseElms()
matches
public boolean matches(KElement e)
- Description copied from class:
BaseWalker
- this is the check whether or not to use this walker for a given element should be overwritten
- Overrides:
matches in class BaseWalker
- Parameters:
e -
- Returns:
- See Also:
BaseWalker.matches(org.cip4.jdflib.core.KElement)
finalizeWalk
public void finalizeWalk(KElement e,
KElement trackElem)
- Description copied from class:
BaseWalker
- hook for guaranteed postwalk finalization
- Specified by:
finalizeWalk in interface IWalker- Overrides:
finalizeWalk in class BaseWalker
- Parameters:
e - trackElem - - See Also:
BaseWalker.finalizeWalk(org.cip4.jdflib.core.KElement, org.cip4.jdflib.core.KElement)
prepareWalk
public void prepareWalk(KElement e,
KElement trackElem)
- Description copied from class:
BaseWalker
- hook for guaranteed prewalk initialization
- Specified by:
prepareWalk in interface IWalker- Overrides:
prepareWalk in class BaseWalker
- Parameters:
e - trackElem - - See Also:
BaseWalker.prepareWalk(org.cip4.jdflib.core.KElement, org.cip4.jdflib.core.KElement)
setXSAttribute
protected void setXSAttribute(KElement root,
String attName,
AttributeInfo.EnumAttributeType typ,
boolean required)
- Parameters:
root - attName - typ - required -
setXSAttribute
protected KElement setXSAttribute(KElement root,
String attName,
String typName,
boolean required,
org.apache.commons.lang.enums.ValuedEnum ve)
- Parameters:
root - attName - typName - required - ve - a valued enum to generate values
- Returns:
setGeneric
protected void setGeneric(KElement complexType,
boolean bID)
- Parameters:
complexType - bID -
setComplexType
protected KElement setComplexType(KElement out,
String name)
- Parameters:
out - name -
- Returns:
setXSElement
protected void setXSElement(KElement root,
String elmName)
- Parameters:
root - elmName -
getTypeForName
protected String getTypeForName(String elmName)
- Parameters:
elmName -
- Returns:
getSpanAttDesc
protected XJDFSchemaCreator.WalkElement.AttributeDescriptor getSpanAttDesc(String s)
- Parameters:
s -
- Returns:
getKnownAtts
protected XJDFSchemaCreator.WalkElement.VAttributeDescriptor getKnownAtts()
- Returns:
- See Also:
getKnownAtts()
getKnownElms
protected VString getKnownElms()
- Returns:
- See Also:
getKnownElms()
createSubstitutionBase
protected void createSubstitutionBase(KElement out,
String name)
- Parameters:
out - name -
appendSimpleTypeList
protected KElement appendSimpleTypeList(KElement schemaRoot,
String typeName,
String baseType)
- Parameters:
schemaRoot - typeName - baseType -
- Returns:
- the created list
Copyright © 2013. All Rights Reserved.