public final class DOMXMLObject extends DOMStructure implements XMLObject
| Constructor and Description |
|---|
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. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
List<XMLStructure> |
getContent() |
String |
getEncoding() |
String |
getId() |
String |
getMimeType() |
int |
hashCode() |
void |
marshal(Node parent,
String dsPrefix,
DOMCryptoContext context) |
equalsContent, isFeatureSupportedclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitisFeatureSupportedpublic 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 XMLStructurepublic DOMXMLObject(Element objElem, XMLCryptoContext context, Provider provider) throws MarshalException
XMLObject from an element.objElem - an Object elementMarshalException - if there is an error when unmarshallingpublic List<XMLStructure> getContent()
getContent in interface XMLObjectpublic String getMimeType()
getMimeType in interface XMLObjectpublic String getEncoding()
getEncoding in interface XMLObjectpublic void marshal(Node parent, String dsPrefix, DOMCryptoContext context) throws MarshalException
marshal in class DOMStructureMarshalExceptionCopyright © 2000–2020 The Apache Software Foundation. All rights reserved.