org.cip4.jdflib.elementwalker
Class RemoveEmpty

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

public class RemoveEmpty
extends BaseElementWalker

Author:
Dr. Rainer Prosi, Heidelberger Druckmaschinen AG
removes any empty or unlinked resources

Nested Class Summary
 class RemoveEmpty.WalkComChannel
          zapp me
 class RemoveEmpty.WalkComment
          zapp me
 class RemoveEmpty.WalkElement
          the resource walker note the naming convention Walkxxx so that it is automagically instantiated by the super classes
 class RemoveEmpty.WalkGeneralID
          zapp me
 class RemoveEmpty.WalkResource
          zapp me
 
Field Summary
 
Fields inherited from class org.cip4.jdflib.elementwalker.BaseElementWalker
log
 
Fields inherited from class org.cip4.jdflib.elementwalker.ElementWalker
theFactory
 
Constructor Summary
RemoveEmpty()
           
 
Method Summary
protected  BaseWalkerFactory getFactory()
           
 void removEmpty(JDFNode n)
          remove all unlinked crap and empty string attributes
 void removEmptyAttributes(KElement e)
          remove all empty string attributes
 void removEmptyElement(KElement e)
           
 void setZappElements(boolean zappElements)
          if set to true, attributes with proprietary namespace prefixes are zapped, else kept
 
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
 

Constructor Detail

RemoveEmpty

public RemoveEmpty()
Method Detail

removEmpty

public void removEmpty(JDFNode n)
remove all unlinked crap and empty string attributes

Parameters:
n -

removEmptyElement

public void removEmptyElement(KElement e)
Parameters:
e -

removEmptyAttributes

public void removEmptyAttributes(KElement e)
remove all empty string attributes

Parameters:
e -

getFactory

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

setZappElements

public void setZappElements(boolean zappElements)
if set to true, attributes with proprietary namespace prefixes are zapped, else kept

Parameters:
zappElements - if true, zapp 'em (the default) else keep 'em


Copyright © 2013. All Rights Reserved.