jasp.vbs
Class variant

java.lang.Object
  |
  +--jasp.vbs.variant

public class variant
extends java.lang.Object

This class implements VBScript Variant type.


Field Summary
static int ASPIStringList
          Contains an ASPIStringList object.
static int DEFAULT_PARARM
          Represents a missing optional parameter.
static int Error
          Contains an error.
static int vbArray
          Contains a vbarray.
static int vbBoolean
          Contains a boolean value.
static int vbByte
          Contains integer in the range 0 to 255.
static int vbCurrency
          Contains a currency in the range -922,337,203,685,477.5808 to 922,337,203,685,477.5807.
static int vbDate
          Contains a number that represents a date between January 1, 100 to December 31, 9999.
static int vbDouble
          Contains a double-precision, floating-point number in the range -1.79769313486232E308 to -4.94065645841247E-324 for negative values; 4.94065645841247E-324 to 1.79769313486232E308 for positive values.
static int vbEmpty
          Variant is uninitialized.
static int vbInteger
          Contains integer in the range -32,768 to 32,767.
static int vbLong
          Contains integer in the range -2,147,483,648 to 2,147,483,647.
static int vbNull
          Variant intentionally contains no valid data.
static int vbObject
          Contains an object.
static int vbSingle
          Contains a single-precision, floating-point number in the range -3.402823E38 to -1.401298E-45 for negative values; 1.401298E-45 to 3.402823E38 for positive values.
static int vbString
          Contains a variable-length string that can be up to approximately 2 billion characters in length.
static int vbVariant
          Contains an variant (used only with arrays of Variants).
 
Constructor Summary
variant()
          Constructs a variant object of type vbEmpty.
variant(boolean value)
          Constructs a variant object of type vbBoolean.
variant(byte value)
          Constructs a variant object of type vbByte.
variant(Collection is)
          Constructs a variant object of type ASPIStringList.
variant(double value)
          Constructs a variant object of type vbDouble.
variant(float value)
          Constructs a variant object of type vbSingle.
variant(int value)
          Constructs a variant object of type vbLong.
variant(int type, java.lang.Object value)
          Constructs a variant object of the type indicated the type argument.
variant(long value)
          Constructs a variant object of type Java's Long.
variant(java.lang.Object value)
          Constructs a variant object of type vbObject.
variant(short value)
          Constructs a variant object of type vbInteger.
variant(java.lang.String value)
          Constructs a variant object of type vbString.
variant(vbarray array)
          Constructs a variant object of type vbARRAY.
variant(vbcurrency value)
          Constructs a variant object of type vbCurrency.
variant(vbdate d)
          Constructs a variant object of type vbDate.
 
