org.cip4.jdflib.elementwalker
Class LinkRefFinder

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

public class LinkRefFinder
extends BaseElementWalker

Author:
prosirai finds all reslinks and resrefs

Nested Class Summary
 class LinkRefFinder.WalkRef
          the link and ref walker
 
Field Summary
protected  boolean bLink
           
protected  boolean bRef
           
protected  VectorMap<String,KElement> theMap
           
 
Fields inherited from class org.cip4.jdflib.elementwalker.BaseElementWalker
log
 
Fields inherited from class org.cip4.jdflib.elementwalker.ElementWalker
theFactory
 
Constructor Summary
LinkRefFinder(boolean ref, boolean link)
           
 
Method Summary
protected  BaseWalkerFactory getFactory()
           
 VectorMap<String,KElement> getMap(JDFNode n)
          get a vector of all links and references 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

theMap

protected final VectorMap<String,KElement> theMap

bRef

protected final boolean bRef

bLink

protected final boolean bLink
Constructor Detail

LinkRefFinder

public LinkRefFinder(boolean ref,
                     boolean link)
Parameters:
ref -
link -
Method Detail

getMap

public VectorMap<String,KElement> getMap(JDFNode n)
get a vector of all links and references of n and its children

Parameters:
n - the node to walk
Returns:
the vector of unlinked resourcerefs and resourceLinks

getFactory

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


Copyright © 2013. All Rights Reserved.