soaprmi.soapenc
Class SoapEnc

java.lang.Object
  extended bysoaprmi.soapenc.SoapEnc
All Implemented Interfaces:
EncodingStyle

public class SoapEnc
extends java.lang.Object
implements EncodingStyle

Implementaion of standard SOAP 1.1 encoding style.

Version:
$Revision: 1.17 $
Author:
Aleksander Slominski

Method Summary
 Deserializer defaultArrayDeserializer()
           
 Serializer defaultArraySerializer()
           
 Deserializer defaultStructDeserializer()
           
 Serializer defaultStructSerializer()
           
static SoapEnc getDefault()
           
 java.lang.String getEncodingStyleUri()
           
 Converter queryConverterFrom(java.lang.Class expectedType)
           
 Converter queryConverterTo(java.lang.Class expectedType)
           
 Deserializer queryDeserializer(java.lang.Class javaType)
           
 Deserializer queryInterfaceDeserializer(java.lang.Class javaInterface)
           
 Serializer queryInterfaceSerializer(java.lang.Class javaInterface)
           
 Serializer querySerializer(java.lang.Class javaType)
           
 boolean readBoolean(DeserializeContext dctx, org.gjt.xpp.XmlPullParser pp, org.gjt.xpp.XmlStartTag stag)
           
 double readDouble(DeserializeContext dctx, org.gjt.xpp.XmlPullParser pp, org.gjt.xpp.XmlStartTag stag)
           
 float readFloat(DeserializeContext dctx, org.gjt.xpp.XmlPullParser pp, org.gjt.xpp.XmlStartTag stag)
           
 int readInt(DeserializeContext dctx, org.gjt.xpp.XmlPullParser pp, org.gjt.xpp.XmlStartTag stag)
           
 long readLong(DeserializeContext dctx, org.gjt.xpp.XmlPullParser pp, org.gjt.xpp.XmlStartTag stag)
           
 java.lang.Object readObject(DeserializeContext dctx, java.lang.Class expectedType, org.gjt.xpp.XmlPullParser pp, org.gjt.xpp.XmlStartTag stag)
           
 short readShort(DeserializeContext dctx, org.gjt.xpp.XmlPullParser pp, org.gjt.xpp.XmlStartTag stag)
           
 java.lang.String readString(DeserializeContext dctx, org.gjt.xpp.XmlPullParser pp, org.gjt.xpp.XmlStartTag stag)
           
 void registerClassEncodingHandler(java.lang.Class javaType, Serializer ser, Deserializer deser)
           
 void registerConverterFrom(java.lang.Class expectedType, Converter cnv)
           
 void registerConverterTo(java.lang.Class expectedType, Converter cnv)
           
 void registerInterfaceEncodingHandler(java.lang.Class javaInterface, Serializer ser, Deserializer deser)
           
 void writeBoolean(SerializeContext sctx, boolean b, java.lang.String name, boolean forceXsiType)
           
 void writeDouble(SerializeContext sctx, double d, java.lang.String name, boolean forceXsiType)
           
 void writeFloat(SerializeContext sctx, float f, java.lang.String name, boolean forceXsiType)
           
 void writeInt(SerializeContext sctx, int i, java.lang.String name, boolean forceXsiType)
           
 void writeLong(SerializeContext sctx, long l, java.lang.String name, boolean forceXsiType)
           
 void writeObject(SerializeContext sctx, java.lang.Object o, java.lang.String name, java.lang.Class baseType)
           
 void writeShort(SerializeContext sctx, short s, java.lang.String name, boolean forceXsiType)
           
 void writeString(SerializeContext sctx, java.lang.String s, java.lang.String name, boolean forceXsiType)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getDefault

public static SoapEnc getDefault()

querySerializer

public Serializer querySerializer(java.lang.Class javaType)
                           throws SoapEncException
Specified by:
querySerializer in interface EncodingStyle
Throws:
SoapEncException

queryDeserializer

public Deserializer queryDeserializer(java.lang.Class javaType)
                               throws SoapEncException
Specified by:
queryDeserializer in interface EncodingStyle
Throws:
SoapEncException

