|
SilverStream Application Server 3.5 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sssw.rt.com.Variant
Provides access to the native COM Variant datatype on Windows.
Field Summary | |
static int |
VariantArray
Equivalent to VT_ARRAY modifier. |
static int |
VariantBoolean
Equivalent to VT_BOOL variant type. |
static int |
VariantByref
Equivalent to VT_BYREF modifier. |
static int |
VariantByte
Equivalent to VT_UI1 variant type. |
static int |
VariantCurrency
Equivalent to VT_CY variant type. |
static int |
VariantDate
Equivalent to VT_DATE variant type. |
static int |
VariantDispatch
Equivalent to VT_DISPATCH variant type. |
static int |
VariantDouble
Equivalent to VT_R8 variant type. |
static int |
VariantEmpty
Equivalent to VT_EMPTY variant type. |
static int |
VariantError
Equivalent to VT_ERROR variant type. |
static int |
VariantFloat
Equivalent to VT_R4 variant type. |
static int |
VariantInt
Equivalent to VT_I4 variant type. |
static int |
VariantNull
Equivalent to VT_NULL variant type. |
static int |
VariantObject
Equivalent to VT_UNKNOWN variant type. |
static int |
VariantShort
Equivalent to VT_I2 variant type. |
static int |
VariantString
Equivalent to VT_BSTR variant type. |
static int |
VariantTypeMask
Equivalent to masking off variant type modifiers. |
static int |
VariantVariant
Equivalent to VT_VARIANT variant type. |
Constructor Summary | |
Variant()
Create an empty Varant. |
|
Variant(boolean val)
Create a Variant of type VT_BOOL. |
|
Variant(double val)
Create a Variant of type VT_R8. |
|
Variant(int val)
Create a Variant of type VT_I4. |
|
Variant(String val)
Create a Variant of type VT_BSTR. |
Method Summary | |
void |
changeType(int vartype)
Invoke native VariantChangeType function. |
boolean |
getBoolean()
Get a boolean value from a VT_BOOL Variant |
byte |
getByte()
Get a byte value from a VT_UI1 Variant. |
long |
getCurrency()
Get a long value from a VT_CY Variant. |
double |
getDate()
Get a long value from a VT_DATE Variant. |
com.sssw.rt.com.IUnknown |
getDispatch()
Get a value contained in a VT_DISPATCH Variant. |
double |
getDouble()
Get a double value from a VT_R8 Variant. |
void |
getEmpty()
Verify that the Variant in question is indeed of type VT_EMPTY. |
int |
getError()
Get a value contained a VT_ERROR Variant. |
float |
getFloat()
Get a float value from a VT_R4 Variant. |
int |
getInt()
Get an int value from a VT_I4 Variant. |
void |
getNull()
Verify that the Variant in question is indeed of type VT_NULL. |
com.sssw.rt.com.IUnknown |
getObject()
Get a value contained in a VT_UNKNOWN Variant. |
short |
getShort()
Get a short value from a VT_I2 Variant. |
String |
getString()
Get a String value from a VT_BSTR Variant. |
int |
getvt()
Get the type of the Variant. |
void |
noParam()
Set the Variant to represent a missing optional parameter. |
void |
putBoolean(boolean val)
Clear the old value contained in the Variant. |
void |
putBooleanRef(boolean val)
Set the value pointed to by an existing VT_BYREF|VT_BOOL Variant object to the new boolean value. |
void |
putByte(byte val)
Clear the old value contained in the Variant. |
void |
putByteRef(byte val)
Set the value pointed to by an existing VT_BYREF|VT_UI1 Variant object to the new byte value. |
void |
putCurrency(long val)
Clear the old value contained in the Variant. |
void |
putCurrencyRef(long val)
Set the value pointed to by an existing VT_BYREF|VT_CY Variant object to the new long currency value. |
void |
putDate(double val)
Clear the old value contained in the Variant. |
void |
putDateRef(double val)
Set the value pointed to by an existing VT_BYREF|VT_DATE Variant object to the new long date value. |
void |
putDispatch(Object val)
Clear the old value contained in the Variant. |
void |
putDispatchRef(Object val)
Set the value pointed to by an existing VT_BYREF|VT_DISPATCH Variant object to the new IUnknown value. |
void |
putDouble(double val)
Clear the old value contained in the Variant. |
void |
putDoubleRef(double val)
Set the value pointed to by an existing VT_BYREF|VT_R8 Variant object to the new double value. |
void |
putEmpty()
Clear the old value contained in the Variant. |
void |
putError(int val)
Clear the old value contained in the Variant. |
void |
putErrorRef(int val)
Set the value pointed to by an existing VT_BYREF|VT_ERROR Variant object to the new int value. |
void |
putFloat(float val)
Clear the old value contained in the Variant. |
void |
putFloatRef(float val)
Set the value pointed to by an existing VT_BYREF|VT_R4 Variant object to the new float value. |
void |
putInt(int val)
Clear the old value contained in the Variant. |
void |
putIntRef(int val)
Set the value pointed to by an existing VT_BYREF|VT_I4 Variant object to the new int value. |
void |
putNull()
Clear the old value contained in the Variant. |
void |
putObject(Object val)
Clear the old value contained in the Variant. |
void |
putObjectRef(Object val)
Set the value pointed to by an existing VT_BYREF|VT_UNKNOWN Variant object to the new IUnknown value. |
void |
putShort(short val)
Clear the old value contained in the Variant. |
void |
putShortRef(short val)
Set the value pointed to by an existing VT_BYREF|VT_I2 Variant object to the new short value. |
void |
putString(String val)
Clear the old value contained in the Variant. |
void |
putStringRef(String val)
Set the value pointed to by an existing VT_BYREF|VT_BSTR Variant object to the new String value. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public static final int VariantArray
public static final int VariantBoolean
public static final int VariantByref
public static final int VariantByte
public static final int VariantCurrency
public static final int VariantDate
public static final int VariantDispatch
public static final int VariantDouble
public static final int VariantEmpty
public static final int VariantError
public static final int VariantFloat
public static final int VariantInt
public static final int VariantNull
public static final int VariantObject
public static final int VariantShort
public static final int VariantString
public static final int VariantTypeMask
public static final int VariantVariant
Constructor Detail |
public Variant()
public Variant(int val)
val
- inital int valuepublic Variant(double val)
val
- inital double valuepublic Variant(boolean val)
val
- inital boolean valuepublic Variant(String val)
val
- inital String valueMethod Detail |
public void changeType(int vartype)
vartype
- constant indicating the traget type (defined in this class)public boolean getBoolean()
public void putBoolean(boolean val)
val
- new boolean valuepublic void putBooleanRef(boolean val)
val
- new boolean valuepublic byte getByte()
public void putByte(byte val)
val
- new boolean valuepublic void putByteRef(byte val)
val
- new byte valuepublic long getCurrency()
public void putCurrency(long val)
val
- new long currency valuepublic void putCurrencyRef(long val)
val
- new long currency valuepublic double getDate()
public void putDate(double val)
val
- new long date valuepublic void putDateRef(double val)
val
- new long date valuepublic float getFloat()
public void putFloat(float val)
val
- new float valuepublic void putFloatRef(float val)
val
- new float valuepublic double getDouble()
public void putDouble(double val)
val
- new double valuepublic void putDoubleRef(double val)
val
- new float valuepublic com.sssw.rt.com.IUnknown getDispatch()
IUnknown
public void putDispatch(Object val)
val
- new object whose IUnknown is stored in the VariantIUnknown
public void putDispatchRef(Object val)
val
- new object whose IUnknown is stored in the VariantIUnknown
public int getError()
public void putError(int val)
val
- new int valuepublic void putErrorRef(int val)
val
- new int valuepublic com.sssw.rt.com.IUnknown getObject()
IUnknown
public void putObject(Object val)
val
- new object whose IUnknown is stored in the VariantIUnknown
public void putObjectRef(Object val)
val
- new object whose IUnknown is stored in the VariantIUnknown
public short getShort()
public void putShort(short val)
val
- new short valuepublic void putShortRef(short val)
val
- new short valuepublic int getInt()
public void putInt(int val)
val
- new int valuepublic void putIntRef(int val)
val
- new int valuepublic String getString()
public void putString(String val)
val
- new String valuepublic void putStringRef(String val)
val
- new String valuepublic void putNull()
public void getNull()
public void getEmpty()
public void putEmpty()
public int getvt()
public void noParam()
|
SilverStream Application Server 3.5 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |