Package com.sforce.ws.bind
Class XmlObjectWrapper
java.lang.Object
com.sforce.ws.bind.XmlObject
com.sforce.ws.bind.XmlObjectWrapper
- All Implemented Interfaces:
XMLizable
This class wraps an XMLizable and presents it as an XmlObject so that we
can later convert this object to the complex type this represents.
- Author:
- georges.nguyen
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasTyped()Because we create complex types as subclasses of XMLizable instead of XmlObject (and we don't want to change interfaces), this method will return this as the complex type subclass of XMLizable, if this represents a complex type.getChildren(String name) getName()booleanvoidload(XmlInputStream in, TypeMapper typeMapper) load the fileds/children from the specified xml streambooleanremoveField(String name) voidsetDefaultNamespace(String namespace) voidtoString()voidwrite(QName element, XmlOutputStream out, TypeMapper typeMapper) write this instace as xml.Methods inherited from class com.sforce.ws.bind.XmlObject
cloneFrom, evaluate, getTypedChildren, getValue, loadAfterStartTag, loadStartTag, setValue
-
Constructor Details
-
XmlObjectWrapper
-
-
Method Details
-
addField
-
asTyped
Description copied from class:XmlObjectBecause we create complex types as subclasses of XMLizable instead of XmlObject (and we don't want to change interfaces), this method will return this as the complex type subclass of XMLizable, if this represents a complex type. If it does not, it will simply return this. -
getChild
-
getChildren
- Overrides:
getChildrenin classXmlObject
-
getChildren
- Overrides:
getChildrenin classXmlObject
-
getField
-
getName
-
getXmlType
- Overrides:
getXmlTypein classXmlObject
-
hasChildren
public boolean hasChildren()- Overrides:
hasChildrenin classXmlObject
-
load
Description copied from interface:XMLizableload the fileds/children from the specified xml stream- Specified by:
loadin interfaceXMLizable- Overrides:
loadin classXmlObject- Parameters:
in- xml input stream from which the data is readtypeMapper- type mapper to be used- Throws:
IOException- failed to read xmlConnectionException- failed to read/parser/bind xml
-
removeField
- Overrides:
removeFieldin classXmlObject
-
setDefaultNamespace
- Overrides:
setDefaultNamespacein classXmlObject
-
setField
-
setName
-
toString
-
write
Description copied from interface:XMLizablewrite this instace as xml.- Specified by:
writein interfaceXMLizable- Overrides:
writein classXmlObject- Parameters:
element- xml element nameout- xml output streamtypeMapper- type mapper to be used- Throws:
IOException- failed to write xml
-