Class WalkXJDFResource
java.lang.Object
org.cip4.jdflib.elementwalker.BaseWalker
org.cip4.jdflib.extensions.xjdfwalker.xjdftojdf.WalkXElement
org.cip4.jdflib.extensions.xjdfwalker.xjdftojdf.WalkXJDFResource
- All Implemented Interfaces:
Comparable<BaseWalker>,IWalker
- Direct Known Subclasses:
WalkContentResource,WalkXJDFApprovalDetailsResource,WalkXJDFColorResource,WalkXJDFContactResource
-
Field Summary
Fields inherited from class org.cip4.jdflib.extensions.xjdfwalker.xjdftojdf.WalkXElement
xjdfToJDFImplFields inherited from class org.cip4.jdflib.elementwalker.BaseWalker
depth, log -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected JDFResourcecreateNewResource(JDFNode theNode, String name, String id, KElement setRoot) protected KElementcreatePartition(JDFResource jdfRes, JDFAttributeMap partMap, JDFNode theNode) protected Stringprotected JDFAttributeMapprotected voidhandleLinkParts(VJDFAttributeMap vParts, JDFElement rl) protected voidhandleParts(JDFResource res, VJDFAttributeMap vParts, JDFElement rl) protected booleanhasPartition(JDFResource jdfRes, JDFAttributeMap partMap, JDFNode theNode) booleanthis is the check whether or not to use this walker for a given element should be overwrittenprotected JDFAttributeMapremoveImplicitParts(JDFResource jdfRes, JDFAttributeMap partMap) the mother routine for walking....Methods inherited from class org.cip4.jdflib.extensions.xjdfwalker.xjdftojdf.WalkXElement
cleanRef, cleanRefs, createSeparationList, fixAuthor, getNode, getRefName, setParent, updateAttributes, updateColorMethods inherited from class org.cip4.jdflib.elementwalker.BaseWalker
compareTo, finalizeWalk, getDepth, getElementNames, prepareWalk, toString
-
Constructor Details
-
WalkXJDFResource
public WalkXJDFResource()
-
-
Method Details
-
walk
Description copied from class:BaseWalkerthe mother routine for walking....- Specified by:
walkin interfaceIWalker- Overrides:
walkin classWalkXElement- Parameters:
xjdfRes-parent- a parallel element to e that may additionally be modified during the walk- Returns:
- the created resource
- See Also:
-
handleParts
- Parameters:
res-vParts-rl-
-
handleLinkParts
- Parameters:
vParts-rl-
-
getJDFResName
- Parameters:
e-- Returns:
-
createNewResource
- Parameters:
theNode-name-id-setRoot-- Returns:
-
getResMap
-
hasPartition
- Parameters:
jdfRes-partMap-theNode-- Returns:
-
createPartition
- Parameters:
jdfRes-partMap-theNode-- Returns:
-
removeImplicitParts
-
matches
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 it matches
- See Also:
-