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, isFeatureSupported
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 void marshal(Node parent, String dsPrefix, DOMCryptoContext context) throws MarshalException
marshal
in class DOMStructure
MarshalException
Copyright © 2000–2020 The Apache Software Foundation. All rights reserved.