UniVista.support
Class CodeHash

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

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

Allows Code objects to be easily mapped to strings and back again and stored in a central location

See Also:
Serialized Form

Constructor Summary
CodeHash()
           
 
Method Summary
 void addCode(Code toAdd)
          Add a Code to the hash
 java.lang.Object clone()
          clone the CodeHash
 Code getCode(java.lang.String codeName)
          Retrieve a code from the hash by looking up its internal name.
 Code[] getCodes()
          Return an array of all of the Codes stored in the hash.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CodeHash

public CodeHash()
Method Detail

addCode

public void addCode(Code toAdd)
Add a Code to the hash

clone

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

getCode

public Code getCode(java.lang.String codeName)
Retrieve a code from the hash by looking up its internal name. Returns null if no code is found.
Parameters:
codeName - the internal name returned by getCodeName() to search for

getCodes

public Code[] getCodes()
Return an array of all of the Codes stored in the hash.