Method Summary
 variant add(variant b)
          Sums two variants.
 variant clone_()
          clone a variant.
 variant defParm()
          Sets a variant object to represent a missing optional parameter.
 variant elementAt(int i)
          Extracts an element of a one-dimensional vbarray as a variant.
 variant elementAt(int i1, int i2)
          Extracts an element of a two-dimensional vbarray as a variant.
 variant elementAt(int i1, int i2, int i3)
          Extracts an element of a three-dimensional vbarray as a variant.
 variant elementAt(int i1, int i2, int i3, int i4)
          Extracts an element of a four-dimensional vbarray as a variant.
 boolean equals(variant a)
          Compares two varaints.
 void erase()
          Reinitializes the elements of fixed-size arrays and deallocates dynamic-array storage space.
 int getCount()
          Gets the number of elements contained in the vbarray.
 java.lang.String getDblValue()
          Gets the value of a String that contains the double value.
 variant getItem(int index)
          Gets the element at the specified index from vbarray or Collection.
 variant getItem(java.lang.String index)
          Gets the element at the specified name from Collection.
 variant getItem(variant index)
          Gets the element at the specified index from vbarray or Collection.
 java.lang.Object getObj()
          Gets the value of a vbObject variant.
 int getType()
          Gets the type of the variant object.
 java.lang.String getTypeName()
          Gets the type name of the variant.
 boolean Greater(variant a)
          Compares two varaints.
 boolean GreaterEQ(variant a)
          Compares two varaints.
 boolean Less(variant a)
          Compares two varaints.
 boolean LessEQ(variant a)
          Compares two varaints.
 void preserve(int a0)
          Declares dynamic-array variables, and allocates or reallocates storage space at procedure level.
 void preserve(int a0, int a1)
          Declares dynamic-array variables, and allocates or reallocates storage space at procedure level.
 void preserve(int a0, int a1, int a2)
          Declares dynamic-array variables, and allocates or reallocates storage space at procedure level.
 void preserve(int a0, int a1, int a2, int a3)
          Declares dynamic-array variables, and allocates or reallocates storage space at procedure level.
 void redim(int a0)
          Re-Declares dynamic-array variables, and allocates or reallocates storage space.
 void redim(int a0, int a1)
          Re-Declares dynamic-array variables, and allocates or reallocates storage space.
 void redim(int a0, int a1, int a2)
          Re-Declares dynamic-array variables, and allocates or reallocates storage space.
 void redim(int a0, int a1, int a2, int a3)
          Re-Declares dynamic-array variables, and allocates or reallocates storage space.
 void set_SafeArray(vbarray v)
          Sets variant to type vbArray.
 void set(boolean b)
          Assigns the variant object to type vbBoolean and clears the previous contents.
 void set(byte b)
          Assigns the variant object to type vbByte and clears the previous contents.
 void set(Collection d)
          Assigns the variant object to type ASPStringList and clears the previous contents.
 void set(double d)
          Assigns the variant object to type vbDouble and clears the previous contents.
 void set(int i)
          Assigns the variant object to type vbLong and clears the previous contents.
 void set(java.lang.Object o)
          Assigns the variant object to type vbObject and clears the previous contents.
 void set(java.lang.String str)
          Assigns the variant object to type vbString and clears the previous contents.
 void set(variant d)
          Assigns the variant object to type vbVariant and clears the previous contents.
 void set(vbarray d)
          Assigns the variant object to type vbArray and clears the previous contents.
 void set(vbcurrency c)
          Assigns the variant object to type vbCurrency and clears the previous contents.
 void set(vbdate d)
          Assigns the variant object to type vbDate and clears the previous contents.
 void setItem(int index, double va)
          Assigns an element of vbarray or Collection.
 void setItem(int index, int va)
          Assigns an element of vbarray or Collection.
 void setItem(int index, java.lang.Object va)
          Assigns an element of vbarray or Collection.
 void setItem(int index, java.lang.String va)
          Assigns an element of vbarray or Collection.
 void setItem(int index, variant va)
          Assigns an element of vbarray or collection.
 void setItem(int index, vbcurrency va)
          Assigns an element of vbarray or Collection.
 void setItem(int index, vbdate va)
          Assigns an element of vbarray or Collection.
 void setItem(java.lang.String index, double va)
          Assigns an element of Collection.
 void setItem(java.lang.String index, int va)
          Assigns an element of Collection.
 void setItem(java.lang.String index, java.lang.Object va)
          Assigns an element of Collection.
 void setItem(java.lang.String index, java.lang.String va)
          Assigns an element of Collection.
 void setItem(java.lang.String index, variant va)
          Assigns an element of Collection.
 void setItem(java.lang.String index, vbcurrency va)
          Assigns an element of Collection.
 void setItem(java.lang.String index, vbdate va)
          Assigns an element of Collection.
 void setItem(variant index, double va)
          Assigns an element of vbarray or Collection.
 void setItem(variant index, int va)
          Assigns an element of vbarray or Collection.
 void setItem(variant index, java.lang.Object va)
          Assigns an element of vbarray or Collection.
 void setItem(variant index, java.lang.String va)
          Assigns an element of vbarray or Collection.
 void setItem(variant index, variant va)
          Assigns an element of vbarray or Collection.
 void setItem(variant index, vbcurrency va)
          Assigns an element of vbarray or Collection.
 void setItem(variant index, vbdate va)
          Assigns an element of vbarray or Collection.
 void setNull()
          Assigns the variant object to type vbNull and clears the previous contents.
 void setObject(int index, java.lang.Object v)
          Sets an element of vbarray.
 void setObject(int index, variant v)
          Sets an element of vbarray.
 void setObject(java.lang.Object obj)
          Sets the variant object to type vbObject and clears the previous contents.
 void setObject(variant v)
          Sets the variant object to type vbVariant and clears the previous contents.
 boolean toBool()
          Converts the variant object to a Java boolean and returns the result.
 vbcurrency toCurr()
          Converts the variant object to a vbcurrency and returns the result.
 vbdate toDate()
          Convert the variant object to a vbDate.
 double toDouble()
          Converts the variant object to a Java double and returns the result.
 int toInt()
          Converts the variant object to a Java integer and returns the result.
 java.lang.Object toObject()
          Converts the variant to a Java Object and returns the result.
 short toShort()
          Converts the variant object to a Java short and returns the result.
 java.lang.String toString()
          Converts the Variant object to a vbString and returns the result.
 int UBound(int i)
          Returns the largest available subscript for the indicated dimension of an array.
 boolean unequals(variant a)
          Compares two varaints.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