registerClassEncodingHandler

public void registerClassEncodingHandler(java.lang.Class javaType,
                                         Serializer ser,
                                         Deserializer deser)
                                  throws SoapEncException
Specified by:
registerClassEncodingHandler in interface EncodingStyle
Throws:
SoapEncException

queryInterfaceDeserializer

public Deserializer queryInterfaceDeserializer(java.lang.Class javaInterface)
                                        throws SoapEncException
Specified by:
queryInterfaceDeserializer in interface EncodingStyle
Throws:
SoapEncException

queryInterfaceSerializer

public Serializer queryInterfaceSerializer(java.lang.Class javaInterface)
                                    throws SoapEncException
Specified by:
queryInterfaceSerializer in interface EncodingStyle
Throws:
SoapEncException

registerInterfaceEncodingHandler

public void registerInterfaceEncodingHandler(java.lang.Class javaInterface,
                                             Serializer ser,
                                             Deserializer deser)
                                      throws SoapException
Specified by:
registerInterfaceEncodingHandler in interface EncodingStyle
Throws:
SoapException

queryConverterFrom

public Converter queryConverterFrom(java.lang.Class expectedType)
Specified by:
queryConverterFrom in interface EncodingStyle

queryConverterTo

public Converter queryConverterTo(java.lang.Class expectedType)
Specified by:
queryConverterTo in interface EncodingStyle

registerConverterFrom

public void registerConverterFrom(java.lang.Class expectedType,
                                  Converter cnv)
Specified by:
registerConverterFrom in interface EncodingStyle

registerConverterTo

public void registerConverterTo(java.lang.Class expectedType,
                                Converter cnv)
Specified by:
registerConverterTo in interface EncodingStyle

getEncodingStyleUri

public java.lang.String getEncodingStyleUri()
Specified by:
getEncodingStyleUri in interface EncodingStyle

defaultArraySerializer

public Serializer defaultArraySerializer()
Specified by:
defaultArraySerializer in interface EncodingStyle

defaultStructSerializer

public Serializer defaultStructSerializer()
Specified by:
defaultStructSerializer in interface EncodingStyle

defaultArrayDeserializer

public Deserializer defaultArrayDeserializer()
Specified by:
defaultArrayDeserializer in interface EncodingStyle

defaultStructDeserializer

public Deserializer defaultStructDeserializer()
Specified by:
defaultStructDeserializer in interface EncodingStyle

readObject

public java.lang.Object readObject(DeserializeContext dctx,
                                   java.lang.Class expectedType,
                                   org.gjt.xpp.XmlPullParser pp,
                                   org.gjt.xpp.XmlStartTag stag)
                            throws DeserializeException,
                                   org.gjt.xpp.XmlPullParserException,
                                   java.io.IOException
Specified by:
readObject in interface EncodingStyle
Throws:
DeserializeException
org.gjt.xpp.XmlPullParserException
java.io.IOException

readBoolean

public boolean readBoolean(DeserializeContext dctx,
                           org.gjt.xpp.XmlPullParser pp,
                           org.gjt.xpp.XmlStartTag stag)
                    throws DeserializeException,
                           org.gjt.xpp.XmlPullParserException,
                           java.io.IOException
Specified by:
readBoolean in interface EncodingStyle
Throws:
DeserializeException
org.gjt.xpp.XmlPullParserException
java.io.IOException

readLong

public long readLong(DeserializeContext dctx,
                     org.gjt.xpp.XmlPullParser pp,
                     org.gjt.xpp.XmlStartTag stag)
              throws DeserializeException,
                     org.gjt.xpp.XmlPullParserException,
                     java.io.IOException
Specified by:
readLong in interface EncodingStyle
Throws:
DeserializeException
org.gjt.xpp.XmlPullParserException
java.io.IOException

readShort

public short readShort(DeserializeContext dctx,
                       org.gjt.xpp.XmlPullParser pp,
                       org.gjt.xpp.XmlStartTag stag)
                throws DeserializeException,
                       org.gjt.xpp.XmlPullParserException,
                       java.io.IOException
Specified by:
readShort in interface EncodingStyle
Throws:
DeserializeException
org.gjt.xpp.XmlPullParserException
java.io.IOException

