|
||||||||||
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.
Field Summary | |
---|---|
static Class |
HASHTABLE_CLASS
CLDC does not support .class, so this helper is needed. |
static String |
NAME
use then during registration |
static String |
NAMESPACE
use then during registration |
Constructor Summary | |
---|---|
MarshalHashtable()
|
Method Summary | |
---|---|
Object |
readInstance(org.xmlpull.v1.XmlPullParser parser,
String namespace,
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,
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 String NAMESPACE
public static final String NAME
public static final Class HASHTABLE_CLASS
Constructor Detail |
---|
public MarshalHashtable()
Method Detail |
---|
public Object readInstance(org.xmlpull.v1.XmlPullParser parser, String namespace, String name, PropertyInfo expected) throws IOException, org.xmlpull.v1.XmlPullParserException
Marshal
readInstance
in interface Marshal
parser
- the xml parsernamespace
- the namespace.
IOException
org.xmlpull.v1.XmlPullParserException
public void writeInstance(org.xmlpull.v1.XmlSerializer writer, Object instance) throws IOException
Marshal
writeInstance
in interface Marshal
writer
- the xml serializer.instance
- the instance to write to the writer.
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 |