public final class DOMXMLObject extends BaseStructure 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() |
static List<XMLStructure> |
getXmlObjectContent(XMLObject xo) |
int |
hashCode() |
static void |
marshal(XmlWriter xwriter,
XMLObject xmlObj,
String dsPrefix,
XMLCryptoContext context) |
isFeatureSupported, textOfNodeclone, 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 static void marshal(XmlWriter xwriter, XMLObject xmlObj, String dsPrefix, XMLCryptoContext context) throws MarshalException
MarshalExceptionpublic static List<XMLStructure> getXmlObjectContent(XMLObject xo)
Copyright © 2000–2016 The Apache Software Foundation. All rights reserved.