vbEmpty

public static final int vbEmpty
Variant is uninitialized. Value is 0 for numeric variables or a zero-length string ("") for string variables.

vbNull

public static final int vbNull
Variant intentionally contains no valid data.

vbInteger

public static final int vbInteger
Contains integer in the range -32,768 to 32,767.

vbLong

public static final int vbLong
Contains integer in the range -2,147,483,648 to 2,147,483,647.

vbSingle

public static final int vbSingle
Contains a single-precision, floating-point number in the range -3.402823E38 to -1.401298E-45 for negative values; 1.401298E-45 to 3.402823E38 for positive values.

vbDouble

public static final int vbDouble
Contains a double-precision, floating-point number in the range -1.79769313486232E308 to -4.94065645841247E-324 for negative values; 4.94065645841247E-324 to 1.79769313486232E308 for positive values.

vbCurrency

public static final int vbCurrency
Contains a currency in the range -922,337,203,685,477.5808 to 922,337,203,685,477.5807.

vbDate

public static final int vbDate
Contains a number that represents a date between January 1, 100 to December 31, 9999.

vbString

public static final int vbString
Contains a variable-length string that can be up to approximately 2 billion characters in length.

vbObject

public static final int vbObject
Contains an object.

Error

public static final int Error
Contains an error.

vbBoolean

public static final int vbBoolean
Contains a boolean value.

vbVariant

public static final int vbVariant
Contains an variant (used only with arrays of Variants).

vbByte

public static final int vbByte
Contains integer in the range 0 to 255.

ASPIStringList

public static final int ASPIStringList
Contains an ASPIStringList object.

DEFAULT_PARARM

public static final int DEFAULT_PARARM
Represents a missing optional parameter.

vbArray

public static final int vbArray
Contains a vbarray.
Constructor Detail

variant

public variant()
Constructs a variant object of type vbEmpty.

variant

public variant(vbarray array)
Constructs a variant object of type vbARRAY.
Parameters:
array - The vbarray value.

variant

public variant(Collection is)
Constructs a variant object of type ASPIStringList.
Parameters:
the - argument is the J-ASP Collection value.

variant

public variant(boolean value)
Constructs a variant object of type vbBoolean.
Parameters:
value - The initial value.

variant

public variant(int value)
Constructs a variant object of type vbLong.
Parameters:
value - The initial value.

variant

public variant(byte value)
Constructs a variant object of type vbByte.
Parameters:
value - The initial value.

variant

public variant(short value)
Constructs a variant object of type vbInteger.
Parameters:
value - The initial value.

variant

public variant(float value)
Constructs a variant object of type vbSingle.
Parameters:
value - The initial value.

