org.cip4.jdflib.elementwalker
Class UnLinkFinder

java.lang.Object
  extended by org.cip4.jdflib.elementwalker.ElementWalker
      extended by org.cip4.jdflib.elementwalker.BaseElementWalker
          extended by org.cip4.jdflib.elementwalker.UnLinkFinder

public class UnLinkFinder
extends BaseElementWalker

Author:
Dr. Rainer Prosi finds unlinked resources - example usage of the walker classes

Nested Class Summary
protected  class UnLinkFinder.LinkData
          collection of maps
 class UnLinkFinder.WalkRef
          the link and ref walker
 class UnLinkFinder.WalkRes
          the resource walker note the naming convention Walkxxx so that it is automagically instantiated by the super classes
 
Field Summary
protected  UnLinkFinder.LinkData linkData
           
 
Fields inherited from class org.cip4.jdflib.elementwalker.BaseElementWalker
log
 
Fields inherited from class org.cip4.jdflib.elementwalker.ElementWalker
theFactory
 
Constructor Summary
UnLinkFinder()
           
 
Method Summary
 void eraseUnlinked(JDFNode n)
          erase all unlinked resources that are in n
 void eraseUnlinkedRefs(JDFNode n)
          erase all unlinked resources that are in n
 void eraseUnlinkedResources(JDFNode n)
          erase all unlinked resources that are in n
 VElement getAllUnlinked(JDFNode n)
          get a vector of all unlinked resources of n and its children
protected  BaseWalkerFactory getFactory()
           
 VElement getUnlinkedRefs(JDFNode n)
          get a vector of all unlinked resources of n and its children
 VElement getUnlinkedResources(JDFNode n)
          get a vector of all unlinked resources of n and its children
 
Methods inherited from class org.cip4.jdflib.elementwalker.BaseElementWalker
constructWalkers
 
Methods inherited from class org.cip4.jdflib.elementwalker.ElementWalker
toString, walkTree, walkTreeKidsFirst
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

linkData

protected UnLinkFinder.LinkData linkData
Constructor Detail

UnLinkFinder

public UnLinkFinder()
Method Detail

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 void eraseUnlinkedResources(JDFNode n)
erase all unlinked resources that are in n

Parameters:
n - the node to clean

eraseUnlinkedRefs

public void eraseUnlinkedRefs(JDFNode n)
erase all unlinked resources that are in n

Parameters:
n - the node to clean

eraseUnlinked

public void eraseUnlinked(JDFNode n)
erase all unlinked resources that are in n

Parameters:
n - the node to clean

getFactory

protected BaseWalkerFactory getFactory()
Overrides:
getFactory in class BaseElementWalker
Returns:
the factory for this worker


Copyright © 2013. All Rights Reserved.