|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object | +--goldengine.java.VariableList
-------------------------------------------------------------------------------------------
Source File: VariableList.java
Author: Devin Cook, Matthew Hawkins
Description: A holding class for VariableTypes, with special methods needed that a
Vector can not fulfil.
-------------------------------------------------------------------------------------------
Revision List
Author Version Description
------ ------- -----------
MPH 1.0 First Issue
| Constructor Summary | |
VariableList()
|
|
| Method Summary | |
boolean |
add(java.lang.String name,
java.lang.String value,
java.lang.String comment)
add This method will add a new variable to the list. |
void |
clearValues()
clearValues This method will set the name of each variable to "". |
int |
count()
count This method returns the current number of variables. |
java.lang.String |
getValue(java.lang.String name)
getValue This method will return the value of the variable with the same name as that specified. |
java.lang.String |
name(int index)
name Return the name of the Variable at the specified index. |
void |
setValue(java.lang.String name,
java.lang.String value)
setValue This method sets the value of a variable of the same name as that specified. |
int |
variableIndex(java.lang.String name)
variableIndex This method will return the index number of a variable that has the same name as that specified. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public VariableList()
| Method Detail |
public boolean add(java.lang.String name,
java.lang.String value,
java.lang.String comment)
VariableType.name - The name of the variable.value - The value of the variable.comment - Any associated comment for the variable.public void clearValues()
public int count()
public java.lang.String name(int index)
index - The index of the variable to check.
public void setValue(java.lang.String name,
java.lang.String value)
name - The name of the variable to set its value.value - The new value to set.public java.lang.String getValue(java.lang.String name)
name - The name of the variable wanted.public int variableIndex(java.lang.String name)
name - The name of the variable to get its index.
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||