variant

public variant(java.lang.String value)
Constructs a variant object of type vbString.
Parameters:
value - The initial value.

variant

public variant(vbcurrency value)
Constructs a variant object of type vbCurrency.
Parameters:
value - The initial value.

variant

public variant(java.lang.Object value)
Constructs a variant object of type vbObject.
Parameters:
value - The initial value.

variant

public variant(vbdate d)
Constructs a variant object of type vbDate.
Parameters:
value - The initial value.

variant

public variant(double value)
Constructs a variant object of type vbDouble.
Parameters:
value - The initial value.

variant

public variant(long value)
Constructs a variant object of type Java's Long.
Parameters:
value - The initial value.

variant

public variant(int type,
               java.lang.Object value)
Constructs a variant object of the type indicated the type argument.
Parameters:
type - the variant type.
value - The initial value.
Method Detail

toDate

public vbdate toDate()
              throws java.lang.Exception
Convert the variant object to a vbDate.

toCurr

public vbcurrency toCurr()
                  throws java.lang.Exception
Converts the variant object to a vbcurrency and returns the result.
Returns:
the value that is converted to a vbcurrency.

toObject

public java.lang.Object toObject()
                          throws java.lang.Exception
Converts the variant to a Java Object and returns the result.
Returns:
the value that is converted to a Java object.

toInt

public int toInt()
          throws java.lang.Exception
Converts the variant object to a Java integer and returns the result.
Returns:
the value that is converted to a Java integer.

toShort

public short toShort()
              throws java.lang.Exception
Converts the variant object to a Java short and returns the result.
Returns:
the value that is converted to a Java short.

toDouble

public double toDouble()
                throws java.lang.Exception
Converts the variant object to a Java double and returns the result.
Returns:
the value that is converted to a Java double.

toBool

public boolean toBool()
Converts the variant object to a Java boolean and returns the result.
Returns:
the value that is converted to a Java boolean.

set

public void set(int i)
Assigns the variant object to type vbLong and clears the previous contents.
Parameters:
i - The new value.

set

public void set(double d)
Assigns the variant object to type vbDouble and clears the previous contents.
Parameters:
d - The new value.

set

public void set(byte b)
Assigns the variant object to type vbByte and clears the previous contents.
Parameters:
b - The new value.

set

public void set(boolean b)
Assigns the variant object to type vbBoolean and clears the previous contents.
Parameters:
b - The new value.

set

public void set(java.lang.String str)
Assigns the variant object to type vbString and clears the previous contents.
Parameters:
str - The new value.

set

public void set(vbdate d)
Assigns the variant object to type vbDate and clears the previous contents.
Parameters:
d - The new value.

set

public void set(vbcurrency c)
Assigns the variant object to type vbCurrency and clears the previous contents.
Parameters:
c - The new value.

set

public void set(Collection d)
Assigns the variant object to type ASPStringList and clears the previous contents.
Parameters:
d - The new value.

set

public void set(java.lang.Object o)
         throws java.lang.Exception
Assigns the variant object to type vbObject and clears the previous contents.
Parameters:
o - The new value.

set

public void set(vbarray d)
         throws java.lang.Exception
Assigns the variant object to type vbArray and clears the previous contents.
Parameters:
d - The new value.

set

public void set(variant d)
         throws java.lang.Exception
Assigns the variant object to type vbVariant and clears the previous contents.
Parameters:
d - The new value.

setNull

public void setNull()
Assigns the variant object to type vbNull and clears the previous contents.

setObject

public void setObject(int index,
                      variant v)
               throws java.lang.Exception
Sets an element of vbarray.
Parameters:
The - element index in the array that the variant contains.
v - The new element value.

setObject

public void setObject(int index,
                      java.lang.Object v)
               throws java.lang.Exception
Sets an element of vbarray.
Parameters:
The - element index in the array that the variant contains.
v - The new element value.

setObject

public void setObject(variant v)
               throws java.lang.Exception
