| java.lang.Object |
| ↳ |
com.sforce.ws.bind.XmlObject |
Known Direct Subclasses
|
Class Overview
This is a generic XML element -- same a DOM element. In the common case this
class must be able to hold child elements. We do not have a usecase for it yet.
So child elements are not implemented.
Summary
|
[Expand]
Inherited Methods |
From class
java.lang.Object
|
Object
|
clone()
|
|
boolean
|
equals(Object arg0)
|
|
void
|
finalize()
|
|
final
Class<?>
|
getClass()
|
|
int
|
hashCode()
|
|
final
void
|
notify()
|
|
final
void
|
notifyAll()
|
|
String
|
toString()
|
|
final
void
|
wait()
|
|
final
void
|
wait(long arg0, int arg1)
|
|
final
void
|
wait(long arg0)
|
|
From interface
com.sforce.ws.bind.XMLizable
|
Fields
private
String
defaultNamespace
Public Constructors
public
XmlObject
(QName name)
public
XmlObject
(QName name, Object value)
Public Methods
public
XmlObject
addField
(String name, Object value)
public
Iterator<XmlObject>
evaluate
(String xpath)
evaluate the given xpath like expression.
eg xpath: "OpportunityContactRoles/records/Contact/LastName" this will list
all LastName
public
Iterator<XmlObject>
getChildren
(String name)
public
Object
getField
(String name)
public
Object
getValue
()
public
QName
getXmlType
()
public
boolean
hasChildren
()
load the fileds/children from the specified xml stream
Parameters
| in
| Xml input stream from which the data is read |
| typeMapper
| Type mapper to be used |
public
boolean
removeField
(String name)
public
void
setDefaultNamespace
(String namespace)
public
XmlObject
setField
(String name, Object value)
public
void
setName
(QName name)
public
void
setValue
(Object value)
public
Map<String, Object>
toMap
()
public
String
toString
()
public
void
write
(QName element, XmlOutputStream out, TypeMapper typeMapper)
write this instace as xml.
Parameters
| element
| Xml element name |
| out
| Xml output stream |
| typeMapper
| Type mapper to be used |
Protected Methods