|
Open Business Objects for EDI v3.5.2 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Segment Container Interface
defines basic segment container methods
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
| Method Summary | |
void |
addSegment(Segment inSegment)
add a segment to the array |
Segment |
createSegment(java.lang.String id)
creates a static segment |
java.lang.String |
getID()
returns the ID of the container, Segment ID, "Envelope",... |
Segment |
getSegment(java.lang.String inID)
returns a Segment by its ID |
Segment |
getSegment(java.lang.String inID,
int pos)
returns a Segment by its ID and position in container |
int |
getSegmentCount(java.lang.String id)
returns the # of segments within container with the id |
TemplateSegmentContainer |
getTemplateSegmentContainer()
return segment container template |
void |
removeSegment(java.lang.String inID)
removes a Segment from the segmentArray by id, does this by setting array entry to null can be used to remove all segments with same id at a vectorized position |
| Method Detail |
public TemplateSegmentContainer getTemplateSegmentContainer()
public void addSegment(Segment inSegment)
throws OBOEException
inSegment - Segmemt to add to vector
OBOEException - segment doesn't belong
public void removeSegment(java.lang.String inID)
throws OBOEException
inID - String id
OBOEException - unknown segment id
public Segment getSegment(java.lang.String inID)
throws OBOEException
inID - String id of segment to get
OBOEException - id not found
public Segment getSegment(java.lang.String inID,
int pos)
throws OBOEException
inID - String id of segment to getpos - int
OBOEException - id not found
public Segment createSegment(java.lang.String id)
throws OBOEException
id - String id of subsegment to create
OBOEException - if a Vector is defined at this position.public java.lang.String getID()
public int getSegmentCount(java.lang.String id)
|
Open Business Objects for EDI v3.5.2 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||