com.develop.jawin
Class ObjectRef

java.lang.Object
  |
  +--com.develop.jawin.Variant
        |
        +--com.develop.jawin.ObjectRef
All Implemented Interfaces:
VarTypes, WellKnownGUIDs
Direct Known Subclasses:
BooleanRef, ByteRef, CharRef, DoubleRef, FloatRef, IntegerRef, LongRef, ShortRef

public class ObjectRef
extends Variant

This class simulates a value by reference

Author:
Vitally Shelest

Field Summary
private  java.lang.Object obj
           
 
Fields inherited from class com.develop.jawin.Variant
SIZEOF
 
Fields inherited from interface com.develop.jawin.constants.VarTypes
VARIANT_FALSE, VARIANT_TRUE, VT_ARRAY, VT_BLOB, VT_BLOB_OBJECT, VT_BOOL, VT_BSTR, VT_BYREF, VT_CARRAY, VT_CF, VT_CLSID, VT_CY, VT_DATE, VT_DECIMAL, VT_DISPATCH, VT_EMPTY, VT_ERROR, VT_FILETIME, VT_HRESULT, VT_I1, VT_I2, VT_I4, VT_I8, VT_ILLEGAL, VT_ILLEGALMASKED, VT_INT, VT_LPSTR, VT_LPWSTR, VT_NULL, VT_PTR, VT_R4, VT_R8, VT_RESERVED, VT_SAFEARRAY, VT_STORAGE, VT_STORED_OBJECT, VT_STREAM, VT_STREAMED_OBJECT, VT_TYPEMASK, VT_UI1, VT_UI2, VT_UI4, VT_UI8, VT_UINT, VT_UNKNOWN, VT_USERDEFINED, VT_VARIANT, VT_VECTOR, VT_VOID
 
Fields inherited from interface com.develop.jawin.constants.WellKnownGUIDs
IID_IClassFactory, IID_IDispatch, IID_IEnumVariant, IID_IUnknown
 
Constructor Summary
ObjectRef(boolean obj)
          Creates a new instance of ObjectRef for a boolean value
ObjectRef(byte obj)
          Creates a new instance of ObjectRef for a double value
ObjectRef(double obj)
          Creates a new instance of ObjectRef for a double value
ObjectRef(float obj)
          Creates a new instance of ObjectRef for a float value
ObjectRef(int obj)
          Creates a new instance of ObjectRef for an int value
ObjectRef(long obj)
          Creates a new instance of ObjectRef for a double value
ObjectRef(java.lang.Object obj)
          Creates a new instance of ObjectRef for an object value
ObjectRef(short obj)
          Creates a new instance of ObjectRef for a short value
 
Method Summary
 java.lang.Object getRef()
          Returns referenced value
 void setRef(java.lang.Object obj)
          Sets a new value
 
Methods inherited from class com.develop.jawin.Variant
marshalIn, marshalInArray, marshalInArrayRef, marshalInRef, marshalOut, marshalOutArray, marshalOutArraySkip, marshalOutRef, marshalOutSkip
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

obj

private java.lang.Object obj
Constructor Detail

ObjectRef

public ObjectRef(int obj)
Creates a new instance of ObjectRef for an int value
Parameters:
obj - int value

ObjectRef

public ObjectRef(short obj)
Creates a new instance of ObjectRef for a short value
Parameters:
obj - short value

ObjectRef

public ObjectRef(boolean obj)
Creates a new instance of ObjectRef for a boolean value
Parameters:
obj - boolean value

ObjectRef

public ObjectRef(float obj)
Creates a new instance of ObjectRef for a float value
Parameters:
obj - float value

ObjectRef

public ObjectRef(double obj)
Creates a new instance of ObjectRef for a double value
Parameters:
obj - double value

ObjectRef

public ObjectRef(byte obj)
Creates a new instance of ObjectRef for a double value
Parameters:
obj - byte value

ObjectRef

public ObjectRef(long obj)
Creates a new instance of ObjectRef for a double value
Parameters:
obj - long value

ObjectRef

public ObjectRef(java.lang.Object obj)
Creates a new instance of ObjectRef for an object value
Parameters:
obj - object
Method Detail

getRef

public java.lang.Object getRef()
Returns referenced value
Returns:
referenced object

setRef

public void setRef(java.lang.Object obj)
Sets a new value
Parameters:
obj - object to store


New Jawin designed by Vitally Shelest. This product includes software developed by the DevelopMentor OpenSource Project (http://www.develop.com/OpenSource).