Package org.apache.xalan.xsltc.dom
Class DOMWSFilter
- java.lang.Object
-
- org.apache.xalan.xsltc.dom.DOMWSFilter
-
- All Implemented Interfaces:
DTMWSFilter
public class DOMWSFilter extends java.lang.Object implements DTMWSFilter
A wrapper class that adapts theDTMWSFilter
interface to the XSLTC DOMStripFilter
interface.
-
-
Field Summary
-
Fields inherited from interface org.apache.xml.dtm.DTMWSFilter
INHERIT, NOTSTRIP, STRIP
-
-
Constructor Summary
Constructors Constructor Description DOMWSFilter(AbstractTranslet translet)
Construct an adapter connecting theDTMWSFilter
interface to theStripFilter
interface.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description short
getShouldStripSpace(int node, DTM dtm)
Test whether whitespace-only text nodes are visible in the logical view ofDTM
.
-
-
-
Constructor Detail
-
DOMWSFilter
public DOMWSFilter(AbstractTranslet translet)
Construct an adapter connecting theDTMWSFilter
interface to theStripFilter
interface.- Parameters:
translet
- A translet that also implements the StripFilter interface.- See Also:
DTMWSFilter
,StripFilter
-
-
Method Detail
-
getShouldStripSpace
public short getShouldStripSpace(int node, 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.- Specified by:
getShouldStripSpace
in interfaceDTMWSFilter
- Parameters:
node
- int handle of the node.dtm
- the DTM that owns this node- Returns:
- one of
NOTSTRIP
,STRIP
orINHERIT
.
-
-