UniVista.support
Class VariableHash

java.lang.Object
  |
  +--UniVista.support.VariableHash
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable

public class VariableHash
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable

Allows multiple Variable objects to be easily stored

See Also:
Serialized Form

Constructor Summary
VariableHash()
           
 
Method Summary
 void addVariable(Variable toAdd)
          Add a variable into the hash
 java.lang.Object clone()
          clone the VariableHash
 boolean equals(java.lang.Object obj)
          compare two VariableHashes for equality
 java.lang.String[] getUniqueNamelistGroupStrings()
          return an array of strings of all of the unique namelist group strings in the table
 Variable getVariable(java.lang.String varName)
          Retrieve a variable from the hash
 java.lang.String[] getVariableNames()
          Returns a string list of all of the elements of the table
 Variable[] getVariablesForNamelistGroupString(java.lang.String namelistGroup)
          return an array of all of the Variable objects that have their namelist group string equal to the passed string
 void removeVariable(Variable toRemove)
          Remove a variable from the hash
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VariableHash

public VariableHash()
Method Detail

addVariable

public void addVariable(Variable toAdd)
Add a variable into the hash

clone

public java.lang.Object clone()
clone the VariableHash
Overrides:
clone in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
compare two VariableHashes for equality
Overrides:
equals in class java.lang.Object

getUniqueNamelistGroupStrings

public java.lang.String[] getUniqueNamelistGroupStrings()
return an array of strings of all of the unique namelist group strings in the table

getVariable

public Variable getVariable(java.lang.String varName)
Retrieve a variable from the hash

getVariableNames

public java.lang.String[] getVariableNames()
Returns a string list of all of the elements of the table

getVariablesForNamelistGroupString

public Variable[] getVariablesForNamelistGroupString(java.lang.String namelistGroup)
return an array of all of the Variable objects that have their namelist group string equal to the passed string

removeVariable

public void removeVariable(Variable toRemove)
Remove a variable from the hash