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 anXMLObjectfrom the specified parameters.DOMXMLObject(Element objElem, XMLCryptoContext context, Provider provider) Creates anXMLObjectfrom an element. -
Method Summary
Modifier and TypeMethodDescriptionbooleanprivate booleanequalsContent(List<XMLStructure> otherContent) getId()inthashCode()voidmarshal(Node parent, String dsPrefix, DOMCryptoContext context) Methods inherited from class DOMStructure
isFeatureSupportedMethods inherited from class Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface XMLStructure
isFeatureSupported
-
Field Details
-
id
-
mimeType
-
encoding
-
-
objectElem
-
-
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
-
equalsContent
-