|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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.
Field Summary | |
---|---|
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(org.xmlpull.v1.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(org.xmlpull.v1.XmlSerializer writer,
java.lang.Object instance)
Write the instance to the given XmlSerializer. |
Methods inherited from class java.lang.Object |
---|
equals, 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
Constructor Detail |
---|
public MarshalHashtable()
Method Detail |
---|
public java.lang.Object readInstance(org.xmlpull.v1.XmlPullParser parser, java.lang.String namespace, java.lang.String name, PropertyInfo expected) throws java.io.IOException, org.xmlpull.v1.XmlPullParserException
Marshal
readInstance
in interface Marshal
parser
- the xml parsernamespace
- the namespace.
java.io.IOException
org.xmlpull.v1.XmlPullParserException
public void writeInstance(org.xmlpull.v1.XmlSerializer writer, java.lang.Object instance) throws java.io.IOException
Marshal
writeInstance
in interface Marshal
writer
- the xml serializer.instance
- the instance to write to the writer.
java.io.IOException
public void register(SoapSerializationEnvelope cm)
Marshal
register
in interface Marshal
cm
- the soap serialization envelope.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |