com.hammingweight.hammock.mocks.ksoap2.serialization
Class MockSoapObject

java.lang.Object
  extended by org.ksoap2.serialization.SoapObject
      extended by com.hammingweight.hammock.mocks.ksoap2.serialization.MockSoapObject
All Implemented Interfaces:
IMockObject, org.ksoap2.serialization.KvmSerializable

public class MockSoapObject
extends org.ksoap2.serialization.SoapObject
implements IMockObject


Field Summary
static MockMethod MTHD_ADD_PROPERTY_$_PROPERTYINFO_OBJECT
           
static MockMethod MTHD_ADD_PROPERTY_$_STRING_OBJECT
           
static MockMethod MTHD_GET_NAME
           
static MockMethod MTHD_GET_NAMESPACE
           
static MockMethod MTHD_GET_PROPERTY_$_INT
           
static MockMethod MTHD_GET_PROPERTY_$_STRING
           
static MockMethod MTHD_GET_PROPERTY_COUNT
           
static MockMethod MTHD_GET_PROPERTY_INFO_$_INT_HASHTABLE_PROPERTYINFO
           
static MockMethod MTHD_NEW_INSTANCE
           
static MockMethod MTHD_SET_PROPERTY_$_INT_OBJECT
           
 
Constructor Summary
MockSoapObject(java.lang.String arg0, java.lang.String arg1)
           
MockSoapObject(java.lang.String arg0, java.lang.String arg1, IInvocationHandler handler)
           
 
Method Summary
 org.ksoap2.serialization.SoapObject addProperty(org.ksoap2.serialization.PropertyInfo arg0, java.lang.Object arg1)
           
 org.ksoap2.serialization.SoapObject addProperty(java.lang.String arg0, java.lang.Object arg1)
           
 IInvocationHandler getInvocationHandler()
          Gets the invocation handler that the mock object uses to evaluate method invocations.
 java.lang.String getName()
           
 java.lang.String getNamespace()
           
 java.lang.Object getProperty(int arg0)
           
 java.lang.Object getProperty(java.lang.String arg0)
           
 int getPropertyCount()
           
 void getPropertyInfo(int arg0, java.util.Hashtable arg1, org.ksoap2.serialization.PropertyInfo arg2)
           
 org.ksoap2.serialization.SoapObject newInstance()
           
 void setInvocationHandler(IInvocationHandler handler)
          Sets the invocation handler that the mock object should use to evaluate method invocations.
 void setProperty(int arg0, java.lang.Object arg1)
           
 
Methods inherited from class org.ksoap2.serialization.SoapObject
equals, toString
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

MTHD_ADD_PROPERTY_$_PROPERTYINFO_OBJECT

public static final MockMethod MTHD_ADD_PROPERTY_$_PROPERTYINFO_OBJECT

MTHD_ADD_PROPERTY_$_STRING_OBJECT

public static final MockMethod MTHD_ADD_PROPERTY_$_STRING_OBJECT

MTHD_GET_NAME

public static final MockMethod MTHD_GET_NAME

MTHD_GET_NAMESPACE

public static final MockMethod MTHD_GET_NAMESPACE

MTHD_GET_PROPERTY_$_INT

public static final MockMethod MTHD_GET_PROPERTY_$_INT

MTHD_GET_PROPERTY_$_STRING

public static final MockMethod MTHD_GET_PROPERTY_$_STRING

MTHD_GET_PROPERTY_COUNT

public static final MockMethod MTHD_GET_PROPERTY_COUNT

MTHD_GET_PROPERTY_INFO_$_INT_HASHTABLE_PROPERTYINFO

public static final MockMethod MTHD_GET_PROPERTY_INFO_$_INT_HASHTABLE_PROPERTYINFO

MTHD_NEW_INSTANCE

public static final MockMethod MTHD_NEW_INSTANCE

MTHD_SET_PROPERTY_$_INT_OBJECT

public static final MockMethod MTHD_SET_PROPERTY_$_INT_OBJECT
Constructor Detail

MockSoapObject

public MockSoapObject(java.lang.String arg0,
                      java.lang.String arg1)

MockSoapObject

public MockSoapObject(java.lang.String arg0,
                      java.lang.String arg1,
                      IInvocationHandler handler)
Method Detail

setInvocationHandler

public final void setInvocationHandler(IInvocationHandler handler)
Description copied from interface: IMockObject
Sets the invocation handler that the mock object should use to evaluate method invocations.

Specified by:
setInvocationHandler in interface IMockObject
Parameters:
handler - The invocation handler to be used by the mock object.

getInvocationHandler

public final IInvocationHandler getInvocationHandler()
Description copied from interface: IMockObject
Gets the invocation handler that the mock object uses to evaluate method invocations.

Specified by:
getInvocationHandler in interface IMockObject
Returns:
The invocation handler used by the mock object.

addProperty

public org.ksoap2.serialization.SoapObject addProperty(org.ksoap2.serialization.PropertyInfo arg0,
                                                       java.lang.Object arg1)
Overrides:
addProperty in class org.ksoap2.serialization.SoapObject

addProperty

public org.ksoap2.serialization.SoapObject addProperty(java.lang.String arg0,
                                                       java.lang.Object arg1)
Overrides:
addProperty in class org.ksoap2.serialization.SoapObject

getName

public java.lang.String getName()
Overrides:
getName in class org.ksoap2.serialization.SoapObject

getNamespace

public java.lang.String getNamespace()
Overrides:
getNamespace in class org.ksoap2.serialization.SoapObject

getProperty

public java.lang.Object getProperty(int arg0)
Specified by:
getProperty in interface org.ksoap2.serialization.KvmSerializable
Overrides:
getProperty in class org.ksoap2.serialization.SoapObject

getProperty

public java.lang.Object getProperty(java.lang.String arg0)
Overrides:
getProperty in class org.ksoap2.serialization.SoapObject

getPropertyCount

public int getPropertyCount()
Specified by:
getPropertyCount in interface org.ksoap2.serialization.KvmSerializable
Overrides:
getPropertyCount in class org.ksoap2.serialization.SoapObject

getPropertyInfo

public void getPropertyInfo(int arg0,
                            java.util.Hashtable arg1,
                            org.ksoap2.serialization.PropertyInfo arg2)
Specified by:
getPropertyInfo in interface org.ksoap2.serialization.KvmSerializable
Overrides:
getPropertyInfo in class org.ksoap2.serialization.SoapObject

newInstance

public org.ksoap2.serialization.SoapObject newInstance()
Overrides:
newInstance in class org.ksoap2.serialization.SoapObject

setProperty

public void setProperty(int arg0,
                        java.lang.Object arg1)
Specified by:
setProperty in interface org.ksoap2.serialization.KvmSerializable
Overrides:
setProperty in class org.ksoap2.serialization.SoapObject