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
public class RemoveEmpty extends BaseElementWalker
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classRemoveEmpty.WalkComChannelzapp meclassRemoveEmpty.WalkCommentzapp meclassRemoveEmpty.WalkElementthe resource walker note the naming convention Walkxxx so that it is automagically instantiated by the super classesclassRemoveEmpty.WalkGeneralIDzapp meclassRemoveEmpty.WalkIgnorenever zapp meclassRemoveEmpty.WalkMessagezapp meclassRemoveEmpty.WalkResourcezapp meclassRemoveEmpty.WalkResourceAuditzapp meclassRemoveEmpty.WalkSpanzapp me
-
Field Summary
-
Fields inherited from class org.cip4.jdflib.elementwalker.ElementWalker
theFactory
-
-
Constructor Summary
Constructors Constructor Description RemoveEmpty()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddIgnoreElement(java.lang.String name)voidremovEmpty(JDFNode n)remove all unlinked crap and empty string attributesvoidremovEmptyAttributes(KElement e)remove all empty string attributesintremovEmptyElement(KElement e)voidsetZappElements(boolean zappElements)if set to true, attributes with proprietary namespace prefixes are zapped, else kept-
Methods inherited from class org.cip4.jdflib.elementwalker.BaseElementWalker
getFactory
-
Methods inherited from class org.cip4.jdflib.elementwalker.ElementWalker
toString, walkTree, walkTreeKidsFirst
-
-
-
-
Method Detail
-
addIgnoreElement
public void addIgnoreElement(java.lang.String name)
-
removEmpty
public void removEmpty(JDFNode n)
remove all unlinked crap and empty string attributes- Parameters:
n-
-
removEmptyElement
public int removEmptyElement(KElement e)
- Parameters:
e-
-
removEmptyAttributes
public void removEmptyAttributes(KElement e)
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
-
-