public abstract class AbstractMwsObject extends Object implements MwsObject
| Constructor and Description |
|---|
AbstractMwsObject() |
| Modifier and Type | Method and Description |
|---|---|
String |
toJSON()
Write self to a JSON object representation.
|
String |
toJSONFragment()
Render self to a fragment of JSON.
|
String |
toXML()
Write self to a XML object representation.
|
String |
toXMLFragment()
Render self to an XML fragment.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitreadFragmentFrom, writeFragmentTo, writeTopublic String toJSON()
MwsObjectThis includes beginning brace, labe:value contents, and ending brace.
public String toJSONFragment()
MwsObjectThis would be just the contents of the braces for the whole JSON object.
toJSONFragment in interface MwsObjectpublic String toXML()
MwsObjectThis includes begin tag, attributes, inner tags, and end tag.
public String toXMLFragment()
MwsObjectThis includes the inner tags of the full XML representation, but not the outer tag or any attributes.
toXMLFragment in interface MwsObjectCopyright © 2014. All Rights Reserved.