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

public Class TransformXPath

extends TransformSpi
Class Inheritance
Imports
java.io.IOException, .OutputStream, java.security.AccessController, .PrivilegedAction, .Security, javax.xml.transform.TransformerException, com.sun.org.apache.xml.internal.security.parser.XMLParserException, com.sun.org.apache.xml.internal.security.signature.NodeFilter, .XMLSignatureInput, com.sun.org.apache.xml.internal.security.transforms.TransformSpi, .TransformationException, .Transforms, com.sun.org.apache.xml.internal.security.utils.*, org.w3c.dom.DOMException, .Element, .Node

Class TransformXPath Implements the http://www.w3.org/TR/1999/REC-xpath-19991116 transform.
See Also
XPath

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
pack-priv static final boolean

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected String
engineGetURI()

Implements abstract com.sun.org.apache.xml.internal.security.transforms.TransformSpi.engineGetURI.

Returns the URI representation of Transformation algorithm

protected XMLSignatureInput
enginePerformTransform(XMLSignatureInput input, OutputStream os, Element transformElement, String baseURI, boolean secureValidation)

Implements abstract com.sun.org.apache.xml.internal.security.transforms.TransformSpi.enginePerformTransform.

The mega method which MUST be implemented by the Transformation Algorithm.

protected XPathFactory
private boolean
needsCircumvent(String str)

Returns: true if needs to be circumvent for bug.

Field Detail

HEREFUNCback to summary
pack-priv static final boolean HEREFUNC

Constructor Detail

TransformXPathback to summary
public TransformXPath()

Method Detail

engineGetURIback to summary
protected String engineGetURI()

Implements abstract com.sun.org.apache.xml.internal.security.transforms.TransformSpi.engineGetURI.

Doc from com.sun.org.apache.xml.internal.security.transforms.TransformSpi.engineGetURI.

Returns the URI representation of Transformation algorithm

Annotations
@Override
enginePerformTransformback to summary
protected XMLSignatureInput enginePerformTransform(XMLSignatureInput input, OutputStream os, Element transformElement, String baseURI, boolean secureValidation) throws TransformationException

Implements abstract com.sun.org.apache.xml.internal.security.transforms.TransformSpi.enginePerformTransform.

Doc from com.sun.org.apache.xml.internal.security.transforms.TransformSpi.enginePerformTransform.

The mega method which MUST be implemented by the Transformation Algorithm.

Annotations
@Override
getXPathFactoryback to summary
protected XPathFactory getXPathFactory()
needsCircumventback to summary
private boolean needsCircumvent(String str)
Returns:boolean

true if needs to be circumvent for bug.

com.sun.org.apache.xml.internal.security.transforms.implementations back to summary

private Class TransformXPath.XPathNodeFilter

extends Object
implements NodeFilter
Class Inheritance
  • java.lang.Object
  • com.sun.org.apache.xml.internal.security.transforms.implementations.TransformXPath.XPathNodeFilter
All Implemented Interfaces
com.sun.org.apache.xml.internal.security.signature.NodeFilter

Field Summary

Modifier and TypeField and Description
private final String
private final XPathAPI
private final Element
private final Node

Constructor Summary

AccessConstructor and Description
pack-priv
XPathNodeFilter(Element xpathElement, Node xpathnode, String str, XPathAPI xPathAPI)

Method Summary

Modifier and TypeMethod and Description
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.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

strback to summary
private final String str
xPathAPIback to summary
private final XPathAPI xPathAPI
xpathElementback to summary
private final Element xpathElement
xpathnodeback to summary
private final Node xpathnode

Constructor Detail

XPathNodeFilterback to summary
pack-priv XPathNodeFilter(Element xpathElement, Node xpathnode, String str, XPathAPI xPathAPI)

Method Detail

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

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) throws TransformationException

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.