soaprmi.soap
Class SoapDeserializeContextImpl

java.lang.Object
  extended bysoaprmi.soap.SoapDeserializeContextImpl
All Implemented Interfaces:
DeserializeContext, SoapDeserializeContext

public class SoapDeserializeContextImpl
extends java.lang.Object
implements SoapDeserializeContext

Standard implementation for SOAP deserialization context.

Version:
$Revision: 1.12 $
Author:
Aleksander Slominski

Method Summary
 void addArrayFixup(java.lang.Object target, int pos, java.lang.Class komponentType, java.lang.String id)
           
 void addStructFixup(StructAccessor sa, java.lang.Object target, java.lang.String accessorName, java.lang.Class accessorType, java.lang.String id)
           
 void close()
           
 java.lang.Object convert(EncodingStyle enc, java.lang.Object source, java.lang.Class expectedType)
           
 byte done()
           
 void enterStruct()
           
 EncodingStyle getDefaultEncodingStyle()
           
 org.gjt.xpp.XmlEndTag getEndTag()
           
 java.lang.Object getIdValue(java.lang.String id)
           
 XmlJavaMapping getMapping()
           
 org.gjt.xpp.XmlPullParser getPullParser()
           
 org.gjt.xpp.XmlStartTag getStartTag()
           
 boolean hasId(java.lang.String id)
           
 boolean isClosed()
           
 void leaveStruct()
           
 Deserializer queryDeserializer(EncodingStyle enc, XmlJavaTypeMap map)
           
 XmlJavaTypeMap queryTypeMap(EncodingStyle enc, java.lang.Class javaClass)
           
 XmlJavaTypeMap queryTypeMap(EncodingStyle enc, java.lang.String uri, java.lang.String localName)
           
 double readDouble()
           
 float readFloat()
           
 int readInt()
           
 java.lang.Object readObject(java.lang.Class expectedType)
           
 byte readRoots(org.gjt.xpp.XmlPullParser pp, org.gjt.xpp.XmlStartTag stag)
           
 java.lang.String readString()
           
 void setDefaultEncodingStyle(EncodingStyle enc_)
           
 void setIdValue(java.lang.String id, java.lang.Object value)
           
 void setMapping(XmlJavaMapping mapping_)
           
 void setPullParser(org.gjt.xpp.XmlPullParser parser)
           
 void setReader(java.io.Reader reader_)
           
 int structLevel()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getDefaultEncodingStyle

public EncodingStyle getDefaultEncodingStyle()
Specified by:
getDefaultEncodingStyle in interface DeserializeContext

setDefaultEncodingStyle

public void setDefaultEncodingStyle(EncodingStyle enc_)
Specified by:
setDefaultEncodingStyle in interface DeserializeContext

getMapping

public XmlJavaMapping getMapping()
Specified by:
getMapping in interface DeserializeContext

setMapping

public void setMapping(XmlJavaMapping mapping_)
Specified by:
setMapping in interface DeserializeContext

getPullParser

public org.gjt.xpp.XmlPullParser getPullParser()
Specified by:
getPullParser in interface DeserializeContext

getStartTag

public org.gjt.xpp.XmlStartTag getStartTag()
Specified by:
getStartTag in interface DeserializeContext

getEndTag

public org.gjt.xpp.XmlEndTag getEndTag()
Specified by:
getEndTag in interface DeserializeContext

setReader

public void setReader(java.io.Reader reader_)
               throws SoapException
Specified by:
setReader in interface DeserializeContext
Throws:
SoapException

setPullParser

public void setPullParser(org.gjt.xpp.XmlPullParser parser)
                   throws SoapException
Specified by:
setPullParser in interface DeserializeContext
Throws:
SoapException

done

public byte done()
          throws DeserializeException,
                 java.io.IOException
Specified by:
done in interface DeserializeContext
Throws:
DeserializeException
java.io.IOException

isClosed

public boolean isClosed()
Specified by:
isClosed in interface DeserializeContext

close

public void close()
           throws DeserializeException,
                  java.io.IOException
Specified by:
close in interface DeserializeContext
Throws:
DeserializeException
java.io.IOException

readObject

public java.lang.Object readObject(java.lang.Class expectedType)
                            throws DeserializeException,
                                   java.io.IOException
Specified by:
readObject in interface DeserializeContext
Throws:
DeserializeException
java.io.IOException

readDouble

public double readDouble()
                  throws DeserializeException,
                         java.io.IOException
Specified by:
readDouble in interface DeserializeContext
Throws:
DeserializeException
java.io.IOException

readFloat

public float readFloat()
                throws DeserializeException,
                       java.io.IOException
Specified by:
readFloat in interface DeserializeContext
Throws:
DeserializeException
java.io.IOException

readInt

public int readInt()
            throws DeserializeException,
                   java.io.IOException
Specified by:
readInt in interface DeserializeContext
Throws:
DeserializeException
java.io.IOException

readString

public java.lang.String readString()
                            throws DeserializeException,
                                   java.io.IOException
Specified by:
readString in interface DeserializeContext
Throws:
DeserializeException
java.io.IOException

queryTypeMap

public XmlJavaTypeMap queryTypeMap(EncodingStyle enc,
                                   java.lang.Class javaClass)
                            throws XmlMapException
Specified by:
queryTypeMap in interface DeserializeContext
Throws:
XmlMapException

queryTypeMap

public XmlJavaTypeMap queryTypeMap(EncodingStyle enc,
                                   java.lang.String uri,
                                   java.lang.String localName)
                            throws XmlMapException
Specified by:
queryTypeMap in interface DeserializeContext
Throws:
XmlMapException

queryDeserializer

public Deserializer queryDeserializer(EncodingStyle enc,
                                      XmlJavaTypeMap map)
                               throws DeserializeException
Specified by:
queryDeserializer in interface DeserializeContext
Throws:
DeserializeException

enterStruct

public void enterStruct()
Specified by:
enterStruct in interface DeserializeContext

leaveStruct

public void leaveStruct()
Specified by:
leaveStruct in interface DeserializeContext

structLevel

public int structLevel()
Specified by:
structLevel in interface DeserializeContext

readRoots

public byte readRoots(org.gjt.xpp.XmlPullParser pp,
                      org.gjt.xpp.XmlStartTag stag)
               throws DeserializeException,
                      java.io.IOException
Throws:
DeserializeException
java.io.IOException

setIdValue

public void setIdValue(java.lang.String id,
                       java.lang.Object value)
                throws DeserializeException
Specified by:
setIdValue in interface DeserializeContext
Throws:
DeserializeException

hasId

public boolean hasId(java.lang.String id)
Specified by:
hasId in interface DeserializeContext

getIdValue

public java.lang.Object getIdValue(java.lang.String id)
                            throws DeserializeException
Specified by:
getIdValue in interface DeserializeContext
Throws:
DeserializeException - if there is no element associated with id

addStructFixup

public void addStructFixup(StructAccessor sa,
                           java.lang.Object target,
                           java.lang.String accessorName,
                           java.lang.Class accessorType,
                           java.lang.String id)
Specified by:
addStructFixup in interface DeserializeContext

addArrayFixup

public void addArrayFixup(java.lang.Object target,
                          int pos,
                          java.lang.Class komponentType,
                          java.lang.String id)
Specified by:
addArrayFixup in interface DeserializeContext

convert

public java.lang.Object convert(EncodingStyle enc,
                                java.lang.Object source,
                                java.lang.Class expectedType)
                         throws DeserializeException
Specified by:
convert in interface DeserializeContext
Throws:
DeserializeException


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