| Constructor and Description |
|---|
XmlObjectWrapper(XMLizable xmlizable) |
| Modifier and Type | Method and Description |
|---|---|
XmlObject |
addField(String name,
Object value) |
XMLizable |
asTyped()
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.
|
XmlObject |
getChild(String name) |
Iterator<XmlObject> |
getChildren() |
Iterator<XmlObject> |
getChildren(String name) |
Object |
getField(String name) |
QName |
getName() |
QName |
getXmlType() |
boolean |
hasChildren() |
void |
load(XmlInputStream in,
TypeMapper typeMapper)
load the fileds/children from the specified xml stream
|
boolean |
removeField(String name) |
void |
setDefaultNamespace(String namespace) |
XmlObject |
setField(String name,
Object value) |
void |
setName(QName name) |
String |
toString() |
void |
write(QName element,
XmlOutputStream out,
TypeMapper typeMapper)
write this instace as xml.
|
cloneFrom, evaluate, getTypedChildren, getValue, loadAfterStartTag, loadStartTag, setValuepublic XmlObjectWrapper(XMLizable xmlizable)
public XMLizable asTyped()
XmlObjectpublic Iterator<XmlObject> getChildren()
getChildren in class XmlObjectpublic Iterator<XmlObject> getChildren(String name)
getChildren in class XmlObjectpublic QName getXmlType()
getXmlType in class XmlObjectpublic boolean hasChildren()
hasChildren in class XmlObjectpublic void load(XmlInputStream in, TypeMapper typeMapper) throws IOException, ConnectionException
XMLizableload in interface XMLizableload in class XmlObjectin - xml input stream from which the data is readtypeMapper - type mapper to be usedIOException - failed to read xmlConnectionException - failed to read/parser/bind xmlpublic boolean removeField(String name)
removeField in class XmlObjectpublic void setDefaultNamespace(String namespace)
setDefaultNamespace in class XmlObjectpublic void write(QName element, XmlOutputStream out, TypeMapper typeMapper) throws IOException
XMLizablewrite in interface XMLizablewrite in class XmlObjectelement - xml element nameout - xml output streamtypeMapper - type mapper to be usedIOException - failed to write xmlCopyright © 2020. All rights reserved.