Class WalkSpan
- java.lang.Object
-
- org.cip4.jdflib.elementwalker.BaseWalker
-
- org.cip4.jdflib.extensions.xjdfwalker.jdftoxjdf.WalkElement
-
- org.cip4.jdflib.extensions.xjdfwalker.jdftoxjdf.WalkJDFElement
-
- org.cip4.jdflib.extensions.xjdfwalker.jdftoxjdf.WalkJDFSubElement
-
- org.cip4.jdflib.extensions.xjdfwalker.jdftoxjdf.WalkSpan
-
- All Implemented Interfaces:
java.lang.Comparable<BaseWalker>,IWalker
public class WalkSpan extends WalkJDFSubElement
-
-
Field Summary
-
Fields inherited from class org.cip4.jdflib.extensions.xjdfwalker.jdftoxjdf.WalkElement
jdfToXJDF
-
Fields inherited from class org.cip4.jdflib.elementwalker.BaseWalker
depth, log
-
-
Constructor Summary
Constructors Constructor Description WalkSpan()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.StringgetLocalName(JDFSpanBase span)booleanmatches(KElement toCheck)this is the check whether or not to use this walker for a given element should be overwrittenKElementwalk(KElement jdf, KElement xjdf)depending on the value of bSpanAsAttribute either
invert XXXSpan/@Datatype=foo to FooSpan/@Name=Datatype create an Attribute with the name of the span-
Methods inherited from class org.cip4.jdflib.extensions.xjdfwalker.jdftoxjdf.WalkJDFSubElement
updateAttributes
-
Methods inherited from class org.cip4.jdflib.extensions.xjdfwalker.jdftoxjdf.WalkJDFElement
checkAllLeaves, getLeaves, getRefName, getResID, getSet, matchesRootID, moveToAmountPool, setAmountPool, setBaseResource, setLeafAttributes, setResource, setSetAttributes, updateModule
-
Methods inherited from class org.cip4.jdflib.extensions.xjdfwalker.jdftoxjdf.WalkElement
getXJDFName, mustInline, removeUnusedElements, safeRename, setAttributes, setParent
-
Methods inherited from class org.cip4.jdflib.elementwalker.BaseWalker
compareTo, finalizeWalk, getDepth, getElementNames, prepareWalk, toString
-
-
-
-
Method Detail
-
walk
public KElement walk(KElement jdf, KElement xjdf)
depending on the value of bSpanAsAttribute either
invert XXXSpan/@Datatype=foo to FooSpan/@Name=Datatype create an Attribute with the name of the span- Specified by:
walkin interfaceIWalker- Overrides:
walkin classWalkJDFElement- Parameters:
xjdf-jdf- the element to walk- Returns:
- true if must continue
- See Also:
IWalker.walk(KElement, KElement)
-
getLocalName
protected java.lang.String getLocalName(JDFSpanBase span)
-
matches
public boolean matches(KElement toCheck)
Description copied from class:BaseWalkerthis is the check whether or not to use this walker for a given element should be overwritten- Overrides:
matchesin classWalkJDFSubElement- Parameters:
toCheck-- Returns:
- true if it matches
- See Also:
BaseWalker.matches(org.cip4.jdflib.core.KElement)
-
-