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
-
Constructor Summary
ConstructorsConstructorDescriptionDOMXMLObject(List<? extends XMLStructure> content, String id, String mimeType, String encoding) Creates anXMLObjectfrom the specified parameters.DOMXMLObject(Element objElem, XMLCryptoContext context, Provider provider) Creates anXMLObjectfrom an element. -
Method Summary
Methods inherited from class org.apache.jcp.xml.dsig.internal.dom.DOMStructure
isFeatureSupportedMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface javax.xml.crypto.XMLStructure
isFeatureSupported
-
Constructor Details
-
DOMXMLObject
public DOMXMLObject(List<? extends XMLStructure> content, String id, String mimeType, String encoding) Creates anXMLObjectfrom the specified parameters.- Parameters:
content- a list ofXMLStructures. The list is defensively copied to protect against subsequent modification. May benullor empty.id- the Id (may benull)mimeType- the mime type (may benull)encoding- the encoding (may benull)- Throws:
ClassCastException- ifcontentcontains any entries that are not of typeXMLStructure
-
DOMXMLObject
public DOMXMLObject(Element objElem, XMLCryptoContext context, Provider provider) throws MarshalException Creates anXMLObjectfrom an element.- Parameters:
objElem- an Object element- Throws:
MarshalException- if there is an error when unmarshalling
-
-
Method Details
-
getContent
- Specified by:
getContentin interfaceXMLObject
-
getId
-
getMimeType
- Specified by:
getMimeTypein interfaceXMLObject
-
getEncoding
- Specified by:
getEncodingin interfaceXMLObject
-
marshal
- Specified by:
marshalin classDOMStructure- Throws:
MarshalException
-
equals
-
hashCode
public int hashCode()
-