public class WalkJDFElement extends WalkElement
jdfToXJDFdepth, log| Constructor and Description |
|---|
WalkJDFElement() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
checkAllLeaves(JDFResource linkTarget) |
protected VElement |
getLeaves(JDFElement rl,
JDFResource linkTarget,
boolean expandLink) |
protected java.lang.String |
getRefName(JDFRefElement re)
get the name for the attribute to become a reference - may add a "Refs" rather than ref for
|
protected java.lang.String |
getResID(JDFResource linkTarget,
JDFElement rl) |
protected KElement |
getSet(java.lang.String resID,
KElement xRoot,
java.lang.String className) |
boolean |
matches(KElement toCheck)
this is the check whether or not to use this walker for a given element should be overwritten
|
protected boolean |
matchesRootID(JDFNode node) |
protected void |
moveToAmountPool(JDFAmountPool newAP,
JDFPartAmount pa) |
protected void |
setAmountPool(JDFElement rl,
KElement newLeaf,
JDFAttributeMap partMap) |
protected KElement |
setBaseResource(JDFElement rl,
JDFResource r,
SetHelper sh) |
protected void |
setLeafAttributes(JDFResource leaf,
JDFElement rl,
KElement newLeaf) |
protected java.util.List<KElement> |
setResource(JDFElement rl,
JDFResource linkTarget,
KElement xRoot) |
protected void |
setSetAttributes(KElement resourceSet,
KElement rl,
JDFResource linkRoot)
set the attributes of the set based on the resource and resourcelink
|
protected void |
updateAttributes(JDFAttributeMap map) |
protected void |
updateModule(JDFAttributeMap map) |
KElement |
walk(KElement jdf,
KElement xjdf)
the mother routine for walking....
|
getXJDFName, mustInline, removeUnusedElements, safeRename, setAttributes, setParentcompareTo, finalizeWalk, getDepth, getElementNames, prepareWalk, toStringpublic KElement walk(KElement jdf, KElement xjdf)
BaseWalkerwalk in interface IWalkerwalk in class WalkElementjdf - xjdf - IWalker.walk(KElement, KElement)protected boolean matchesRootID(JDFNode node)
node - protected java.lang.String getRefName(JDFRefElement re)
re - the refelement to namepublic boolean matches(KElement toCheck)
BaseWalkermatches in class BaseWalkertoCheck - BaseWalker.matches(org.cip4.jdflib.core.KElement)protected void updateAttributes(JDFAttributeMap map)
updateAttributes in class WalkElementnewRootP - org.cip4.jdflib.extensions.XJDF20.WalkElement#removeUnusedElements(org.cip4.jdflib.core.KElement)protected void updateModule(JDFAttributeMap map)
protected java.util.List<KElement> setResource(JDFElement rl, JDFResource linkTarget, KElement xRoot)
rl - the refelement or reslinklinkTarget - xRoot - protected VElement getLeaves(JDFElement rl, JDFResource linkTarget, boolean expandLink)
protected boolean checkAllLeaves(JDFResource linkTarget)
protected java.lang.String getResID(JDFResource linkTarget, JDFElement rl)
linkTarget - rl - protected KElement getSet(java.lang.String resID, KElement xRoot, java.lang.String className)
linkTarget - xRoot - className - protected KElement setBaseResource(JDFElement rl, JDFResource r, SetHelper sh)
rl - r - xjdfSet - protected void setLeafAttributes(JDFResource leaf, JDFElement rl, KElement newLeaf)
leaf - rl - newLeaf - protected void setAmountPool(JDFElement rl, KElement newLeaf, JDFAttributeMap partMap)
rl - newLeaf - partMap - protected void moveToAmountPool(JDFAmountPool newAP, JDFPartAmount pa)
newAP - pa - protected void setSetAttributes(KElement resourceSet, KElement rl, JDFResource linkRoot)
resourceSet - rl - linkRoot -