Class XPathTransform
java.lang.Object
eu.europa.esig.dss.xades.reference.AbstractTransform
eu.europa.esig.dss.xades.reference.ComplexTransform
eu.europa.esig.dss.xades.reference.XPathTransform
- All Implemented Interfaces:
DSSTransform
- Direct Known Subclasses:
XPath2FilterTransform,XPathEnvelopedSignatureTransform
public class XPathTransform extends ComplexTransform
The XPath transform
-
Field Summary
Fields Modifier and Type Field Description protected StringxPathExpressionThe XPath expression to useFields inherited from class eu.europa.esig.dss.xades.reference.AbstractTransform
algorithm, namespace -
Constructor Summary
Constructors Modifier Constructor Description XPathTransform(DSSNamespace xmlDSigNamespace, String xPathExpression)Constructor with namespaceprotectedXPathTransform(DSSNamespace xmlDSigNamespace, String algorithm, String xPathExpression)Internal constructor with a custom algorithm urlXPathTransform(String xPathExpression)Default constructor -
Method Summary
Methods inherited from class eu.europa.esig.dss.xades.reference.ComplexTransform
getBytesAfterTransformation, getXMLSignatureInputMethods inherited from class eu.europa.esig.dss.xades.reference.AbstractTransform
getAlgorithm, setNamespace
-
Field Details
-
xPathExpression
The XPath expression to use
-
-
Constructor Details
-
XPathTransform
Default constructor- Parameters:
xPathExpression-String
-
XPathTransform
Constructor with namespace- Parameters:
xmlDSigNamespace-DSSNamespacexPathExpression-String
-
XPathTransform
Internal constructor with a custom algorithm url- Parameters:
xmlDSigNamespace-DSSNamespacealgorithm-StringurlxPathExpression-String
-
-
Method Details
-
createTransform
Description copied from interface:DSSTransformCreates a Transform element DOM and appends it to theparentNode- Specified by:
createTransformin interfaceDSSTransform- Overrides:
createTransformin classAbstractTransform- Parameters:
document-Documentto add transform forparentNode-Elementto append transform to- Returns:
- created transform
Element
-
hashCode
public int hashCode()- Overrides:
hashCodein classAbstractTransform
-
equals
- Overrides:
equalsin classAbstractTransform
-
toString
- Overrides:
toStringin classAbstractTransform
-