|
|||||||||
| Home >> All >> com >> tripi >> asp >> [ util overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.tripi.asp.util
Class Tools.MultiValue

java.lang.Objectcom.tripi.asp.util.Tools.MultiValue
- All Implemented Interfaces:
- com.tripi.asp.SimpleMap, com.tripi.asp.SimpleReference
- Enclosing class:
- Tools
- public static class Tools.MultiValue
- extends java.lang.Object
- implements com.tripi.asp.SimpleReference, com.tripi.asp.SimpleMap
- extends java.lang.Object
MultiValue is a class which can store multiple values for a single object.
| Field Summary | |
int |
count
count of items in the array of values, publically accessible to the ASP code. |
(package private) java.util.Vector |
values
List of values |
(package private) java.lang.String |
wholeValue
String representation of the whole list |
| Constructor Summary | |
Tools.MultiValue()
Constructor, initially created with no values. |
|
| Method Summary | |
(package private) void |
add(java.lang.String value)
Adds a value to this multiple value list. |
java.lang.Object |
get(java.lang.Object value)
SimpleMap read function to obtain a multi value at the specified index. |
java.util.Enumeration |
getKeys()
Obtains the list of keys for this multi value. |
java.lang.Object |
getValue()
SimpleReference method to obtain the first value of this multi value list. |
void |
put(java.lang.Object key,
java.lang.Object value)
SimpleMap write function to store a value at a specified index. |
void |
setValue(java.lang.Object obj)
SimpleReference method to set the value of this multi value list. |
java.lang.String |
toString()
Converts this multi value class to string, for debugging. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
values
java.util.Vector values
- List of values
wholeValue
java.lang.String wholeValue
- String representation of the whole list
count
public int count
- count of items in the array of values, publically
accessible to the ASP code.
| Constructor Detail |
Tools.MultiValue
public Tools.MultiValue()
- Constructor, initially created with no values.
| Method Detail |
add
void add(java.lang.String value)
- Adds a value to this multiple value list.
getKeys
public java.util.Enumeration getKeys()
- Obtains the list of keys for this multi value.
This function is used in the For Each ... statement.
- Specified by:
getKeysin interfacecom.tripi.asp.SimpleMap
get
public java.lang.Object get(java.lang.Object value) throws com.tripi.asp.AspException
- SimpleMap read function to obtain a multi value at
the specified index. TODO 1-based or 0-based?
- Specified by:
getin interfacecom.tripi.asp.SimpleMap
put
public void put(java.lang.Object key, java.lang.Object value) throws com.tripi.asp.AspException
- SimpleMap write function to store a value at a specified
index. This function always throws AspReadOnlyException
since Request.QueryString(i) is read-only.
- Specified by:
putin interfacecom.tripi.asp.SimpleMap
getValue
public java.lang.Object getValue() throws com.tripi.asp.AspException
- SimpleReference method to obtain the first value of this
multi value list.
- Specified by:
getValuein interfacecom.tripi.asp.SimpleReference
setValue
public void setValue(java.lang.Object obj) throws com.tripi.asp.AspException
- SimpleReference method to set the value of this multi value
list. Always throws AspReadOnlyException
- Specified by:
setValuein interfacecom.tripi.asp.SimpleReference
toString
public java.lang.String toString()
- Converts this multi value class to string, for debugging.
|
|||||||||
| Home >> All >> com >> tripi >> asp >> [ util overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
com.tripi.asp.util.Tools.MultiValue