jasp.buildin
Class IStringDictionary

java.lang.Object
  |
  +--jasp.buildin.IStringDictionary

public class IStringDictionary
extends java.lang.Object

This class is a general interface wrapper that can wrap the following collections:


Constructor Summary
IStringDictionary()
           
 
Method Summary
 java.util.Enumeration elements()
          returns an enumerator interface which can be used to iterate through the items in the collection.
 int getCount()
          Retrieves the number of items in a dictionary.
 IStringList getItem(int index)
          Retrieves the specified item from a dictionary.
 IStringList getItem(java.lang.String key)
          Retrieves the specified item from a dictionary.
 IStringList getItem(variant index)
          Retrieves the specified item from a dictionary.
 java.lang.String getKey(int index)
          Retrieves the name of the item to be retrieved from the collection.
 java.lang.String getKey(java.lang.String key)
          Identifier that name which item to retrieve from the collection.
 java.lang.String getKey(variant index)
          Identifier that name which item to retrieve from the collection.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IStringDictionary

public IStringDictionary()
Method Detail

getCount

public int getCount()
Retrieves the number of items in a dictionary.
Returns:
the number of items.

getItem

public IStringList getItem(int index)
                    throws java.lang.Exception
Retrieves the specified item from a dictionary.
Parameters:
index - the item index in the dictionary.
Returns:
the value of the item

getItem

public IStringList getItem(java.lang.String key)
                    throws java.lang.Exception
Retrieves the specified item from a dictionary.
Parameters:
key - the name of the item.
Returns:
the value of the item

getItem

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

getKey

public java.lang.String getKey(int index)
                        throws java.lang.Exception
Retrieves the name of the item to be retrieved from the collection.
Parameters:
index - the item index
Returns:
the name of the item

getKey

public java.lang.String getKey(java.lang.String key)
                        throws java.lang.Exception
Identifier that name which item to retrieve from the collection.
Parameters:
key - the temporary name of the item.

getKey

public java.lang.String getKey(variant index)
                        throws java.lang.Exception
Identifier that name which item to retrieve from the collection.
Parameters:
key - the temporary name or index of the item .

elements

public java.util.Enumeration elements()
returns an enumerator interface which can be used to iterate through the items in the collection.