Sets the variant object to type vbVariant and clears the previous contents.
Parameters:
v - the new value.

setObject

public void setObject(java.lang.Object obj)
               throws java.lang.Exception
Sets the variant object to type vbObject and clears the previous contents.
Parameters:
obj - the new value. set a = obj set a = nothing

add

public variant add(variant b)
            throws java.lang.Exception
Sums two variants. If one or both expressions are Null expressions, result is Null. If both expressions are Empty, result is an Integer subtype. However, if only one expression is Empty, the other expression is returned unchanged as result. If Both expressions are strings, result is the Concatenation of the strings.
Returns:
the sum.

getType

public int getType()
Gets the type of the variant object.
Returns:
the type.

getDblValue

public java.lang.String getDblValue()
Gets the value of a String that contains the double value.
Returns:
a String value.

equals

public boolean equals(variant a)
               throws java.lang.Exception
Compares two varaints.
Parameters:
an - another variant.
Returns:
if this variant is equals another variant, return true, otherwise, return false, if any one of them is Null, False will be retuned.

unequals

public boolean unequals(variant a)
                 throws java.lang.Exception
Compares two varaints.
Parameters:
an - another variant.
Returns:
if this variant is equals another variant, return true, otherwise, return false, if any one of them is Null, False will be retuned.

Greater

public boolean Greater(variant a)
                throws java.lang.Exception
Compares two varaints.
Parameters:
an - another variant.
Returns:
if this variant is greater than another variant, return true, otherwise, return false, if any one of them is Null, False will be retuned.

Less

public boolean Less(variant a)
             throws java.lang.Exception
Compares two varaints.
Parameters:
an - another variant.
Returns:
if this variant is less than another variant, return true, otherwise, return false, if any one of them is Null, False will be retuned.

GreaterEQ

public boolean GreaterEQ(variant a)
                  throws java.lang.Exception
Compares two varaints.
Parameters:
an - another variant.
Returns:
if this variant is greater than or equals to another variant, return true, otherwise, return false, if any one of them is Null, False will be retuned.

LessEQ

public boolean LessEQ(variant a)
               throws java.lang.Exception
Compares two varaints.
Parameters:
an - another variant.
Returns:
if this variant is less than or equals to another variant, return true, otherwise, return false, if any one of them is Null, False will be retuned.

toString

public java.lang.String toString()
Converts the Variant object to a vbString and returns the result.
Overrides:
toString in class java.lang.Object
Returns:
the value that is converted to a Java String.

getTypeName

public java.lang.String getTypeName()
Gets the type name of the variant.
Returns:
the type name of the variant.

getObj

public java.lang.Object getObj()
                        throws java.lang.Exception
Gets the value of a vbObject variant.
Returns:
the object value.

defParm

public variant defParm()
Sets a variant object to represent a missing optional parameter.
Returns:
the variant.

UBound

public int UBound(int i)
           throws java.lang.Exception
Returns the largest available subscript for the indicated dimension of an array.
Parameters:
i - The whole number indicating which dimension's upper bound is returned.

elementAt

public variant elementAt(int i)
                  throws java.lang.Exception
Extracts an element of a one-dimensional vbarray as a variant.
Parameters:
i - The element index, which ranges from the index of the lower bound to the index of the upper bound.
Returns:
Returns the element value.

elementAt

public variant elementAt(int i1,
                         int i2)
                  throws java.lang.Exception
Extracts an element of a two-dimensional vbarray as a variant.
Parameters:
i1 - The first dimension index of the element that is extracted, which ranges from 0 to UBound(1)
i2 - The second dimension index of the element that is extracted, which ranges from 0 to UBound(2).

elementAt

public variant elementAt(int i1,
                         int i2,
                         int i3)
                  throws java.lang.Exception
Extracts an element of a three-dimensional vbarray as a variant.
Parameters:
i1 - The first dimension index of the element that is extracted, which ranges from 0 to UBound(1)
i2 - The second dimension index of the element that is extracted, which ranges from 0 to UBound(2).
i3 - The second dimension index of the element that is extracted, which ranges from 0 to UBound(3).

