|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--uk.org.ogsadai.common.serializer.SerializerUtils
A set of useful methods related to serialization, deserialization and building and parsing SOAP messages.
Field Summary | |
private static java.lang.String |
COPYRIGHT_NOTICE
|
private static DAILogger |
LOG
|
Constructor Summary | |
SerializerUtils()
|
Method Summary | |
static org.w3c.dom.Document |
toDocument(org.apache.axis.message.MessageElement element)
Deserialize the given MessageElement into a DOM
Document . |
static org.w3c.dom.Document |
toDocument(org.apache.axis.message.MessageElement[] elements)
Deserialize the first MessageElement in the given
array into a DOM Document |
static org.w3c.dom.Element |
toElement(org.apache.axis.message.MessageElement element)
Deserialize the given MessageElement into a DOM
Element . |
static org.w3c.dom.Element[] |
toElement(org.apache.axis.message.MessageElement[] elements)
Deserialize the MessageElement s in the given
array into DOM Elements |
static org.apache.axis.message.MessageElement[] |
toMessage(javax.xml.namespace.QName name,
java.lang.Object value)
Create an array of org.apache.axis.nessage.MessageElement
objects where the first in the array contains an element with the given
name and value. |
static java.lang.Object |
toObject(org.apache.axis.message.MessageElement element)
Deserialize the given MessageElement into an object. |
static java.lang.Object |
toObject(org.apache.axis.message.MessageElement[] elements)
Deserialize the first MessageElement in the given
array into an object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final java.lang.String COPYRIGHT_NOTICE
private static final DAILogger LOG
Constructor Detail |
public SerializerUtils()
Method Detail |
public static org.apache.axis.message.MessageElement[] toMessage(javax.xml.namespace.QName name, java.lang.Object value)
org.apache.axis.nessage.MessageElement
objects where the first in the array contains an element with the given
name and value.
If the given object is a string, qualified name or byte array then an
attribute of form xsd:type="xsd:string"
,
xsd:type="xsd:QName"
or
xsd:type="xsd:base64Binary"
is added to the first
MessageElement
in the array.
This is because this information, though added anyway, was being removed just prior to transmission of the message for reasons that are unclear.
name
- Qualified name of message element.value
- Content of message element.
public static java.lang.Object toObject(org.apache.axis.message.MessageElement[] elements) throws DAISerializationException
MessageElement
in the given
array into an object.
elements
- Array of MessageElement
s.
null
if
elements
is null
or empty.
DAISerializationException
- if an XML type is
unsupported or if it has no deserializer or another problem
occurs.toObject(org.apache.axis.message.MessageElement)
public static java.lang.Object toObject(org.apache.axis.message.MessageElement element) throws DAISerializationException
MessageElement
into an object.
element
- The MessageElement
to be deserialized.
null
if
elements
is null
.
DAISerializationException
- if an XML type is
unsupported or if it has no deserializer or another problem
occurs.public static org.w3c.dom.Document toDocument(org.apache.axis.message.MessageElement[] elements) throws DAISerializationException
MessageElement
in the given
array into a DOM Document
elements
- Array of MessageElement
s.
Document
or null
if
elements
is null
or empty.
DAISerializationException
- if a problem occurs during
deserialization.toDocument(org.apache.axis.message.MessageElement)
public static org.w3c.dom.Document toDocument(org.apache.axis.message.MessageElement element) throws DAISerializationException
MessageElement
into a DOM
Document
.
element
- MessageElement
to be deserialized.
Document
.
DAISerializationException
- if a problem occurs during
deserialization.toElement(org.apache.axis.message.MessageElement)
public static org.w3c.dom.Element[] toElement(org.apache.axis.message.MessageElement[] elements) throws DAISerializationException
MessageElement
s in the given
array into DOM Elements
elements
- array of MessageElement
s.
Element
s or null
if
elements
is null
or empty.
DAISerializationException
- if a problem occurs during
deserialization.toElement(org.apache.axis.message.MessageElement)
public static org.w3c.dom.Element toElement(org.apache.axis.message.MessageElement element) throws DAISerializationException
MessageElement
into a DOM
Element
.
element
- MessageElement
to be deserialized.
Element
.
DAISerializationException
- if a problem occurs during
deserialization.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |