|
Open Business Objects for EDI v3.5.2 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.americancoders.edi.IDList
An class that represents ID lists
OBOE - Open Business Objects for EDI
Part of the OBOE Basic Extended Package
An EDI and XML Translator Written In Java
Copyright 1998-2007 - American Coders, LTD - Raleigh NC USA
All rights reserved
American Coders, Ltd
P. O. Box 97462
Raleigh, NC 27624 USA
1-919-846-2014
http://www.americancoders.com
| Field Summary | |
protected java.util.Vector |
codes
codes and descriptive values associated with IDList |
protected boolean |
filtered
IDList boolean filtered - filtered data from filename |
protected java.lang.String |
filterList
|
protected java.lang.String |
name
IDList name |
protected java.lang.String |
shortname
IDList short filename |
protected java.util.Vector |
values
codes and descriptive values associated with IDList |
| Constructor Summary | |
IDList()
Construct an id list object with no values |
|
IDList(java.lang.String inShortName)
Construct an id list object with no values but a name |
|
IDList(java.lang.String xmlFile,
java.lang.String inLastDirectoryToLook,
IDListParser idListParser)
Build an IDList structure from an XML file |
|
| 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(java.lang.String inValue)
returns the code value for a descriptive value. |
java.lang.String |
getCodeByPos(int pos)
returns a code at a specific position in vector |
java.util.Vector |
getCodes()
returns the code vector |
java.lang.String |
getFilterList()
|
java.lang.String |
getName()
return name of id list file |
java.lang.String |
getShortName()
return short name of id list |
java.util.Vector |
getValues()
returns the value vector |
IDList |
idListWork(char c,
java.lang.String string)
|
boolean |
isCodeValid(java.lang.String inCode)
tests if the passed code is in the code vector |
boolean |
isFiltered()
|
void |
readExternal(java.io.ObjectInput in)
used by externalize methods |
void |
setFiltered(boolean filtered)
|
void |
setFilterList(java.lang.String filterList)
|
void |
setName(java.lang.String inName)
sets the name of id list file |
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
protected java.lang.String shortname
protected boolean filtered
protected java.lang.String filterList
| Constructor Detail |
public IDList(java.lang.String xmlFile,
java.lang.String inLastDirectoryToLook,
IDListParser idListParser)
xmlFile - xml file containing id list structureinLastDirectoryToLook - - name of the highest directory to find idlist file inidListParser - SAX2 parser IDListParserpublic IDList()
public IDList(java.lang.String inShortName)
inShortName - String name of idList| Method Detail |
public void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.Externalizablein - ObjectInput stream
java.io.IOException - - most likely class changed since written
java.lang.ClassNotFoundException - - only when dummy constructro not found
public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.Externalizableout - ObjectOutput stream
java.io.IOException - java.io exceptionpublic void setName(java.lang.String inName)
public java.lang.String getName()
public java.lang.String getShortName()
public void add(java.lang.String inCode,
java.lang.String inDescribe)
add in interface IDListProcessorinCode - String codeinDescribe - String descriptive valuepublic boolean isCodeValid(java.lang.String inCode)
isCodeValid in interface IDListProcessorinCode - String to test
public java.lang.String describe(java.lang.String inCode)
describe in interface IDListProcessorinCode - String to test
public java.lang.String getCode(java.lang.String inValue)
getCode in interface IDListProcessorinValue - String to test
public java.lang.String getCodeByPos(int pos)
getCodeByPos in interface IDListProcessorpos - int String position
public java.util.Vector getCodes()
getCodes in interface IDListProcessorpublic java.util.Vector getValues()
getValues in interface IDListProcessorpublic boolean isFiltered()
public void setFiltered(boolean filtered)
public java.lang.String getFilterList()
public void setFilterList(java.lang.String filterList)
public IDList idListWork(char c,
java.lang.String string)
c - 'i' or 'x', inlude or excludestring - inclusion/exclusion list
|
Open Business Objects for EDI v3.5.2 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||