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:
java.lang.Comparable<BaseWalker>,IWalker
- Direct Known Subclasses:
WalkContentResource,WalkXJDFApprovalDetailsResource,WalkXJDFColorResource,WalkXJDFContactResource
public class WalkXJDFResource extends WalkXElement
-
-
Field Summary
-
Fields inherited from class org.cip4.jdflib.extensions.xjdfwalker.xjdftojdf.WalkXElement
xjdfToJDFImpl
-
Fields inherited from class org.cip4.jdflib.elementwalker.BaseWalker
depth, log
-
-
Constructor Summary
Constructors Constructor Description WalkXJDFResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected JDFResourcecreateNewResource(JDFNode theNode, java.lang.String name, java.lang.String id, KElement setRoot)protected KElementcreatePartition(JDFResource jdfRes, JDFAttributeMap partMap, JDFNode theNode)protected java.lang.StringgetJDFResName(SetHelper sh)protected JDFAttributeMapgetResMap(KElement xjdfRes)protected voidhandleLinkParts(VJDFAttributeMap vParts, JDFElement rl)protected voidhandleParts(JDFResource res, VJDFAttributeMap vParts, JDFElement rl)protected booleanhasPartition(JDFResource jdfRes, JDFAttributeMap partMap, JDFNode theNode)booleanmatches(KElement toCheck)this is the check whether or not to use this walker for a given element should be overwrittenprotected JDFAttributeMapremoveImplicitParts(JDFResource jdfRes, JDFAttributeMap partMap)KElementwalk(KElement xjdfRes, KElement parent)the mother routine for walking....-
Methods inherited from class org.cip4.jdflib.extensions.xjdfwalker.xjdftojdf.WalkXElement
cleanRef, cleanRefs, createSeparationList, fixAuthor, getNode, getRefName, setParent, updateAttributes, updateColor
-
Methods inherited from class org.cip4.jdflib.elementwalker.BaseWalker
compareTo, finalizeWalk, getDepth, getElementNames, prepareWalk, toString
-
-
-
-
Method Detail
-
walk
public KElement walk(KElement xjdfRes, KElement parent)
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:
IWalker.walk(KElement, KElement)
-
handleParts
protected void handleParts(JDFResource res, VJDFAttributeMap vParts, JDFElement rl)
- Parameters:
res-vParts-rl-
-
handleLinkParts
protected void handleLinkParts(VJDFAttributeMap vParts, JDFElement rl)
- Parameters:
vParts-rl-
-
getJDFResName
protected java.lang.String getJDFResName(SetHelper sh)
- Parameters:
e-- Returns:
-
createNewResource
protected JDFResource createNewResource(JDFNode theNode, java.lang.String name, java.lang.String id, KElement setRoot)
- Parameters:
theNode-name-id-setRoot-- Returns:
-
getResMap
protected JDFAttributeMap getResMap(KElement xjdfRes)
-
hasPartition
protected boolean hasPartition(JDFResource jdfRes, JDFAttributeMap partMap, JDFNode theNode)
- Parameters:
jdfRes-partMap-theNode-- Returns:
-
createPartition
protected KElement createPartition(JDFResource jdfRes, JDFAttributeMap partMap, JDFNode theNode)
- Parameters:
jdfRes-partMap-theNode-- Returns:
-
removeImplicitParts
protected JDFAttributeMap removeImplicitParts(JDFResource jdfRes, JDFAttributeMap partMap)
-
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 it matches
- See Also:
BaseWalker.matches(org.cip4.jdflib.core.KElement)
-
-