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 Set<String> |
baseAttribs |
protected Set<String> |
baseElms |
protected KElement |
complexElement |
protected KElement |
complexType |
protected KElement |
e2 |
protected Set<String> |
myNodes |
protected Set<String> |
refElms |
protected Set<String> |
refsElms |
depth, log
Constructor and Description |
---|
WalkElement() |
Modifier and Type | Method and Description |
---|---|
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....
|
compareTo, getDepth, getElementNames, toString
protected KElement complexType
protected KElement complexElement
protected KElement e2
protected void createbaseAttribs()
public KElement walk(KElement in, KElement out)
BaseWalker
walk
in interface IWalker
walk
in class BaseWalker
in
- out
- IWalker.walk(KElement, KElement)
protected KElement setXSAttribute(XJDFSchemaCreator.WalkElement.AttributeDescriptor ad)
ad
- protected String getNewName(String string)
string
- protected void createbaseElms()
public boolean matches(KElement e)
BaseWalker
matches
in class BaseWalker
e
- BaseWalker.matches(org.cip4.jdflib.core.KElement)
public void finalizeWalk(KElement e, KElement trackElem)
BaseWalker
finalizeWalk
in interface IWalker
finalizeWalk
in class BaseWalker
e
- trackElem
- BaseWalker.finalizeWalk(org.cip4.jdflib.core.KElement, org.cip4.jdflib.core.KElement)
public void prepareWalk(KElement e, KElement trackElem)
BaseWalker
prepareWalk
in interface IWalker
prepareWalk
in class BaseWalker
e
- trackElem
- BaseWalker.prepareWalk(org.cip4.jdflib.core.KElement, org.cip4.jdflib.core.KElement)
protected void setXSAttribute(KElement root, String attName, AttributeInfo.EnumAttributeType typ, boolean required)
root
- attName
- typ
- required
- protected KElement setXSAttribute(KElement root, String attName, 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, String name)
out
- name
- protected void setXSElement(KElement root, String elmName)
root
- elmName
- protected XJDFSchemaCreator.WalkElement.AttributeDescriptor getSpanAttDesc(String s)
s
- protected XJDFSchemaCreator.WalkElement.VAttributeDescriptor getKnownAtts()
getKnownAtts()
protected VString getKnownElms()
getKnownElms()
protected void createSubstitutionBase(KElement out, String name)
out
- name
- Copyright © 2018. All rights reserved.