elementAt

public variant elementAt(int i1,
                         int i2,
                         int i3,
                         int i4)
                  throws java.lang.Exception
Extracts an element of a four-dimensional vbarray as a variant.
Parameters:
i1 - The first dimension index of the element that is extracted, which ranges from 0 to UBound(1)
i2 - The second dimension index of the element that is extracted, which ranges from 0 to UBound(2).
i3 - The second dimension index of the element that is extracted, which ranges from 0 to UBound(3).
i4 - The second dimension index of the element that is extracted, which ranges from 0 to UBound(3).

getCount

public int getCount()
             throws java.lang.Exception
Gets the number of elements contained in the vbarray.
Returns:
The number of elements contained in the vbarray.

getItem

public variant getItem(variant index)
                throws java.lang.Exception
Gets the element at the specified index from vbarray or Collection.
Parameters:
index - The specified index.
Returns:
the element value.

getItem

public variant getItem(int index)
                throws java.lang.Exception
Gets the element at the specified index from vbarray or Collection.
Parameters:
index - The specified index.
Returns:
the element value.

getItem

public variant getItem(java.lang.String index)
                throws java.lang.Exception
Gets the element at the specified name from Collection.
Parameters:
index - The specified name.
Returns:
the element value.

redim

public void redim(int a0)
Re-Declares dynamic-array variables, and allocates or reallocates storage space.
Parameters:
a0 - The number of elements.

redim

public void redim(int a0,
                  int a1,
                  int a2,
                  int a3)
Re-Declares dynamic-array variables, and allocates or reallocates storage space.
Parameters:
a0 - The number of elements in the first dimension.
a1 - The number of elements in the second dimension.
a2 - The number of elements in the third dimension.
a3 - The number of elements in the fourth dimension.

redim

public void redim(int a0,
                  int a1,
                  int a2)
Re-Declares dynamic-array variables, and allocates or reallocates storage space.
Parameters:
a0 - The number of elements in the first dimension.
a1 - The number of elements in the second dimension.
a2 - The number of elements in the third dimension.

redim

public void redim(int a0,
                  int a1)
Re-Declares dynamic-array variables, and allocates or reallocates storage space.
Parameters:
a0 - The number of elements in the first dimension.
a1 - The number of elements in the second dimension.

preserve

public void preserve(int a0)
Declares dynamic-array variables, and allocates or reallocates storage space at procedure level. you can resize only the last array dimension, and you can't change the number of dimensions at all.
Parameters:
a0 - The number of elements.

preserve

public void preserve(int a0,
                     int a1,
                     int a2,
                     int a3)
Declares dynamic-array variables, and allocates or reallocates storage space at procedure level. you can resize only the last array dimension, and you can't change the number of dimensions at all.
Parameters:
a0 - The number of elements in the first dimension.
a1 - The number of elements in the second dimension.
a2 - The number of elements in the third dimension.
a3 - The number of elements in the four dimension.

preserve

public void preserve(int a0,
                     int a1,
                     int a2)
Declares dynamic-array variables, and allocates or reallocates storage space at procedure level. you can resize only the last array dimension, and you can't change the number of dimensions at all.
Parameters:
a0 - The number of elements in the first dimension.
a1 - The number of elements in the second dimension.
a2 - The number of elements in the third dimension.

preserve

public void preserve(int a0,
                     int a1)
Declares dynamic-array variables, and allocates or reallocates storage space at procedure level. you can resize only the last array dimension, and you can't change the number of dimensions at all.
Parameters:
a0 - The number of elements in the first dimension.
a1 - The number of elements in the second dimension.

erase

public void erase()
           throws java.lang.Exception
Reinitializes the elements of fixed-size arrays and deallocates dynamic-array storage space.

setItem

public void setItem(int index,
                    variant va)
             throws java.lang.Exception
Assigns an element of vbarray or collection.
Parameters:
index - The element index.
va - The new element value.

