Package org.apache.xml.dtm
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 -
Method Summary
Modifier and TypeMethodDescriptionshort
getShouldStripSpace
(int elementHandle, DTM dtm) Test whether whitespace-only text nodes are visible in the logical view ofDTM
.
-
Field Details
-
NOTSTRIP
static final short NOTSTRIPDo not strip whitespace child nodes of this element.- See Also:
-
STRIP
static final short STRIPStrip whitespace child nodes of this element.- See Also:
-
INHERIT
static final short INHERITInherit whitespace stripping behavior of the parent node.- See Also:
-
-
Method Details
-
getShouldStripSpace
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.
-