Package org.apache.xml.dtm
Interface DTMWSFilter
-
- All Known Implementing Classes:
DOMWSFilter,TransformerImpl
public interface DTMWSFilterThis interface is meant to be implemented by a client of the DTM, and allows stripping of whitespace nodes.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description shortgetShouldStripSpace(int elementHandle, DTM dtm)Test whether whitespace-only text nodes are visible in the logical view ofDTM.
-
-
-
Field Detail
-
NOTSTRIP
static final short NOTSTRIP
Do not strip whitespace child nodes of this element.- See Also:
- Constant Field Values
-
STRIP
static final short STRIP
Strip whitespace child nodes of this element.- See Also:
- Constant Field Values
-
INHERIT
static final short INHERIT
Inherit whitespace stripping behavior of the parent node.- See Also:
- Constant Field Values
-
-
Method Detail
-
getShouldStripSpace
short getShouldStripSpace(int elementHandle, DTM dtm)Test whether whitespace-only text nodes are visible in the logical view ofDTM. Normally, this function will be called by the implementation ofDTM; it is not normally called directly from user code.- Parameters:
elementHandle- int Handle of the element.- Returns:
- one of NOTSTRIP, STRIP, or INHERIT.
-
-