|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sforce.ws.bind.XmlObject
public class XmlObject
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.
| Constructor Summary | |
|---|---|
XmlObject()
|
|
XmlObject(QName name)
|
|
XmlObject(QName name,
Object value)
|
|
| Method Summary | |
|---|---|
XmlObject |
addField(String name,
Object value)
|
Iterator<XmlObject> |
evaluate(String xpath)
evaluate the given xpath like expression. |
XmlObject |
getChild(String name)
|
Iterator<XmlObject> |
getChildren()
|
Iterator<XmlObject> |
getChildren(String name)
|
Object |
getField(String name)
|
QName |
getName()
|
Object |
getValue()
|
QName |
getXmlType()
|
boolean |
hasChildren()
|
void |
load(XmlInputStream in,
TypeMapper typeMapper)
load the fileds/children from the specified xml stream |
protected void |
loadAfterStartTag(XmlInputStream in,
TypeMapper typeMapper)
|
protected void |
loadStartTag(XmlInputStream in,
TypeMapper typeMapper)
|
boolean |
removeField(String name)
|
void |
setDefaultNamespace(String namespace)
|
XmlObject |
setField(String name,
Object value)
|
void |
setName(QName name)
|
void |
setValue(Object value)
|
String |
toString()
|
void |
write(QName element,
XmlOutputStream out,
TypeMapper typeMapper)
write this instace as xml. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public XmlObject()
public XmlObject(QName name)
public XmlObject(QName name,
Object value)
| Method Detail |
|---|
public QName getName()
public void setName(QName name)
public void setDefaultNamespace(String namespace)
public QName getXmlType()
public Object getValue()
public void setValue(Object value)
public boolean hasChildren()
public XmlObject addField(String name,
Object value)
public XmlObject setField(String name,
Object value)
public Iterator<XmlObject> evaluate(String xpath)
xpath -
public boolean removeField(String name)
public Object getField(String name)
public XmlObject getChild(String name)
public Iterator<XmlObject> getChildren()
public Iterator<XmlObject> getChildren(String name)
public String toString()
toString in class Object
public void write(QName element,
XmlOutputStream out,
TypeMapper typeMapper)
throws IOException
XMLizable
write in interface XMLizableelement - xml element nameout - xml output streamtypeMapper - type mapper to be used
IOException - failed to write xml
public void load(XmlInputStream in,
TypeMapper typeMapper)
throws IOException,
ConnectionException
XMLizable
load in interface XMLizablein - xml input stream from which the data is readtypeMapper - type mapper to be used
IOException - failed to read xml
ConnectionException - failed to read/parser/bind xml
protected void loadStartTag(XmlInputStream in,
TypeMapper typeMapper)
protected void loadAfterStartTag(XmlInputStream in,
TypeMapper typeMapper)
throws IOException,
ConnectionException
IOException
ConnectionException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||