|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.globus.wsrf.utils.AnyHelper
The AnyHelper is a utility that provides common functions
for working with MessageElement and beans with
AnyContentType class.
Do not used this class for serialization or deserialization of
objects.
Use ObjectSerializer and
ObjectDeserializer for
that purposes instead.
| Field Summary | |
(package private) static org.apache.commons.logging.Log |
logger
|
| Constructor Summary | |
AnyHelper()
|
|
| Method Summary | |
static org.w3c.dom.Element |
getFirstAsElement(AnyContentType any)
Converts type containing any element to a single DOM Element. |
static org.w3c.dom.Element |
getFirstParentAsElement(AnyContentType any)
Converts type containing any element to a single DOM Element, representing the parent MessageElement. |
static String |
getFirstParentAsString(AnyContentType any)
Converts type containing any element to a String, representing the parent MessageElement. |
static MessageElement |
getParent(AnyContentType any)
|
static MessageElement |
getParent(MessageElement element)
|
static MessageElement |
getParent(MessageElement[] elements)
|
static void |
setAny(AnyContentType object,
List values)
|
static void |
setAny(AnyContentType object,
SOAPElement value)
|
static void |
setAny(AnyContentType object,
SOAPElement[] values)
|
static MessageElement |
toAny(Object obj)
Populates a SOAP MessageElement with an arbitrary object. |
static MessageElement[] |
toAnyArray(org.w3c.dom.Element element)
Populates a SOAP MessageElement array with a single DOM element. |
static MessageElement[] |
toAnyArray(Object obj)
Populates a SOAP MessageElement array with a single object. |
static MessageElement[] |
toAnyArray(Object[] obj)
Populates a SOAP MessageElement array with an array of arbitrary objects. |
static MessageElement |
toAnyTypeElement(Object obj)
Populates a SOAP MessageElement with an arbitrary object, and wraps it inside of a value element with an xsi:type attribute. |
static org.w3c.dom.Element[] |
toElement(AnyContentType any)
Converts type containing any element to an array of DOM Elements. |
static org.w3c.dom.Element |
toElement(MessageElement element)
Converts a SOAP MessageElement to a DOM Element representation |
static org.w3c.dom.Element[] |
toElement(MessageElement[] elements)
Array version of toElement |
static String |
toSingleString(AnyContentType any)
|
static String |
toSingleString(MessageElement[] elements)
|
static String |
toString(MessageElement element)
Converts a SOAP MessageElement to an XML String representation |
static String[] |
toString(MessageElement[] elements)
Array version of toString |
static MessageElement[] |
toText(Object obj)
Populates a SOAP MessageElement array with a single object. |
static void |
write(Writer writer,
MessageElement element)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
static org.apache.commons.logging.Log logger
| Constructor Detail |
public AnyHelper()
| Method Detail |
public static MessageElement[] toText(Object obj)
obj - object to be serialized as a text node
public static MessageElement[] toAnyArray(Object[] obj)
obj - array of objects to be serialized in the any element
public static MessageElement[] toAnyArray(Object obj)
obj - object to be serialized in the any element
public static MessageElement[] toAnyArray(org.w3c.dom.Element element)
element - element to be inserted in the any element
public static MessageElement toAnyTypeElement(Object obj)
obj - object to be serialized in the any element
public static MessageElement toAny(Object obj)
obj - object to be serialized in the any element.
toAnyTypeElement(Object)public static MessageElement getParent(MessageElement element)
public static MessageElement getParent(MessageElement[] elements)
public static MessageElement getParent(AnyContentType any)
public static void setAny(AnyContentType object,
SOAPElement value)
public static void setAny(AnyContentType object,
SOAPElement[] values)
public static void setAny(AnyContentType object,
List values)
public static void write(Writer writer,
MessageElement element)
throws Exception
Exception
public static String toString(MessageElement element)
throws Exception
element - SOAP MessageElement to be converted
Exception
public static String[] toString(MessageElement[] elements)
throws Exception
toString
Exception
public static String toSingleString(MessageElement[] elements)
throws Exception
Exception
public static String toSingleString(AnyContentType any)
throws Exception
Exception
public static String getFirstParentAsString(AnyContentType any)
throws Exception
ExceptiontoString(MessageElement element)
public static org.w3c.dom.Element toElement(MessageElement element)
throws Exception
element - SOAP MessageElement to be converted
Exception - if the DOM Element could not be created
public static org.w3c.dom.Element[] toElement(MessageElement[] elements)
throws Exception
toElement
Exception
public static org.w3c.dom.Element[] toElement(AnyContentType any)
throws Exception
ExceptiontoElement(MessageElement element)
public static org.w3c.dom.Element getFirstParentAsElement(AnyContentType any)
throws Exception
ExceptiontoElement(MessageElement element)
public static org.w3c.dom.Element getFirstAsElement(AnyContentType any)
throws Exception
ExceptiontoElement(MessageElement element)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||