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 theDTMWSFilterinterface to the XSLTC DOMStripFilterinterface.
-
-
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 theDTMWSFilterinterface to theStripFilterinterface.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description shortgetShouldStripSpace(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 theDTMWSFilterinterface to theStripFilterinterface.- 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:
getShouldStripSpacein interfaceDTMWSFilter- Parameters:
node- int handle of the node.dtm- the DTM that owns this node- Returns:
- one of
NOTSTRIP,STRIPorINHERIT.
-
-