|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ksoap2.serialization.MarshalHashtable
public class MarshalHashtable
Serializes instances of hashtable to and from xml. This implementation is based on the xml schema from apache-soap, namely the type 'map' in the namespace 'http://xml.apache.org/xml-soap'. Other soap implementations including apache (obviously) and glue are also interoperable with the schema.
Nested Class Summary | |
---|---|
(package private) class |
MarshalHashtable.ItemSoapObject
|
Field Summary | |
---|---|
(package private) SoapSerializationEnvelope |
envelope
|
static java.lang.Class |
HASHTABLE_CLASS
CLDC does not support .class, so this helper is needed. |
static java.lang.String |
NAME
use then during registration |
static java.lang.String |
NAMESPACE
use then during registration |
Constructor Summary | |
---|---|
MarshalHashtable()
|
Method Summary | |
---|---|
java.lang.Object |
readInstance(XmlPullParser parser,
java.lang.String namespace,
java.lang.String name,
PropertyInfo expected)
This methods reads an instance from the given parser. |
void |
register(SoapSerializationEnvelope cm)
Register this Marshal with Envelope |
void |
writeInstance(XmlSerializer writer,
java.lang.Object instance)
Write the instance to the given XmlSerializer. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String NAMESPACE
public static final java.lang.String NAME
public static final java.lang.Class HASHTABLE_CLASS
SoapSerializationEnvelope envelope
Constructor Detail |
---|
public MarshalHashtable()
Method Detail |
---|
public java.lang.Object readInstance(XmlPullParser parser, java.lang.String namespace, java.lang.String name, PropertyInfo expected) throws java.io.IOException, XmlPullParserException
Marshal
readInstance
in interface Marshal
java.io.IOException
XmlPullParserException
public void writeInstance(XmlSerializer writer, java.lang.Object instance) throws java.io.IOException
Marshal
writeInstance
in interface Marshal
java.io.IOException
public void register(SoapSerializationEnvelope cm)
Marshal
register
in interface Marshal
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |