APIdia Launch Partner
Top Description Fields Constructors Methods
javax.xml.crypto.dom

public Class DOMStructure

extends Object
implements XMLStructure
Class Inheritance
All Implemented Interfaces
javax.xml.crypto.XMLStructure
Imports
org.w3c.dom.Node, javax.xml.crypto.XMLStructure, javax.xml.crypto.dsig.XMLSignature

A DOM-specific XMLStructure. The purpose of this class is to allow a DOM node to be used to represent extensible content (any elements or mixed content) in XML Signature structures.

If a sequence of nodes is needed, the node contained in the DOMStructure is the first node of the sequence and successive nodes can be accessed by invoking Node#getNextSibling.

If the owner document of the DOMStructure is different than the target document of an XMLSignature, the XMLSignature#sign(XMLSignContext) method imports the node into the target document before generating the signature.

Authors
Sean Mullan, JSR 105 Expert Group
Since
1.6

Field Summary

Modifier and TypeField and Description
private final Node

Constructor Summary

AccessConstructor and Description
public
DOMStructure(Node
the node
node
)

Creates a DOMStructure containing the specified node.

Method Summary

Modifier and TypeMethod and Description
public Node

Returns:

the node
getNode
()

Returns the node contained in this DOMStructure.

public boolean
isFeatureSupported(String feature)

Implements javax.xml.crypto.XMLStructure.isFeatureSupported.

Indicates whether a specified feature is supported.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

nodeback to summary
private final Node node

Constructor Detail

DOMStructureback to summary
public DOMStructure(Node node)

Creates a DOMStructure containing the specified node.

Parameters
node:Node

the node

Exceptions
NullPointerException:
if node is null

Method Detail

getNodeback to summary
public Node getNode()

Returns the node contained in this DOMStructure.

Returns:Node

the node

isFeatureSupportedback to summary
public boolean isFeatureSupported(String feature)

Implements javax.xml.crypto.XMLStructure.isFeatureSupported.

Doc from javax.xml.crypto.XMLStructure.isFeatureSupported.

Indicates whether a specified feature is supported.

Exceptions
NullPointerException:
if feature is null