|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jcp.xml.dsig.internal.dom.BaseStructure
org.apache.jcp.xml.dsig.internal.dom.DOMXMLObject
public final class DOMXMLObject
DOM-based implementation of XMLObject.
Field Summary |
---|
Fields inherited from interface javax.xml.crypto.dsig.XMLObject |
---|
TYPE |
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
boolean |
equals(Object o)
|
List<XMLStructure> |
getContent()
Returns an unmodifiable
list of XMLStructure s contained in this XMLObject ,
which represent elements from any namespace. |
String |
getEncoding()
Returns the encoding URI of this XMLObject . |
String |
getId()
Returns the Id of this XMLObject . |
String |
getMimeType()
Returns the mime type of this XMLObject . |
static List<XMLStructure> |
getXmlObjectContent(XMLObject xo)
|
int |
hashCode()
|
static void |
marshal(XmlWriter xwriter,
XMLObject xmlObj,
String dsPrefix,
XMLCryptoContext context)
|
Methods inherited from class org.apache.jcp.xml.dsig.internal.dom.BaseStructure |
---|
isFeatureSupported, textOfNode |
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 |
Constructor Detail |
---|
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 element
MarshalException
- if there is an error when unmarshallingMethod Detail |
---|
public List<XMLStructure> getContent()
XMLObject
unmodifiable
list
of XMLStructure
s contained in this XMLObject
,
which represent elements from any namespace.
If there is a public subclass representing the type of
XMLStructure
, it is returned as an instance of that class
(ex: a SignatureProperties
element would be returned
as an instance of SignatureProperties
).
getContent
in interface XMLObject
XMLStructure
s (may be empty
but never null
)public String getId()
XMLObject
XMLObject
.
getId
in interface XMLObject
null
if not specified)public String getMimeType()
XMLObject
XMLObject
. The
mime type is an optional attribute which describes the data within this
XMLObject
(independent of its encoding).
getMimeType
in interface XMLObject
null
if not specified)public String getEncoding()
XMLObject
XMLObject
. The encoding
URI identifies the method by which the object is encoded.
getEncoding
in interface XMLObject
null
if not specified)public static void marshal(XmlWriter xwriter, XMLObject xmlObj, String dsPrefix, XMLCryptoContext context) throws MarshalException
MarshalException
public static List<XMLStructure> getXmlObjectContent(XMLObject xo)
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |