Open Business Objects for EDI
v3.6.0

com.americancoders.edi
Class BinaryDE

java.lang.Object
  |
  +--com.americancoders.edi.DataElement
        |
        +--com.americancoders.edi.BinaryDE
All Implemented Interfaces:
IContainedObject, IIdentifier

public class BinaryDE
extends DataElement

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-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

Version:
3.6.0
Author:
Joe McVerry - American Coders, Ltd.

Field Summary
 
Fields inherited from class com.americancoders.edi.DataElement
parent
 
Constructor Summary
BinaryDE(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
 byte[] getBytes()
          returns the value for the Binary 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
static void main(java.lang.String[] args)
           
 void set(byte[] inValue)
          sets the fields contents
 void set(java.lang.String inValue)
          sets the fields contents
 void setNext(java.lang.String inValue)
          sets the next but not implemented
 void setValue(java.lang.String inValue)
          sets the value for the Data Element
 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, 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
 

Constructor Detail

BinaryDE

public BinaryDE(com.americancoders.edi.TemplateDE inTDE,
                com.americancoders.edi.IContainedObject inParent)
constructs from its template

Parameters:
inTDE - TemplateDE
inParent - owning Object
Method Detail

main

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

setValue

public void setValue(java.lang.String inValue)
sets the value for the Data Element

Parameters:
inValue - String value

setNext

public void setNext(java.lang.String inValue)
sets the next but not implemented

Specified by:
setNext in class DataElement
Parameters:
inValue - String value

set

public void set(java.lang.String inValue)
sets the fields contents

Specified by:
set in class DataElement
Parameters:
inValue - byte arra contents

getLength

public int getLength()
gets the current length for the Data Element

Specified by:
getLength in class DataElement
Returns:
int retuns length of set value, can have a null exception if value is not set.

set

public void set(byte[] inValue)
sets the fields contents

Specified by:
set in class DataElement
Parameters:
inValue - byte array contents

get

public java.lang.String get()
returns the value for the Data Element

Specified by:
get in class DataElement
Returns:
String

getBytes

public byte[] getBytes()
returns the value for the Binary Data Element

Returns:
byte array

getFormattedText

public 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

Specified by:
getFormattedText in class DataElement
Parameters:
formatType - int format type x12, edifact...
Returns:
String of formatted text

validate

public java.lang.String validate(java.lang.String inText)
returns error responses of contents

Specified by:
validate in class DataElement
Parameters:
inText - String text
Returns:
String, null if no error

validate

public boolean validate(com.americancoders.edi.DocumentErrors inDErr)
sets error in DocumentErrors

Specified by:
validate in class DataElement
Parameters:
inDErr - DocumentErrors object
Returns:
boolean false = error.

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.