|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.americancoders.edi.IDList
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 |
protected java.lang.String name
protected java.util.Vector codes
protected java.util.Vector values
Constructor Detail |
public IDList()
Method Detail |
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
ObjectInput
- object input streampublic void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
ObjectInput
- object input streampublic java.lang.String getName()
public void add(java.lang.String inCode, java.lang.String inDescribe)
inCode
- inDescribe
- public boolean isCodeValid(java.lang.String inCode)
inCode
- public java.lang.String describe(java.lang.String inCode)
inCode
- public java.lang.String getCode(java.lang.String inValue)
inValue
- public java.lang.String getCode(int pos)
pos
- public java.util.Vector getValues()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |