|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jcp.xml.dsig.internal.dom.DOMStructure
org.apache.jcp.xml.dsig.internal.dom.DOMXMLObject
public final class DOMXMLObject
DOM-based implementation of XMLObject.
| Field Summary |
|---|
| Fields inherited from interface javax.xml.crypto.dsig.XMLObject |
|---|
TYPE |
| Constructor Summary | |
|---|---|
DOMXMLObject(Element objElem,
XMLCryptoContext context,
Provider provider)
Creates an XMLObject from an element. |
|
DOMXMLObject(List<? extends XMLStructure> content,
String id,
String mimeType,
String encoding)
Creates an XMLObject from the specified parameters. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
|
List |
getContent()
Returns an unmodifiable
list of XMLStructures contained in this XMLObject,
which represent elements from any namespace. |
String |
getEncoding()
Returns the encoding URI of this XMLObject. |
String |
getId()
Returns the Id of this XMLObject. |
String |
getMimeType()
Returns the mime type of this XMLObject. |
int |
hashCode()
|
void |
marshal(Node parent,
String dsPrefix,
DOMCryptoContext context)
|
| Methods inherited from class org.apache.jcp.xml.dsig.internal.dom.DOMStructure |
|---|
isFeatureSupported |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.xml.crypto.XMLStructure |
|---|
isFeatureSupported |
| Constructor Detail |
|---|
public DOMXMLObject(List<? extends XMLStructure> content,
String id,
String mimeType,
String encoding)
XMLObject from the specified parameters.
content - a list of XMLStructures. The list
is defensively copied to protect against subsequent modification.
May be null or empty.id - the Id (may be null)mimeType - the mime type (may be null)encoding - the encoding (may be null)
ClassCastException - if content contains any
entries that are not of type XMLStructure
public DOMXMLObject(Element objElem,
XMLCryptoContext context,
Provider provider)
throws MarshalException
XMLObject from an element.
objElem - an Object element
MarshalException - if there is an error when unmarshalling| Method Detail |
|---|
public List getContent()
XMLObjectunmodifiable
list of XMLStructures contained in this XMLObject,
which represent elements from any namespace.
If there is a public subclass representing the type of
XMLStructure, it is returned as an instance of that class
(ex: a SignatureProperties element would be returned
as an instance of SignatureProperties).
getContent in interface XMLObjectXMLStructures (may be empty
but never null)public String getId()
XMLObjectXMLObject.
getId in interface XMLObjectnull if not specified)public String getMimeType()
XMLObjectXMLObject. The
mime type is an optional attribute which describes the data within this
XMLObject (independent of its encoding).
getMimeType in interface XMLObjectnull if not specified)public String getEncoding()
XMLObjectXMLObject. The encoding
URI identifies the method by which the object is encoded.
getEncoding in interface XMLObjectnull if not specified)
public void marshal(Node parent,
String dsPrefix,
DOMCryptoContext context)
throws MarshalException
marshal in class DOMStructureMarshalExceptionpublic boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||