setItem

public void setItem(int index,
                    vbcurrency va)
             throws java.lang.Exception
Assigns an element of vbarray or Collection.
Parameters:
index - The element index.
va - The new element value.

setItem

public void setItem(int index,
                    vbdate va)
             throws java.lang.Exception
Assigns an element of vbarray or Collection.
Parameters:
index - The element index.
va - The new element value.

setItem

public void setItem(int index,
                    int va)
             throws java.lang.Exception
Assigns an element of vbarray or Collection.
Parameters:
index - The element index.
va - The new element value.

setItem

public void setItem(int index,
                    double va)
             throws java.lang.Exception
Assigns an element of vbarray or Collection.
Parameters:
index - The element index.
va - The new element value.

setItem

public void setItem(int index,
                    java.lang.String va)
             throws java.lang.Exception
Assigns an element of vbarray or Collection.
Parameters:
index - The element index.
va - The new element value.

setItem

public void setItem(int index,
                    java.lang.Object va)
             throws java.lang.Exception
Assigns an element of vbarray or Collection.
Parameters:
index - The element index.
va - The new element value.

setItem

public void setItem(java.lang.String index,
                    variant va)
             throws java.lang.Exception
Assigns an element of Collection.
Parameters:
index - The element key.
va - The new element value.

setItem

public void setItem(java.lang.String index,
                    vbcurrency va)
             throws java.lang.Exception
Assigns an element of Collection.
Parameters:
index - The element key.
va - The new element value.

setItem

public void setItem(java.lang.String index,
                    vbdate va)
             throws java.lang.Exception
Assigns an element of Collection.
Parameters:
index - The element key.
va - The new element value.

setItem

public void setItem(java.lang.String index,
                    int va)
             throws java.lang.Exception
Assigns an element of Collection.
Parameters:
index - The element key.
va - The new element value.

setItem

public void setItem(java.lang.String index,
                    double va)
             throws java.lang.Exception
Assigns an element of Collection.
Parameters:
index - The element name.
va - The new element value.

setItem

public void setItem(java.lang.String index,
                    java.lang.String va)
             throws java.lang.Exception
Assigns an element of Collection.
Parameters:
index - The element key.
va - The new element value.

setItem

public void setItem(java.lang.String index,
                    java.lang.Object va)
             throws java.lang.Exception
Assigns an element of Collection.
Parameters:
index - The element key.
va - The new element value.

setItem

public void setItem(variant index,
                    variant va)
             throws java.lang.Exception
Assigns an element of vbarray or Collection.
Parameters:
index - The element key or index.
va - The new element value.

setItem

public void setItem(variant index,
                    vbcurrency va)
             throws java.lang.Exception
Assigns an element of vbarray or Collection.
Parameters:
index - The element key or index.
va - The new element value.

setItem

public void setItem(variant index,
                    vbdate va)
             throws java.lang.Exception
Assigns an element of vbarray or Collection.
Parameters:
index - The element key or index.
va - The new element value.

setItem

public void setItem(variant index,
                    int va)
             throws java.lang.Exception
Assigns an element of vbarray or Collection.
Parameters:
index - The element key or index.
va - The new element value.

setItem

public void setItem(variant index,
                    double va)
             throws java.lang.Exception
Assigns an element of vbarray or Collection.
Parameters:
index - The element key or index.
va - The new element value.

setItem

public void setItem(variant index,
                    java.lang.String va)
             throws java.lang.Exception
Assigns an element of vbarray or Collection.
Parameters:
index - The element key or index.
va - The new element value.

setItem

public void setItem(variant index,
                    java.lang.Object va)
             throws java.lang.Exception
Assigns an element of vbarray or Collection.
Parameters:
index - The element key or index.
va - The new element value.

clone_

public variant clone_()
clone a variant.
Returns:
a new variant.

set_SafeArray

public void set_SafeArray(vbarray v)
Sets variant to type vbArray.
Parameters:
v - the vbarray with byRef.