Open Business Objects for EDI
v3.6.0

com.americancoders.edi
Class IDList103Processor

java.lang.Object
  |
  +--com.americancoders.edi.IDList103Processor
All Implemented Interfaces:
java.io.Externalizable, IDListProcessor, java.io.Serializable

public class IDList103Processor
extends java.lang.Object
implements IDListProcessor

Author:
Joe McVerry - American Coders, Ltd. To change the template for this generated type comment go to Window>Preferences>Java>Code Generation>Code and Comments
See Also:
Serialized Form

Constructor Summary
IDList103Processor()
           
 
Method Summary
 void add(java.lang.String inCode, java.lang.String inDescribe)
          Add code and description
An optional method.
 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
An optional method.
 java.util.Vector getCodes()
          returns the code vector
 java.util.Vector getValues()
          returns the value vector
 boolean isCodeValid(java.lang.String inCode)
          tests if the passed code is valid
static void main(java.lang.String[] args)
           
 void readExternal(java.io.ObjectInput in)
           
 void writeExternal(java.io.ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IDList103Processor

public IDList103Processor()
                   throws java.io.IOException
Method Detail

add

public void add(java.lang.String inCode,
                java.lang.String inDescribe)
         throws java.lang.UnsupportedOperationException
Description copied from interface: IDListProcessor
Add code and description
An optional method.

Specified by:
add in interface IDListProcessor
Parameters:
inCode - String code
inDescribe - String descriptive value
Throws:
java.lang.UnsupportedOperationException

isCodeValid

public boolean isCodeValid(java.lang.String inCode)
Description copied from interface: IDListProcessor
tests if the passed code is valid

Specified by:
isCodeValid in interface IDListProcessor
Parameters:
inCode - String to test
Returns:
boolean

describe

public java.lang.String describe(java.lang.String inCode)
Description copied from interface: IDListProcessor
returns the descriptive value of the code, if it is not found then the code is returned

Specified by:
describe in interface IDListProcessor
Parameters:
inCode - String to test
Returns:
String

getCode

public java.lang.String getCode(java.lang.String inValue)
Description copied from interface: IDListProcessor
returns the code value for a descriptive value. if it is not found the value is returned

Specified by:
getCode in interface IDListProcessor
Parameters:
inValue - String to test
Returns:
String

getCodeByPos

public java.lang.String getCodeByPos(int pos)
                              throws java.lang.UnsupportedOperationException
Description copied from interface: IDListProcessor
returns a code at a specific position in vector
An optional method.

Specified by:
getCodeByPos in interface IDListProcessor
Parameters:
pos - int String position
Returns:
String
Throws:
java.lang.UnsupportedOperationException

getCodes

public java.util.Vector getCodes()
Description copied from interface: IDListProcessor
returns the code vector

Specified by:
getCodes in interface IDListProcessor
Returns:
Vector

getValues

public java.util.Vector getValues()
Description copied from interface: IDListProcessor
returns the value vector

Specified by:
getValues in interface IDListProcessor
Returns:
Vector

writeExternal

public void writeExternal(java.io.ObjectOutput out)
                   throws java.io.IOException
Specified by:
writeExternal in interface java.io.Externalizable
java.io.IOException

readExternal

public void readExternal(java.io.ObjectInput in)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
Specified by:
readExternal in interface java.io.Externalizable
java.io.IOException
java.lang.ClassNotFoundException

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
java.lang.Exception

Open Business Objects for EDI
v3.6.0


OBOE is a trademark or registered trademark of American Coders, Ltd. in the US and other countries.
Copyright 1999-2004 American Coders, Ltd.
POB 97462
Raleigh NC 27624 USA
All Rights Reserved.