Package com.sforce.ws.bind
Class XmlObjectWrapper
- java.lang.Object
-
- com.sforce.ws.bind.XmlObject
-
- com.sforce.ws.bind.XmlObjectWrapper
-
-
Constructor Summary
Constructors Constructor Description XmlObjectWrapper(XMLizable xmlizable)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description XmlObjectaddField(java.lang.String name, java.lang.Object value)XMLizableasTyped()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.XmlObjectgetChild(java.lang.String name)java.util.Iterator<XmlObject>getChildren()java.util.Iterator<XmlObject>getChildren(java.lang.String name)java.lang.ObjectgetField(java.lang.String name)javax.xml.namespace.QNamegetName()javax.xml.namespace.QNamegetXmlType()booleanhasChildren()voidload(XmlInputStream in, TypeMapper typeMapper)load the fileds/children from the specified xml streambooleanremoveField(java.lang.String name)voidsetDefaultNamespace(java.lang.String namespace)XmlObjectsetField(java.lang.String name, java.lang.Object value)voidsetName(javax.xml.namespace.QName name)java.lang.StringtoString()voidwrite(javax.xml.namespace.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 Detail
-
XmlObjectWrapper
public XmlObjectWrapper(XMLizable xmlizable)
-
-
Method Detail
-
addField
public XmlObject addField(java.lang.String name, java.lang.Object value)
-
asTyped
public XMLizable 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.
-
getChildren
public java.util.Iterator<XmlObject> getChildren()
- Overrides:
getChildrenin classXmlObject
-
getChildren
public java.util.Iterator<XmlObject> getChildren(java.lang.String name)
- Overrides:
getChildrenin classXmlObject
-
getField
public java.lang.Object getField(java.lang.String name)
-
getXmlType
public javax.xml.namespace.QName getXmlType()
- Overrides:
getXmlTypein classXmlObject
-
hasChildren
public boolean hasChildren()
- Overrides:
hasChildrenin classXmlObject
-
load
public void load(XmlInputStream in, TypeMapper typeMapper) throws java.io.IOException, ConnectionException
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:
java.io.IOException- failed to read xmlConnectionException- failed to read/parser/bind xml
-
removeField
public boolean removeField(java.lang.String name)
- Overrides:
removeFieldin classXmlObject
-
setDefaultNamespace
public void setDefaultNamespace(java.lang.String namespace)
- Overrides:
setDefaultNamespacein classXmlObject
-
setField
public XmlObject setField(java.lang.String name, java.lang.Object value)
-
write
public void write(javax.xml.namespace.QName element, XmlOutputStream out, TypeMapper typeMapper) throws java.io.IOExceptionDescription copied from interface:XMLizablewrite this instace as xml.
-
-