com.americancoders.edi
Class IDList

java.lang.Object
  |
  +--com.americancoders.edi.IDList

public class IDList
extends java.lang.Object
implements java.io.Externalizable

See Also:
Serialized Form

Field Summary
protected  java.util.Vector codes
           
protected  java.lang.String name
           
protected  java.util.Vector values
           
 
Constructor Summary
IDList()
          Construct an id list object with no values
 
Method Summary
 void add(java.lang.String inCode, java.lang.String inDescribe)
          Add code and description to the vectors
 java.lang.String describe(java.lang.String inCode)
          returns the descriptive value of the code, if it is not found then the code is returned
 java.lang.String getCode(int pos)
          returns a code at a specific position in vector
 java.lang.String getCode(java.lang.String inValue)
          returns the code value for a descriptive value.
 java.lang.String getName()
          return name of id list
 java.util.Vector getValues()
          returns the code vector
 boolean isCodeValid(java.lang.String inCode)
          tests if the passed code is in the code vector
 void readExternal(java.io.ObjectInput in)
          used by externalize methods
 void writeExternal(java.io.ObjectOutput out)
          used by externalize methods
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

protected java.lang.String name

codes

protected java.util.Vector codes

values

protected java.util.Vector values
Constructor Detail

IDList

public IDList()
Construct an id list object with no values
Method Detail

readExternal

public void readExternal(java.io.ObjectInput in)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
used by externalize methods
Specified by:
readExternal in interface java.io.Externalizable
Parameters:
ObjectInput - object input stream
Throws:
java.io.IOException - - most likely class changed since written
java.lang.ClassNotFoundException - - only when dummy constructro not found

writeExternal

public void writeExternal(java.io.ObjectOutput out)
                   throws java.io.IOException
used by externalize methods
Specified by:
writeExternal in interface java.io.Externalizable
Parameters:
ObjectInput - object input stream
Throws:
java.io.IOException -  

getName

public java.lang.String getName()
return name of id list
Returns:
String

add

public void add(java.lang.String inCode,
                java.lang.String inDescribe)
Add code and description to the vectors
Parameters:
inCode -  
inDescribe -  

isCodeValid

public boolean isCodeValid(java.lang.String inCode)
tests if the passed code is in the code vector
Parameters:
inCode -  
Returns:
boolean

describe

public java.lang.String describe(java.lang.String inCode)
returns the descriptive value of the code, if it is not found then the code is returned
Parameters:
inCode -  
Returns:
String

getCode

public java.lang.String getCode(java.lang.String inValue)
returns the code value for a descriptive value. if it is not found the value is returned
Parameters:
inValue -  
Returns:
String

getCode

public java.lang.String getCode(int pos)
returns a code at a specific position in vector
Parameters:
pos -  
Returns:
String

getValues

public java.util.Vector getValues()
returns the code vector
Returns:
Vector