Class WalkElement
java.lang.Object
org.cip4.jdflib.elementwalker.BaseWalker
org.cip4.jdflib.extensions.xjdfwalker.jdftoxjdf.WalkElement
- All Implemented Interfaces:
Comparable<BaseWalker>,IWalker
- Direct Known Subclasses:
WalkForeignElement,WalkIgnore,WalkJDFElement
-
Field Summary
FieldsFields inherited from class org.cip4.jdflib.elementwalker.BaseWalker
depth, log -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringgetXJDFName(KElement jdf) the new nameprotected booleanmustInline(String refLocalName) protected voidzapp unused elementsprotected KElementsafeRename(KElement original, String newName) protected voidsetAttributes(KElement jdf, KElement eNew) voidfills this into the factoryprotected voidthe mother routine for walking....Methods inherited from class org.cip4.jdflib.elementwalker.BaseWalker
compareTo, finalizeWalk, getDepth, getElementNames, matches, prepareWalk, toString
-
Field Details
-
jdfToXJDF
-
-
Constructor Details
-
WalkElement
public WalkElement()
-
-
Method Details
-
setParent
fills this into the factory- Parameters:
parent-
-
walk
Description copied from class:BaseWalkerthe mother routine for walking....- Specified by:
walkin interfaceIWalker- Overrides:
walkin classBaseWalker- Parameters:
xjdf-jdf- the element to walk- Returns:
- true if must continue
- See Also:
-
getXJDFName
the new name- Parameters:
jdf-- Returns:
-
setAttributes
- Parameters:
jdf-eNew-
-
updateAttributes
- Parameters:
map-
-
mustInline
- Parameters:
refLocalName-- Returns:
- true if must inline refLocalName
-
removeUnusedElements
zapp unused elements- Parameters:
jdf-
-
safeRename
- Parameters:
original- the original elementnewName- the new name- Returns:
-