|
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.DateDE
class for Data Elements defined as Date
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 | |
DateDE(TemplateDE inTDE,
IContainedObject inParent)
constructs from its template |
|
| Method Summary | |
java.lang.String |
get()
returns the date stored in YYYYMMDD format where YY is year MM is month, DD is day of month |
java.lang.String |
get(int inPos)
returns the value for the Data Element |
java.lang.String |
getFormattedText(int formatType)
formats text of data element Short 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 inDate)
sets the next field value at first field, cursor set to zero stored using an input string in the format YYYYMMDD where YY is year or YYYY is year. |
void |
setNext(java.lang.String inDate)
sets the next field value by moving cursor, cursor will wrap around stored using an input string in the format YYYYMMDD where YY is year or YYYY is year. |
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 |
| Methods inherited from interface com.americancoders.edi.IContainedObject |
getDelimiter, getParent, setParent |
| Methods inherited from interface com.americancoders.edi.IIdentifier |
getID, getXMLTag |
| Field Detail |
protected java.lang.String[] value
protected int cursor
| Constructor Detail |
public DateDE(TemplateDE inTDE,
IContainedObject inParent)
inTDE - TemplateDEinParent - owning Object| Method Detail |
public java.lang.String get()
get in class DataElementpublic java.lang.String get(int inPos)
inPos - int position in array
public void set(java.lang.String inDate)
throws OBOEException
set in class DataElementinDate - String date
OBOEException
public void setNext(java.lang.String inDate)
throws OBOEException
setNext in class DataElementinDate - String date
ParseException
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 int getLength()
getLength in class DataElementpublic java.lang.String getFormattedText(int formatType)
getFormattedText in class DataElementformatType - int formatting type
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 | ||||||||||