|
Open Business Objects for EDI v3.6.0 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--com.americancoders.edi.DataElement
|
+--com.americancoders.edi.NumericDE
class for Data Elements defined as Numeric (Nx - where x is an integer representing number of decimal places)
OBOE - Open Business Objects for EDI
Part of the OBOE Basic Extended Package
An EDI and XML Translator Written In Java
Copyright 1998-2009 - 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 static java.text.DecimalFormatSymbols |
dfs
|
protected int |
fractionDigits
stores fraction of digits |
protected java.lang.String[] |
value
|
| Fields inherited from class com.americancoders.edi.DataElement |
parent |
| Constructor Summary | |
NumericDE(com.americancoders.edi.TemplateDE inTDE,
com.americancoders.edi.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 |
int |
getDecimalPositions()
gets the number of decimal positions |
java.lang.String |
getFixedLengthFormattedText()
|
java.lang.String |
getFormattedText(int formatType)
builds a formatted String of the object |
int |
getLength()
gets the current length for the Data Element |
static void |
main(java.lang.String[] args)
|
void |
set(byte[] inValue)
sets the fields contents, not formatted |
void |
set(java.lang.String inValue)
sets the fields contents, cursor set to zero |
java.lang.String |
setFormatted(java.lang.String input)
sets NumericDE object using an input string use class set method to set values with assumed decimal |
void |
setNext(java.lang.String inValue)
sets the fields contents by moving cursor, cursor will wrap around |
boolean |
validate(com.americancoders.edi.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 |
getDescription, 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 |
getParent, setParent |
| Methods inherited from interface com.americancoders.edi.IIdentifier |
getID, getXMLTag |
| Field Detail |
protected java.lang.String[] value
protected int cursor
protected int fractionDigits
protected static final java.text.DecimalFormatSymbols dfs
| Constructor Detail |
public NumericDE(com.americancoders.edi.TemplateDE inTDE,
com.americancoders.edi.IContainedObject inParent)
inTDE - TemplateDEinParent - owning Object| Method Detail |
public void set(java.lang.String inValue)
set in class DataElementinValue - String contents
OBOEException
public void setNext(java.lang.String inValue)
throws OBOEException
setNext in class DataElementinValue - String contents
OBOEException - inValue contains format characters if field defined with type of N#
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 get()
get in class DataElementpublic java.lang.String get(int inPos)
inPos - int position in array
public int getDecimalPositions()
public java.lang.String getFormattedText(int formatType)
getFormattedText in class DataElementformatType - int x12, edifact...
public java.lang.String setFormatted(java.lang.String input)
throws OBOEException
input - set contents
OBOEException - invalid inputpublic java.lang.String validate(java.lang.String inText)
validate in class DataElementinText - String text
public boolean validate(com.americancoders.edi.DocumentErrors inDErr)
validate in class DataElementinDErr - DocumentErrors object
public java.lang.String getFixedLengthFormattedText()
getFixedLengthFormattedText in class DataElementpublic static void main(java.lang.String[] args)
|
Open Business Objects for EDI v3.6.0 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||