Package org.cip4.jdflib.elementwalker
Class UnLinkFinder
- java.lang.Object
-
- org.cip4.jdflib.elementwalker.ElementWalker
-
- org.cip4.jdflib.elementwalker.BaseElementWalker
-
- org.cip4.jdflib.elementwalker.UnLinkFinder
-
public class UnLinkFinder extends BaseElementWalker
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected classUnLinkFinder.LinkDatacollection of mapsclassUnLinkFinder.WalkRefthe link and ref walkerclassUnLinkFinder.WalkResthe resource walker note the naming convention Walkxxx so that it is automagically instantiated by the super classes
-
Field Summary
Fields Modifier and Type Field Description protected UnLinkFinder.LinkDatalinkData-
Fields inherited from class org.cip4.jdflib.elementwalker.ElementWalker
theFactory
-
-
Constructor Summary
Constructors Constructor Description UnLinkFinder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description interaseUnlinked(JDFNode n)erase all unlinked resources that are in ninteraseUnlinkedRefs(JDFNode n)erase all unlinked resources that are in ninteraseUnlinkedResources(JDFNode n)erase all unlinked resources that are in nVElementgetAllUnlinked(JDFNode n)get a vector of all unlinked resources of n and its childrenVElementgetUnlinkedRefs(JDFNode n)get a vector of all unlinked resources of n and its childrenVElementgetUnlinkedResources(JDFNode n)get a vector of all unlinked resources of n and its childrenvoidsetIgnoreForeign(boolean ignoreForeign)-
Methods inherited from class org.cip4.jdflib.elementwalker.BaseElementWalker
getFactory
-
Methods inherited from class org.cip4.jdflib.elementwalker.ElementWalker
toString, walkTree, walkTreeKidsFirst
-
-
-
-
Field Detail
-
linkData
protected UnLinkFinder.LinkData linkData
-
-
Method Detail
-
setIgnoreForeign
public void setIgnoreForeign(boolean ignoreForeign)
- Parameters:
ignoreForeign- the ignoreForeign to set
-
getUnlinkedResources
public VElement getUnlinkedResources(JDFNode n)
get a vector of all unlinked resources of n and its children- Parameters:
n- the node to walk- Returns:
- the vector of unlinked resources
-
getUnlinkedRefs
public VElement getUnlinkedRefs(JDFNode n)
get a vector of all unlinked resources of n and its children- Parameters:
n- the node to walk- Returns:
- the vector of unlinked resources
-
getAllUnlinked
public VElement getAllUnlinked(JDFNode n)
get a vector of all unlinked resources of n and its children- Parameters:
n- the node to walk- Returns:
- the vector of unlinked resources
-
eraseUnlinkedResources
public int eraseUnlinkedResources(JDFNode n)
erase all unlinked resources that are in n- Parameters:
n- the node to clean
-
eraseUnlinkedRefs
public int eraseUnlinkedRefs(JDFNode n)
erase all unlinked resources that are in n- Parameters:
n- the node to clean
-
eraseUnlinked
public int eraseUnlinked(JDFNode n)
erase all unlinked resources that are in n- Parameters:
n- the node to clean
-
-