Class WalkAnyElement
- java.lang.Object
-
- org.cip4.jdflib.elementwalker.BaseWalker
-
- org.cip4.jdflib.elementwalker.fixversion.WalkAnyElement
-
- All Implemented Interfaces:
java.lang.Comparable<BaseWalker>,IWalker
- Direct Known Subclasses:
WalkElement,WalkKElement
public class WalkAnyElement extends BaseWalker
the resource walker note the naming convention Walkxxx so that it is automagically instantiated by the super classes
-
-
Field Summary
-
Fields inherited from class org.cip4.jdflib.elementwalker.BaseWalker
depth, log
-
-
Constructor Summary
Constructors Constructor Description WalkAnyElement()fills this into the factory
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetParent(FixVersionImpl fixVersion)fills this into the factoryKElementwalk(KElement e, KElement trackElem)the mother routine for walking....-
Methods inherited from class org.cip4.jdflib.elementwalker.BaseWalker
compareTo, finalizeWalk, getDepth, getElementNames, matches, prepareWalk, toString
-
-
-
-
Method Detail
-
walk
public KElement walk(KElement e, KElement trackElem)
Description copied from class:BaseWalkerthe mother routine for walking....- Specified by:
walkin interfaceIWalker- Overrides:
walkin classBaseWalker- Parameters:
e- the element to walktrackElem- a parallel element to e that may additionally be modified during the walk- Returns:
- !=null if this element remains after walking,
null if it was deleted and therefore the walker should skip this and all its descendants
the element may either be trackElem or a converted element to continue with as trackElem - See Also:
IWalker.walk(KElement, KElement)
-
setParent
public void setParent(FixVersionImpl fixVersion)
fills this into the factory- Parameters:
fixVersion-
-
-