Class RemoveEmpty

Direct Known Subclasses:
RemoveEmptyXJDF

public class RemoveEmpty extends BaseElementWalker
  • Constructor Details

    • RemoveEmpty

      public RemoveEmpty()
  • Method Details

    • addIgnoreElement

      public void addIgnoreElement(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