|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.jabber.jabberbeans.XMLData
an XMLData object is the root class of a heirarchy of objects, all which serialize themselves to XML data.
Constructor Summary | |
XMLData()
|
Method Summary | |
protected static boolean |
appendAttrib(java.lang.StringBuffer retval,
java.lang.String name,
java.lang.Object value)
appendAttrib outputs an attribute if needed. |
protected static boolean |
appendAttrib(java.lang.StringBuffer retval,
java.lang.String name,
java.lang.String value)
appendAttrib outputs an attribute if needed. |
protected static boolean |
appendChild(java.lang.StringBuffer retval,
java.lang.String name,
boolean value)
appendChild outputs an element if needed. |
protected static boolean |
appendChild(java.lang.StringBuffer retval,
java.lang.String name,
java.lang.String value)
appendChild adds the XML for a child 'element' to a
StringBuffer, as a helper to appendItem. |
abstract void |
appendItem(java.lang.StringBuffer retval)
appendItem appends the XML representation of the
current packet data to the specified StringBuffer . |
protected static void |
escapeString(java.lang.StringBuffer retval,
java.lang.String data)
|
java.lang.String |
toString()
toString is a serializer for the data contained in the
object to an equivalent snippet of XML stream. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public XMLData()
Method Detail |
public java.lang.String toString()
toString
is a serializer for the data contained in the
object to an equivalent snippet of XML stream.
toString
in class java.lang.Object
String
value which contains the XML
representation of this objectpublic abstract void appendItem(java.lang.StringBuffer retval)
appendItem
appends the XML representation of the
current packet data to the specified StringBuffer
.
retval
- The StringBuffer
to append toprotected static final boolean appendChild(java.lang.StringBuffer retval, java.lang.String name, java.lang.String value)
appendChild
adds the XML for a child 'element' to a
StringBuffer, as a helper to appendItem.
retval
- a StringBuffer
valuename
- a String
valuevalue
- a String
value
bool
which is true if the element was generated.
This is used for any shortcuts in the outputted XMLprotected static final boolean appendChild(java.lang.StringBuffer retval, java.lang.String name, boolean value)
appendChild
outputs an element if needed. If value=false
it does not output the tag.
retval
- a StringBuffer
valuename
- a String
valuevalue
- a boolean
value
bool
which is true if the element was generated.
This is used for any shortcuts in the outputted XMLprotected static final boolean appendAttrib(java.lang.StringBuffer retval, java.lang.String name, java.lang.String value)
appendAttrib
outputs an attribute if needed. If value=null
it will not output the attribute. Note that it outputs in the format:&qout; attrib=value&qout;, or it puts a proceeding space in front of the attribute, and no trailing space. This is for optimizing the XML generation.
retval
- a StringBuffer
valuename
- a String
valuevalue
- a boolean
value
bool
which is true if the attribute was
generated. This is used for any shortcuts in the outputted XMLprotected static final boolean appendAttrib(java.lang.StringBuffer retval, java.lang.String name, java.lang.Object value)
appendAttrib
outputs an attribute if needed. If value=null
it will not output the attribute. Note that it outputs in the format:&qout; attrib=value&qout;, or it puts a proceeding space in front of the attribute, and no trailing space. This is for optimizing the XML generation.
retval
- a StringBuffer
valuename
- a String
valuevalue
- a Object
value, which supports toString()
bool
which is true if the attribute was
generated. This is used for any shortcuts in the outputted XMLprotected static final void escapeString(java.lang.StringBuffer retval, java.lang.String data)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |