Class WalkInsert
- 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.WalkInsert
-
- All Implemented Interfaces:
java.lang.Comparable<BaseWalker>,IWalker
public class WalkInsert extends WalkJDFSubElement
any matching class will be ignored and all children will be moved into the respective parent element
-
-
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 WalkInsert()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VStringgetElementNames()retur the list of elements that will always be procesed by this walkerprotected java.lang.StringgetXJDFName(KElement jdf)the new namebooleanmatches(KElement toCheck)this is the check whether or not to use this walker for a given element should be overwrittenprotected voidsetAttributes(KElement jdf, KElement eNew)-
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, walk
-
Methods inherited from class org.cip4.jdflib.extensions.xjdfwalker.jdftoxjdf.WalkElement
mustInline, removeUnusedElements, safeRename, setParent
-
Methods inherited from class org.cip4.jdflib.elementwalker.BaseWalker
compareTo, finalizeWalk, getDepth, prepareWalk, toString
-
-
-
-
Method Detail
-
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)
-
getElementNames
public VString getElementNames()
Description copied from class:BaseWalkerretur the list of elements that will always be procesed by this walker- Overrides:
getElementNamesin classBaseWalker- Returns:
- See Also:
BaseWalker.getElementNames()
-
getXJDFName
protected java.lang.String getXJDFName(KElement jdf)
Description copied from class:WalkElementthe new name- Overrides:
getXJDFNamein classWalkElement- Returns:
- See Also:
WalkElement.getXJDFName(org.cip4.jdflib.core.KElement)
-
setAttributes
protected void setAttributes(KElement jdf, KElement eNew)
- Overrides:
setAttributesin classWalkElement- See Also:
WalkElement.setAttributes(org.cip4.jdflib.core.KElement, org.cip4.jdflib.core.KElement)
-
-