public class WalkJDFElement extends WalkElement
jdfToXJDF
depth, log
Constructor and Description |
---|
WalkJDFElement() |
Modifier and Type | Method and Description |
---|---|
protected String |
getRefName(JDFRefElement re)
get the name for the attribute to become a reference - may add a "Refs" rather than ref for
|
protected String |
getResID(JDFResource linkTarget,
JDFElement rl) |
protected KElement |
getSet(String resID,
KElement xRoot,
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 boolean |
mustInline(String refLocalName) |
protected void |
setAmountPool(JDFElement rl,
KElement newLeaf,
JDFAttributeMap partMap) |
protected KElement |
setBaseResource(JDFElement rl,
JDFResource r,
KElement xjdfSet) |
protected void |
setLeafAttributes(JDFResource leaf,
JDFElement rl,
KElement newLeaf) |
protected VElement |
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, removeUnusedElements, safeRename, setAttributes, setParent
compareTo, finalizeWalk, getDepth, getElementNames, prepareWalk, toString
public KElement walk(KElement jdf, KElement xjdf)
BaseWalker
walk
in interface IWalker
walk
in class WalkElement
jdf
- xjdf
- IWalker.walk(KElement, KElement)
protected boolean matchesRootID(JDFNode node)
node
- protected String getRefName(JDFRefElement re)
re
- the refelement to nameprotected boolean mustInline(String refLocalName)
refLocalName
- public boolean matches(KElement toCheck)
BaseWalker
matches
in class BaseWalker
toCheck
- BaseWalker.matches(org.cip4.jdflib.core.KElement)
protected void updateAttributes(JDFAttributeMap map)
updateAttributes
in class WalkElement
newRootP
- org.cip4.jdflib.extensions.XJDF20.WalkElement#removeUnusedElements(org.cip4.jdflib.core.KElement)
protected void updateModule(JDFAttributeMap map)
protected VElement setResource(JDFElement rl, JDFResource linkTarget, KElement xRoot)
rl
- the refelement or reslinklinkTarget
- xRoot
- protected String getResID(JDFResource linkTarget, JDFElement rl)
linkTarget
- rl
- protected KElement getSet(String resID, KElement xRoot, String className)
linkTarget
- xRoot
- className
- protected KElement setBaseResource(JDFElement rl, JDFResource r, KElement xjdfSet)
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
- Copyright © 2018. All rights reserved.