protected class XJDFSchemaCreator.WalkElement extends BaseWalker
| Modifier and Type | Class and Description |
|---|---|
protected class |
XJDFSchemaCreator.WalkElement.AttributeDescriptor |
protected class |
XJDFSchemaCreator.WalkElement.VAttributeDescriptor |
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Set<java.lang.String> |
baseAttribs |
protected java.util.Set<java.lang.String> |
baseElms |
protected KElement |
complexElement |
protected KElement |
complexType |
protected KElement |
e2 |
protected java.util.Set<java.lang.String> |
myNodes |
protected java.util.Set<java.lang.String> |
refElms |
protected java.util.Set<java.lang.String> |
refsElms |
depth, log| Constructor and Description |
|---|
WalkElement() |
| Modifier and Type | Method and Description |
|---|---|
protected KElement |
appendSimpleTypeList(KElement schemaRoot,
java.lang.String typeName,
java.lang.String baseType) |
protected void |
createbaseAttribs() |
protected void |
createbaseElms() |
protected void |
createSubstitutionBase(KElement out,
java.lang.String name) |
void |
finalizeWalk(KElement e,
KElement trackElem)
hook for guaranteed postwalk finalization
|
protected XJDFSchemaCreator.WalkElement.VAttributeDescriptor |
getKnownAtts() |
protected VString |
getKnownElms() |
protected java.lang.String |
getNewName(java.lang.String string)
locally map attnames and elmnames
|
protected XJDFSchemaCreator.WalkElement.AttributeDescriptor |
getSpanAttDesc(java.lang.String s) |
protected java.lang.String |
getTypeForName(java.lang.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,
java.lang.String name) |
protected void |
setGeneric(KElement complexType,
boolean bID) |
protected void |
setXSAttribute(KElement root,
java.lang.String attName,
AttributeInfo.EnumAttributeType typ,
boolean required) |
protected KElement |
setXSAttribute(KElement root,
java.lang.String attName,
java.lang.String typName,
boolean required,
org.apache.commons.lang.enums.ValuedEnum ve) |
protected KElement |
setXSAttribute(XJDFSchemaCreator.WalkElement.AttributeDescriptor ad) |
protected void |
setXSElement(KElement root,
java.lang.String elmName) |
KElement |
walk(KElement in,
KElement out)
the mother routine for walking....
|
compareTo, getDepth, getElementNames, toStringprotected KElement complexType
protected KElement complexElement
protected java.util.Set<java.lang.String> baseAttribs
protected java.util.Set<java.lang.String> baseElms
protected java.util.Set<java.lang.String> refElms
protected java.util.Set<java.lang.String> refsElms
protected java.util.Set<java.lang.String> myNodes
protected KElement e2
protected void createbaseAttribs()
public KElement walk(KElement in, KElement out)
BaseWalkerwalk in interface IWalkerwalk in class BaseWalkerin - out - IWalker.walk(KElement, KElement)protected KElement setXSAttribute(XJDFSchemaCreator.WalkElement.AttributeDescriptor ad)
ad - protected java.lang.String getNewName(java.lang.String string)
string - protected void createbaseElms()
public boolean matches(KElement e)
BaseWalkermatches in class BaseWalkere - BaseWalker.matches(org.cip4.jdflib.core.KElement)public void finalizeWalk(KElement e, KElement trackElem)
BaseWalkerfinalizeWalk in interface IWalkerfinalizeWalk in class BaseWalkere - trackElem - BaseWalker.finalizeWalk(org.cip4.jdflib.core.KElement, org.cip4.jdflib.core.KElement)public void prepareWalk(KElement e, KElement trackElem)
BaseWalkerprepareWalk in interface IWalkerprepareWalk in class BaseWalkere - trackElem - BaseWalker.prepareWalk(org.cip4.jdflib.core.KElement, org.cip4.jdflib.core.KElement)protected void setXSAttribute(KElement root, java.lang.String attName, AttributeInfo.EnumAttributeType typ, boolean required)
root - attName - typ - required - protected KElement setXSAttribute(KElement root, java.lang.String attName, java.lang.String typName, boolean required, org.apache.commons.lang.enums.ValuedEnum ve)
root - attName - typName - required - ve - a valued enum to generate valuesprotected void setGeneric(KElement complexType, boolean bID)
complexType - bID - protected KElement setComplexType(KElement out, java.lang.String name)
out - name - protected void setXSElement(KElement root, java.lang.String elmName)
root - elmName - protected java.lang.String getTypeForName(java.lang.String elmName)
elmName - protected XJDFSchemaCreator.WalkElement.AttributeDescriptor getSpanAttDesc(java.lang.String s)
s - protected XJDFSchemaCreator.WalkElement.VAttributeDescriptor getKnownAtts()
getKnownAtts()protected VString getKnownElms()
getKnownElms()protected void createSubstitutionBase(KElement out, java.lang.String name)
out - name -