APIdia Launch Partner
Top Description Methods
com.sun.org.apache.xml.internal.security.signature

public Interface NodeFilter

Known Direct Implementers
com.sun.org.apache.xml.internal.security.transforms.implementations.TransformEnvelopedSignature.EnvelopedNodeFilter, com.sun.org.apache.xml.internal.security.transforms.implementations.TransformXPath.XPathNodeFilter, com.sun.org.apache.xml.internal.security.transforms.implementations.XPath2NodeFilter
Imports
com.sun.org.apache.xml.internal.security.transforms.TransformationException, org.w3c.dom.Node

An interface to tell to the c14n if a node is included or not in the output

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

1 if the node should be output. 0 if node must not be output, -1 if the node and all it's child must not be output.
isNodeInclude
(Node n)

Tells if a node must be output in c14n.

public int

Returns:

1 if the node should be output. 0 if node must not be output, -1 if the node and all it's child must not be output.
isNodeIncludeDO
(Node n, int
the relative level in the tree
level
)

Tells if a node must be output in a c14n.

Method Detail

isNodeIncludeback to summary
public int isNodeInclude(Node n) throws TransformationException

Tells if a node must be output in c14n.

Returns:int

1 if the node should be output. 0 if node must not be output, -1 if the node and all it's child must not be output.

isNodeIncludeDOback to summary
public int isNodeIncludeDO(Node n, int level) throws TransformationException

Tells if a node must be output in a c14n. The caller must assured that this method is always call in document order. The implementations can use this restriction to optimize the transformation.

Parameters
level:int

the relative level in the tree

Returns:int

1 if the node should be output. 0 if node must not be output, -1 if the node and all it's child must not be output.