Package org.cip4.jdflib.elementwalker
Class RemoveEmpty.WalkElement
- java.lang.Object
-
- org.cip4.jdflib.elementwalker.BaseWalker
-
- org.cip4.jdflib.elementwalker.RemoveEmpty.WalkElement
-
- All Implemented Interfaces:
java.lang.Comparable<BaseWalker>,IWalker
- Direct Known Subclasses:
RemoveEmpty.WalkComment,RemoveEmpty.WalkGeneralID,RemoveEmpty.WalkIgnore,RemoveEmpty.WalkMessage,RemoveEmpty.WalkResource,RemoveEmpty.WalkResourceAudit,RemoveEmpty.WalkSpan,RemoveEmptyXJDF.WalkAuditResource,RemoveEmptyXJDF.WalkResourceSet,RemoveEmptyXJDF.WalkResourceXJDF
- Enclosing class:
- RemoveEmpty
public class RemoveEmpty.WalkElement 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 WalkElement()fills this into the factory
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringArraygetDummyAttributes()protected booleanhasChild(KElement e1)protected booleanhasRequiredChild(KElement e1)booleanmatches(KElement toCheck)this is the check whether or not to use this walker for a given element should be overwrittenKElementwalk(KElement e1, KElement trackElem)the mother routine for walking....protected booleanwalkAttributes(KElement e1)-
Methods inherited from class org.cip4.jdflib.elementwalker.BaseWalker
compareTo, finalizeWalk, getDepth, getElementNames, prepareWalk, toString
-
-
-
-
Method Detail
-
walk
public KElement walk(KElement e1, KElement trackElem)
Description copied from class:BaseWalkerthe mother routine for walking....- Specified by:
walkin interfaceIWalker- Overrides:
walkin classBaseWalker- Parameters:
e1- - the element to tracktrackElem- - always null- Returns:
- the element to continue walking
- See Also:
BaseWalker.walk(org.cip4.jdflib.core.KElement, org.cip4.jdflib.core.KElement)
-
hasChild
protected boolean hasChild(KElement e1)
- Parameters:
e1-- Returns:
-
hasRequiredChild
protected boolean hasRequiredChild(KElement e1)
-
walkAttributes
protected boolean walkAttributes(KElement e1)
- Parameters:
e1-- Returns:
- true if something good was inside
-
getDummyAttributes
protected StringArray getDummyAttributes()
- Returns:
-
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 classBaseWalker- Parameters:
toCheck-- Returns:
- true if matches
- See Also:
BaseWalker.matches(org.cip4.jdflib.core.KElement)
-
-