Interface DTMWSFilter

All Known Implementing Classes:
DOMWSFilter, TransformerImpl

public interface DTMWSFilter
This interface is meant to be implemented by a client of the DTM, and allows stripping of whitespace nodes.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final short
    Inherit whitespace stripping behavior of the parent node.
    static final short
    Do not strip whitespace child nodes of this element.
    static final short
    Strip whitespace child nodes of this element.
  • Method Summary

    Modifier and Type
    Method
    Description
    short
    getShouldStripSpace(int elementHandle, DTM dtm)
    Test whether whitespace-only text nodes are visible in the logical view of DTM.
  • Field Details

    • NOTSTRIP

      static final short NOTSTRIP
      Do not strip whitespace child nodes of this element.
      See Also:
    • STRIP

      static final short STRIP
      Strip whitespace child nodes of this element.
      See Also:
    • INHERIT

      static final short INHERIT
      Inherit whitespace stripping behavior of the parent node.
      See Also:
  • Method Details

    • getShouldStripSpace

      short getShouldStripSpace(int elementHandle, DTM dtm)
      Test whether whitespace-only text nodes are visible in the logical view of DTM. Normally, this function will be called by the implementation of DTM; it is not normally called directly from user code.
      Parameters:
      elementHandle - int Handle of the element.
      Returns:
      one of NOTSTRIP, STRIP, or INHERIT.