Open Business Objects for EDI
v3.5.2

com.americancoders.edi
Interface IDataElementContainer

All Known Implementing Classes:
CompositeDE, Segment

public interface IDataElementContainer

interface for DataElement Container

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

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

Method Summary
 java.lang.Object buildDE(int pos)
          defines a dataelement by the predefined templateDE array
 DataElement getDataElement(int inSequence)
          returns a DataElement in the Container
 DataElement getDataElement(java.lang.String ID)
          returns a DataElement in the Container
since more than one dataelement with the same id can be in the container this is not a very effective method for fetching unique datalements.
 int getDataElementSize()
          returns the number of defined data element
 

Method Detail

getDataElement

public DataElement getDataElement(java.lang.String ID)
                           throws OBOEException
returns a DataElement in the Container
since more than one dataelement with the same id can be in the container this is not a very effective method for fetching unique datalements.

Parameters:
ID - String ID of datalement to look for
Returns:
DataElement DataElement object
Throws:
OBOEException - ID is unknown

getDataElement

public DataElement getDataElement(int inSequence)
                           throws OBOEException
returns a DataElement in the Container

Parameters:
inSequence - int sequence position of dataelement
Returns:
DataElement DataElement object
Throws:
OBOEException - ID is unknown

getDataElementSize

public int getDataElementSize()
returns the number of defined data element

Returns:
int DataElement count

buildDE

public java.lang.Object buildDE(int pos)
defines a dataelement by the predefined templateDE array

Parameters:
pos - field to build is identified by its templates position
position is relative to 1.
Returns:
Object always a DataElement, I used Object to keep it consistent with what Segments buildDE returns.

Open Business Objects for EDI
v3.5.2


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.