jasp.buildin
Class IStringList

java.lang.Object
  |
  +--jasp.buildin.IStringList
All Implemented Interfaces:
Collection

public class IStringList
extends java.lang.Object
implements Collection

The IStringList class enables your component to retrieve values from the QueryString, Form, or ServerVariables collections.


Method Summary
 java.util.Enumeration elements()
          Retrieves an enumerator for the string list
 int getCount()
          Retrieves the number of items in the list of strings
 variant getItem(int index)
          Retrieves the specified item from a string list
 variant getItem(variant key)
          Retrieves the specified item from a string list
 variant getValue()
          Gets the value of the String list.
 double toDouble()
          Returns the double value if the string list is a numeric.
 java.lang.String toString()
          Gets the String value of the String list.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getItem

public variant getItem(int index)
                throws java.lang.Exception
Retrieves the specified item from a string list
Parameters:
key - the item index.
Returns:
the value of the item.

getItem

public variant getItem(variant key)
                throws java.lang.Exception
Retrieves the specified item from a string list
Parameters:
key - the item name or index.
Returns:
the value of the item.

getCount

public int getCount()
Retrieves the number of items in the list of strings
Returns:
the number of items.

toString

public java.lang.String toString()
Gets the String value of the String list.
Overrides:
toString in class java.lang.Object
Returns:
the String value.

getValue

public variant getValue()
Gets the value of the String list.
Specified by:
getValue in interface Collection
Returns:
the value of this String list.

toDouble

public double toDouble()
                throws java.lang.Exception
Returns the double value if the string list is a numeric.
Specified by:
toDouble in interface Collection
Returns:
the double value of the string list.
Throws:
if - the string list is not a numeric, an exception will occurs.

elements

public java.util.Enumeration elements()
Retrieves an enumerator for the string list
Specified by:
elements in interface Collection
Returns:
an enumerator.