|
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.TimeDE
class for Data Elements defined as Time
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 | |
TimeDE(TemplateDE inTDE,
IContainedObject inParent)
constructs from its template |
|
| Method Summary | |
java.lang.String |
get()
returns the date stored in HHMMSSmmm format where HH is hour MM is minutes SS is seconds mmm is milliseconds |
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 inTime)
sets the value (sets cursor to zero) stored using an input string in the format HHMMSS where HH is hour MM is minutes SS is seconds, |
void |
setNext(java.lang.String inTime)
sets the value (by moving cursor, cursor will wrap around) stored using an input string in the format HHMMSS where HH is hour MM is minutes SS is seconds, |
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 TimeDE(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 inTime)
set in class DataElementinTime - String field in format HHMMSSpublic void setNext(java.lang.String inTime)
setNext in class DataElementinTime - String field in format HHMMSS
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 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 | ||||||||||