XML Security, 1.6

com.ibm.xml.enc.dom
Class DOMDataReference

java.lang.Object
  extended by com.ibm.xml.enc.dom.DOMStructure
      extended by com.ibm.xml.enc.dom.DOMDataReference
All Implemented Interfaces:
DOMURIReference, DataReference, ReferenceType, URIReference, XMLStructure

public final class DOMDataReference
extends DOMStructure
implements DataReference

DOM-based implementation of DataReference.


Constructor Summary
DOMDataReference(org.w3c.dom.Element refElem)
           
DOMDataReference(java.lang.String uri, java.util.List content)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.util.List getContent()
          Returns an unmodifiable list of XMLStructures representing the child elements of this ReferenceType.
 org.w3c.dom.Node getHere()
          Returns the here node.
 java.lang.String getType()
          Returns the type of data referenced by this URI.
 java.lang.String getURI()
          Returns the URI of the referenced data object.
 void marshal(org.w3c.dom.Node parent, java.lang.String encPrefix, DOMCryptoContext context)
           
 
Methods inherited from class com.ibm.xml.enc.dom.DOMStructure
isFeatureSupported
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.xml.crypto.enc.ReferenceType
getContent
 
Methods inherited from interface javax.xml.crypto.XMLStructure
isFeatureSupported
 
Methods inherited from interface javax.xml.crypto.URIReference
getType, getURI
 

Constructor Detail

DOMDataReference

public DOMDataReference(java.lang.String uri,
                        java.util.List content)

DOMDataReference

public DOMDataReference(org.w3c.dom.Element refElem)
                 throws MarshalException
Throws:
MarshalException
Method Detail

getHere

public org.w3c.dom.Node getHere()
Description copied from interface: DOMURIReference
Returns the here node.

Specified by:
getHere in interface DOMURIReference
Returns:
the attribute or processing instruction node or the parent element of the text node that directly contains the URI

marshal

public void marshal(org.w3c.dom.Node parent,
                    java.lang.String encPrefix,
                    DOMCryptoContext context)
             throws MarshalException
Throws:
MarshalException

equals

public boolean equals(java.lang.Object o)

getURI

public java.lang.String getURI()
Description copied from interface: URIReference
Returns the URI of the referenced data object.

Specified by:
getURI in interface URIReference
Returns:
the URI of the data object in RFC 2396 format (may be null if not specified)

getType

public java.lang.String getType()
Description copied from interface: URIReference
Returns the type of data referenced by this URI.

Specified by:
getType in interface URIReference
Returns:
the type (a URI) of the data object (may be null if not specified)

getContent

public java.util.List getContent()
Description copied from interface: ReferenceType
Returns an unmodifiable list of XMLStructures representing the child elements of this ReferenceType.

Specified by:
getContent in interface ReferenceType
Returns:
an unmodifiable list of XMLStructures (may be empty but never null)

XML Security, 1.6

Portions Copyright 2003, 2012 IBM Corporation.
Portions Copyright 2003, 2012 Oracle and/or its affiliates.