readInt

public int readInt(DeserializeContext dctx,
                   org.gjt.xpp.XmlPullParser pp,
                   org.gjt.xpp.XmlStartTag stag)
            throws DeserializeException,
                   org.gjt.xpp.XmlPullParserException,
                   java.io.IOException
Specified by:
readInt in interface EncodingStyle
Throws:
DeserializeException
org.gjt.xpp.XmlPullParserException
java.io.IOException

readFloat

public float readFloat(DeserializeContext dctx,
                       org.gjt.xpp.XmlPullParser pp,
                       org.gjt.xpp.XmlStartTag stag)
                throws DeserializeException,
                       org.gjt.xpp.XmlPullParserException,
                       java.io.IOException
Specified by:
readFloat in interface EncodingStyle
Throws:
DeserializeException
org.gjt.xpp.XmlPullParserException
java.io.IOException

readDouble

public double readDouble(DeserializeContext dctx,
                         org.gjt.xpp.XmlPullParser pp,
                         org.gjt.xpp.XmlStartTag stag)
                  throws DeserializeException,
                         org.gjt.xpp.XmlPullParserException,
                         java.io.IOException
Specified by:
readDouble in interface EncodingStyle
Throws:
DeserializeException
org.gjt.xpp.XmlPullParserException
java.io.IOException

readString

public java.lang.String readString(DeserializeContext dctx,
                                   org.gjt.xpp.XmlPullParser pp,
                                   org.gjt.xpp.XmlStartTag stag)
                            throws DeserializeException,
                                   org.gjt.xpp.XmlPullParserException,
                                   java.io.IOException
Specified by:
readString in interface EncodingStyle
Throws:
DeserializeException
org.gjt.xpp.XmlPullParserException
java.io.IOException

writeObject

public void writeObject(SerializeContext sctx,
                        java.lang.Object o,
                        java.lang.String name,
                        java.lang.Class baseType)
                 throws SerializeException,
                        java.io.IOException
Specified by:
writeObject in interface EncodingStyle
Throws:
SerializeException
java.io.IOException

writeBoolean

public void writeBoolean(SerializeContext sctx,
                         boolean b,
                         java.lang.String name,
                         boolean forceXsiType)
                  throws SerializeException,
                         java.io.IOException
Throws:
SerializeException
java.io.IOException

writeLong

public void writeLong(SerializeContext sctx,
                      long l,
                      java.lang.String name,
                      boolean forceXsiType)
               throws SerializeException,
                      java.io.IOException
Throws:
SerializeException
java.io.IOException

writeShort

public void writeShort(SerializeContext sctx,
                       short s,
                       java.lang.String name,
                       boolean forceXsiType)
                throws SerializeException,
                       java.io.IOException
Throws:
SerializeException
java.io.IOException

writeInt

public void writeInt(SerializeContext sctx,
                     int i,
                     java.lang.String name,
                     boolean forceXsiType)
              throws SerializeException,
                     java.io.IOException
Specified by:
writeInt in interface EncodingStyle
Throws:
SerializeException
java.io.IOException

writeFloat

public void writeFloat(SerializeContext sctx,
                       float f,
                       java.lang.String name,
                       boolean forceXsiType)
                throws SerializeException,
                       java.io.IOException
Specified by:
writeFloat in interface EncodingStyle
Throws:
SerializeException
java.io.IOException

writeDouble

public void writeDouble(SerializeContext sctx,
                        double d,
                        java.lang.String name,
                        boolean forceXsiType)
                 throws SerializeException,
                        java.io.IOException
Specified by:
writeDouble in interface EncodingStyle
Throws:
SerializeException
java.io.IOException

writeString

public void writeString(SerializeContext sctx,
                        java.lang.String s,
                        java.lang.String name,
                        boolean forceXsiType)
                 throws SerializeException,
                        java.io.IOException
Specified by:
writeString in interface EncodingStyle
Throws:
SerializeException
java.io.IOException


Copyright (c) 2004 IU Extreme! Lab http://www.extreme.indiana.edu/ All Rights Reserved.