Package org.cip4.jdflib.elementwalker
Class RemoveEmpty
java.lang.Object
org.cip4.jdflib.elementwalker.ElementWalker
org.cip4.jdflib.elementwalker.BaseElementWalker
org.cip4.jdflib.elementwalker.RemoveEmpty
- Direct Known Subclasses:
RemoveEmptyXJDF
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclasszapp meclasszapp meclassthe resource walker note the naming convention Walkxxx so that it is automagically instantiated by the super classesclasszapp meclassnever zapp meclasszapp meclasszapp meclasszapp meclasszapp me -
Field Summary
Fields inherited from class org.cip4.jdflib.elementwalker.ElementWalker
theFactory -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddIgnoreElement(String name) voidremove all unlinked crap and empty string attributesvoidremove all empty string attributesintvoidsetZappElements(boolean zappElements) if set to true, attributes with proprietary namespace prefixes are zapped, else keptMethods inherited from class org.cip4.jdflib.elementwalker.BaseElementWalker
getFactoryMethods inherited from class org.cip4.jdflib.elementwalker.ElementWalker
toString, walkTree, walkTreeKidsFirst
-
Constructor Details
-
RemoveEmpty
public RemoveEmpty()
-
-
Method Details
-
addIgnoreElement
-
removEmpty
remove all unlinked crap and empty string attributes- Parameters:
n-
-
removEmptyElement
- Parameters:
e-
-
removEmptyAttributes
remove all empty string attributes- Parameters:
e-
-
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
-