org.cip4.jdflib.elementwalker
Class RemovePrivate

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

public class RemovePrivate
extends BaseElementWalker

Author:
Dr. Rainer Prosi, Heidelberger Druckmaschinen AG
removes any private extensions, including prefixed keys in GeneralID elements

Nested Class Summary
 class RemovePrivate.WalkElement
          the resource walker note the naming convention Walkxxx so that it is automagically instantiated by the super classes
 class RemovePrivate.WalkGeneralID
          zapp me
 class RemovePrivate.WalkPrivate
          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
RemovePrivate()
           
 
Method Summary
 void addPrefix(String prefix)
          add a prefix if never called -all prefixes are zapped
protected  BaseWalkerFactory getFactory()
           
 void setZappAttributes(boolean zappAttributes)
          if set to true, attributes with proprietary namespace prefixes are zapped, else kept
 void setZappElements(boolean zappElements)
          if set to true, attributes with proprietary namespace prefixes are zapped, else kept
 void setZappGeneralID(boolean zappGeneralID)
          if set to true, generalID elements 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

RemovePrivate

public RemovePrivate()
Method Detail

getFactory

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

addPrefix

public void addPrefix(String prefix)
add a prefix if never called -all prefixes are zapped

Parameters:
prefix -

setZappGeneralID

public void setZappGeneralID(boolean zappGeneralID)
if set to true, generalID elements with proprietary namespace prefixes are zapped, else kept

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

setZappAttributes

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

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

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.