|
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.DataElement
com.americancoders.edi.CharDE
class for all Data Elements defined as character and alphanumeric
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 int |
cursor
|
protected java.lang.String[] |
value
|
| Fields inherited from class com.americancoders.edi.DataElement |
parent |
| Constructor Summary | |
CharDE(TemplateDE inTDE,
IContainedObject inParent)
constructs from its template |
|
| Method Summary | |
java.lang.String |
get()
returns the value for the Data Element |
java.lang.String |
get(int inPos)
returns the value for the Data Element |
java.lang.String |
getFormattedText(int formatType)
formats text of data element Description of DataElement is defined in the class value is the current value set in the object |
int |
getLength()
gets the current length for the Data Element |
void |
set(byte[] inValue)
sets the fields contents, not formatted |
void |
set(java.lang.String inValue)
sets the fields contents, cursor set to zero |
void |
setNext(java.lang.String inValue)
sets the next field contents by moving cursor, cursor will wrap around |
boolean |
validate(DocumentErrors inDErr)
sets error in DocumentErrors |
java.lang.String |
validate(java.lang.String inText)
returns error responses of contents |
| Methods inherited from class com.americancoders.edi.DataElement |
getDelimiter, getDescription, getFixedLengthFormattedText, getID, getMaxLength, getMinLength, getName, getOccurs, getParent, getRequired, getSequence, getTemplate, getType, getXMLTag, isUsed, setParent, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected java.lang.String[] value
protected int cursor
| Constructor Detail |
public CharDE(TemplateDE inTDE,
IContainedObject inParent)
inTDE - TemplateDEinParent - owning Object| Method Detail |
public int getLength()
getLength in class DataElementpublic void set(java.lang.String inValue)
set in class DataElementinValue - String contents
OBOEExceptionpublic void setNext(java.lang.String inValue)
setNext in class DataElementinValue - String contents
OBOEException
public void set(byte[] inValue)
throws OBOEException
set in class DataElementinValue - byte array, converted to string and set(String) is called
OBOEException - inValue contains format characters if field defined with type of N#public java.lang.String get()
get in class DataElementpublic java.lang.String get(int inPos)
inPos - int position in array
public java.lang.String getFormattedText(int formatType)
getFormattedText in class DataElementformatType - int format type x12, edifact...
public java.lang.String validate(java.lang.String inText)
validate in class DataElementinText - String text
public boolean validate(DocumentErrors inDErr)
validate in class DataElementinDErr - DocumentErrors object
|
Open Business Objects for EDI v3.5.2 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||