public class XPath2ParameterImpl extends AlgorithmParameterImpl
XPath element that supports the DOM XML
representation and processing mechanism.DOMStructure.NodeWrapper| Modifier and Type | Field and Description |
|---|---|
protected String |
filter_
The filter operation.
|
protected Map |
namespaceMap_
|
protected String |
xpath_
The XPath expression.
|
protected XPathType |
xPathType_
The
XPathType that corresponds to this
XPath2ParameterImpl. |
implMap_, state_, STATE_CREATED, STATE_MARSHALED, STATE_UNINITIALIZED, STATE_UNMARSHALED| Constructor and Description |
|---|
XPath2ParameterImpl(DOMCryptoContext context,
Node node)
Creates a new instance of this
XPath2ParameterImpl with the
specified provider config, context and node to unmarshal from. |
XPath2ParameterImpl(XPathType xPathType)
Creates a new instance of this
XPath2ParameterImpl with the
specified provider config, XPathType and node mapping. |
| Modifier and Type | Method and Description |
|---|---|
String |
getFilter()
Returns the XPath filter.
|
String |
getLocalName()
Returns the local name of the represented XML element.
|
String |
getNamespace()
Returns the namespace URI of the represented XML element.
|
String |
getXpath()
Returns the XPath expression.
|
protected void |
marshalAttributes(DOMCryptoContext context,
Element parent)
Marshals the XML representation of all
Attributes
represented by this DOMStrucuture. |
protected Element |
marshalElement(DOMCryptoContext context,
Node parent,
Node nextSibling)
Marshals the XML representation of the
Element represented by this
DOMStructure and returns it. |
protected void |
unmarshalAttributes(NamedNodeMap attributes,
DOMCryptoContext context)
Unmarshal the given
attributes. |
protected void |
unmarshalElement(DOMCryptoContext context,
Element element)
Unmarshals the given
element. |
setParentStructureaddBytesToElement, addBytesToElement, clearMarshalling, clearMarshalling, getBytesFromElement, getBytesFromElementStream, getChildStructures, getChildStructureVersion, getHere, getImplClass, getInstance, getInstance, getNode, getParentStructure, getParentStructureOf, getQualifiedName, getQualifiedName, hasNSDeclAttrInScope, isFeatureSupported, isNSDeclInScope, marshal, marshalIDAttribute, newIDforLookUp, putChildStructure, putImplClass, setBackToCompatibilityPrior1_14, setNode, toString, unmarshal, unmarshalIDAttribute, unmarshalStructures, wrapNodeprotected String filter_
null)protected String xpath_
null)protected Map namespaceMap_
public XPath2ParameterImpl(DOMCryptoContext context, Node node) throws MarshalException
XPath2ParameterImpl with the
specified provider config, context and node to unmarshal from.context - the contextnode - the node to unmarshal fromMarshalException - if an exception occurs during unmarshalingpublic XPath2ParameterImpl(XPathType xPathType)
XPath2ParameterImpl with the
specified provider config, XPathType and node mapping.xPathType - the XPathTypeNullPointerException - if config or xPathType is
nullpublic String getLocalName()
DOMStructuregetLocalName in class DOMStructureDOMStructure.getLocalName()public String getNamespace()
DOMStructuregetNamespace in class DOMStructureDOMStructure.getNamespace()protected void marshalAttributes(DOMCryptoContext context, Element parent) throws MarshalException
DOMStructureAttributes
represented by this DOMStrucuture.
This method is called by DOMStructure.marshal(DOMCryptoContext, Node, Node).
If no namespace prefix is set in the context for the namespace
of the Element represented by this DOMStructure an
namespace declaration is marshaled and returned. Otherwise, an empty list
is returned.
A subclass has to overwrite this method in order to marshal any additional attributes.
marshalAttributes in class DOMStructurecontext - the marshal contextparent - the element is the parent of the attribute node created however, an
the attribute node is not a child of it's parent element. see XPath.MarshalException - if an exception occurs during marshalingDOMStructure.marshalAttributes(DOMCryptoContext,
Element)protected Element marshalElement(DOMCryptoContext context, Node parent, Node nextSibling) throws MarshalException
DOMStructureElement represented by this
DOMStructure and returns it.
This method is called by DOMStructure.marshal(DOMCryptoContext, Node, Node).
marshalElement in class DOMStructurecontext - the marshal contextparent - where to place the marshalled elementnextSibling - before which to place the marshalled nodeElementMarshalException - if an exception occurs during marshalingDOMStructure.marshalElement(DOMCryptoContext,
Node, Node)protected void unmarshalAttributes(NamedNodeMap attributes, DOMCryptoContext context) throws MarshalException
DOMStructureattributes.
This method is called by DOMStructure.unmarshal(DOMCryptoContext).
A subclass has to overwrite this method to perform any special unmarshaling required.
unmarshalAttributes in class DOMStructureattributes - the Attributes to unmarshalcontext - the marshal contextMarshalException - if an exception occurs during unmarshalingDOMStructure.unmarshalAttributes(org.w3c.dom.NamedNodeMap,
javax.xml.crypto.dom.DOMCryptoContext)protected void unmarshalElement(DOMCryptoContext context, Element element) throws MarshalException
DOMStructureelement.
This method is called by DOMStructure.unmarshal(DOMCryptoContext).
A subclass has to overwrite this method to perform any special unmarshaling required.
unmarshalElement in class DOMStructurecontext - the marshal contextelement - the element to be unmarshalMarshalException - if an exception occurs during unmarshalingDOMStructure.unmarshalElement(javax.xml.crypto.dom.DOMCryptoContext,
org.w3c.dom.Element)public String getFilter()
intersect,
subtract or unionpublic String getXpath()
© 2002-2005 IAIK, © 2004, 2006 - 2019 Stiftung SIC