Class DOMXMLObject
java.lang.Object
org.apache.jcp.xml.dsig.internal.dom.DOMStructure
org.apache.jcp.xml.dsig.internal.dom.DOMXMLObject
- All Implemented Interfaces:
XMLObject
,XMLStructure
DOM-based implementation of XMLObject.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDOMXMLObject
(List<? extends XMLStructure> content, String id, String mimeType, String encoding) Creates anXMLObject
from the specified parameters.DOMXMLObject
(Element objElem, XMLCryptoContext context, Provider provider) Creates anXMLObject
from an element. -
Method Summary
Modifier and TypeMethodDescriptionboolean
private boolean
equalsContent
(List<XMLStructure> otherContent) getId()
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
-
Field Details
-
id
-
mimeType
-
encoding
-
-
objectElem
-
-
Constructor Details
-
DOMXMLObject
public DOMXMLObject(List<? extends XMLStructure> content, String id, String mimeType, String encoding) Creates anXMLObject
from the specified parameters.- Parameters:
content
- a list ofXMLStructure
s. The list is defensively copied to protect against subsequent modification. May benull
or empty.id
- the Id (may benull
)mimeType
- the mime type (may benull
)encoding
- the encoding (may benull
)- Throws:
ClassCastException
- ifcontent
contains any entries that are not of typeXMLStructure
-
DOMXMLObject
public DOMXMLObject(Element objElem, XMLCryptoContext context, Provider provider) throws MarshalException Creates anXMLObject
from an element.- Parameters:
objElem
- an Object element- Throws:
MarshalException
- if there is an error when unmarshalling
-
-
Method Details
-
getContent
- Specified by:
getContent
in interfaceXMLObject
-
getId
-
getMimeType
- Specified by:
getMimeType
in interfaceXMLObject
-
getEncoding
- Specified by:
getEncoding
in interfaceXMLObject
-
marshal
- Specified by:
marshal
in classDOMStructure
- Throws:
MarshalException
-
equals
-
hashCode
public int hashCode() -
equalsContent
-