APIdia Launch Partner
Top Fields Constructors Methods
com.sun.org.apache.xml.internal.security.transforms.implementations

pack-priv Class XPath2NodeFilter

Located in compilation unit of com.sun.org.apache.xml.internal.security.transforms.implementations.TransformXPath2Filter.

extends Object
implements NodeFilter
Class Inheritance
All Implemented Interfaces
com.sun.org.apache.xml.internal.security.signature.NodeFilter

Field Summary

Modifier and TypeField and Description
private final boolean
private final boolean
private final boolean
private int
private int
private final Set<Node>
private int
private final Set<Node>
private final Set<Node>

Constructor Summary

AccessConstructor and Description
pack-priv
XPath2NodeFilter(List<NodeList> unionNodes, List<NodeList> subtractNodes, List<NodeList> intersectNodes)

Method Summary

Modifier and TypeMethod and Description
private static Set<Node>
pack-priv static boolean

Returns:

if rooted bye the rootnodes
inList
(Node currentNode, Set<Node> nodeList)

Method rooted

public int
isNodeInclude(Node currentNode)

Implements com.sun.org.apache.xml.internal.security.signature.NodeFilter.isNodeInclude.

Tells if a node must be output in c14n.

public int
isNodeIncludeDO(Node n, int level)

Implements com.sun.org.apache.xml.internal.security.signature.NodeFilter.isNodeIncludeDO.

Tells if a node must be output in a c14n.

pack-priv static boolean

Returns:

if rooted bye the rootnodes
rooted
(Node currentNode, Set<Node> nodeList)

Method rooted

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

hasIntersectFilterback to summary
private final boolean hasIntersectFilter
hasSubtractFilterback to summary
private final boolean hasSubtractFilter
hasUnionFilterback to summary
private final boolean hasUnionFilter
inIntersectback to summary
private int inIntersect
inSubtractback to summary
private int inSubtract
intersectNodesback to summary
private final Set<Node> intersectNodes
inUnionback to summary
private int inUnion
subtractNodesback to summary
private final Set<Node> subtractNodes
unionNodesback to summary
private final Set<Node> unionNodes

Constructor Detail

XPath2NodeFilterback to summary
pack-priv XPath2NodeFilter(List<NodeList> unionNodes, List<NodeList> subtractNodes, List<NodeList> intersectNodes)

Method Detail

convertNodeListToSetback to summary
private static Set<Node> convertNodeListToSet(List<NodeList> l)
inListback to summary
pack-priv static boolean inList(Node currentNode, Set<Node> nodeList)

Method rooted

Returns:boolean

if rooted bye the rootnodes

isNodeIncludeback to summary
public int isNodeInclude(Node currentNode)

Implements com.sun.org.apache.xml.internal.security.signature.NodeFilter.isNodeInclude.

Doc from com.sun.org.apache.xml.internal.security.signature.NodeFilter.isNodeInclude.

Tells if a node must be output in c14n.

See Also
com.sun.org.apache.xml.internal.security.signature.NodeFilter#isNodeInclude(org.w3c.dom.Node)
isNodeIncludeDOback to summary
public int isNodeIncludeDO(Node n, int level)

Implements com.sun.org.apache.xml.internal.security.signature.NodeFilter.isNodeIncludeDO.

Doc from com.sun.org.apache.xml.internal.security.signature.NodeFilter.isNodeIncludeDO.

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.

rootedback to summary
pack-priv static boolean rooted(Node currentNode, Set<Node> nodeList)

Method rooted

Returns:boolean

if rooted bye the rootnodes