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, textOfNode
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
isFeatureSupported
public DOMXMLObject(List<? extends XMLStructure> content, String id, String mimeType, String encoding)
XMLObject
from the specified parameters.content
- a list of XMLStructure
s. 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 elementMarshalException
- if there is an error when unmarshallingpublic List<XMLStructure> getContent()
getContent
in interface XMLObject
public String getMimeType()
getMimeType
in interface XMLObject
public String getEncoding()
getEncoding
in interface XMLObject
public static void marshal(XmlWriter xwriter, XMLObject xmlObj, String dsPrefix, XMLCryptoContext context) throws MarshalException
MarshalException
public static List<XMLStructure> getXmlObjectContent(XMLObject xo)
Copyright © 2000–2020 The Apache Software Foundation. All rights reserved.