APIdia Launch Partner
Top Description Fields Constructors Methods
com.sun.org.apache.xalan.internal.xsltc.dom

public Class DOMWSFilter

extends Object
implements DTMWSFilter
Class Inheritance
All Implemented Interfaces
com.sun.org.apache.xml.internal.dtm.DTMWSFilter
Imports
com.sun.org.apache.xalan.internal.xsltc.DOM, .DOMEnhancedForDTM, .StripFilter, com.sun.org.apache.xalan.internal.xsltc.runtime.AbstractTranslet, com.sun.org.apache.xml.internal.dtm.DTM, .DTMWSFilter, java.util.HashMap, .Map

A wrapper class that adapts the DTMWSFilter interface to the XSLTC DOM StripFilter interface.

Field Summary

Modifier and TypeField and Description
private DTM
private short[]
private StripFilter
private Map<DTM, short[]>
private AbstractTranslet

Constructor Summary

AccessConstructor and Description
public
DOMWSFilter(AbstractTranslet
A translet that also implements the StripFilter interface.
translet
)

Construct an adapter connecting the DTMWSFilter interface to the StripFilter interface.

Method Summary

Modifier and TypeMethod and Description
public short

Returns:

one of NOTSTRIP, STRIP or INHERIT.
getShouldStripSpace
(int
int handle of the node.
node
,
DTM
the DTM that owns this node
dtm
)

Implements com.sun.org.apache.xml.internal.dtm.DTMWSFilter.getShouldStripSpace.

Test whether whitespace-only text nodes are visible in the logical view of DTM.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

m_currentDTMback to summary
private DTM m_currentDTM
m_currentMappingback to summary
private short[] m_currentMapping
m_filterback to summary
private StripFilter m_filter
m_mappingsback to summary
private Map<DTM, short[]> m_mappings
m_transletback to summary
private AbstractTranslet m_translet

Constructor Detail

DOMWSFilterback to summary
public DOMWSFilter(AbstractTranslet translet)

Construct an adapter connecting the DTMWSFilter interface to the StripFilter interface.

Parameters
translet:AbstractTranslet

A translet that also implements the StripFilter interface.

See Also
com.sun.org.apache.xml.internal.dtm.DTMWSFilter, com.sun.org.apache.xalan.internal.xsltc.StripFilter

Method Detail

getShouldStripSpaceback to summary
public short getShouldStripSpace(int node, DTM dtm)

Implements com.sun.org.apache.xml.internal.dtm.DTMWSFilter.getShouldStripSpace.

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
node:int

int handle of the node.

dtm:DTM

the DTM that owns this node

Returns:short

one of NOTSTRIP, STRIP or INHERIT.