|
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.SegmentContainer
com.americancoders.edi.Envelope
com.americancoders.edi.x12.X12Envelope
class for wrapping a X12 EDI transaction set within an EDI Envelope
| Field Summary | |
static java.lang.String |
idDeferredDeliveryRequest
|
static java.lang.String |
idGradeofServiceRequest
|
static java.lang.String |
idInterchangeAcknowledgment
|
static java.lang.String |
idInterchangeHeader
segment constants |
static java.lang.String |
idInterchangeTrailer
|
| Fields inherited from class com.americancoders.edi.SegmentContainer |
container, dupSegment, myTemplateContainer |
| Constructor Summary | |
X12Envelope()
instantiates the class from all related OBOE classes |
|
X12Envelope(TemplateEnvelope inTempEnv)
instantiates the class from a TemplateEnvelope, creates mandatory segments ISA and IEA and creates one emtpy functional group |
|
| Method Summary | |
Segment |
createDeferred_Delivery_Request()
creates, sets and returns the Deferred_Delivery_Request |
FunctionalGroup |
createFunctionalGroup()
creates a basic functionalgroup object |
Segment |
createGrade_of_Service_Request()
creates, sets and returns the Grade_of_Service_Request |
Segment |
createInterchange_Acknowledgment()
creates, adds and returns a Interchange_Acknowledgment from the vector(container) check for runtime array out of bounds exception |
Segment |
createInterchange_Header()
creates, sets and returns the Interchange Control Header built for the envelope |
Segment |
createInterchange_Trailer()
creates, sets and returns the Interchange Control Trailer built for the envelope |
Segment |
getDeferred_Delivery_Request()
gets the Deferred_Delivery_Request |
char |
getDelimiter(char inOriginal)
returns the new delimiter based on the old delimiter |
java.lang.String |
getFormattedText(int inFormat)
returns the EDI (x12) formatted document in a String |
FunctionalGroup |
getFunctionalGroup(int pos)
gets a Functional Group object from the vector (container); check for runtime array out of bounds exception |
int |
getFunctionalGroupCount()
gets the count of Functional Group object in the vector (container); |
java.util.Vector |
getFunctionalGroups()
gets the Vector of Functional Group objects |
Segment |
getGrade_of_Service_Request()
gets the Grade_of_Service_Request |
Segment |
getInterchange_Acknowledgment(int pos)
gets a Interchange_Acknowledgment from the vector(container) check for runtime array out of bounds exception |
int |
getInterchange_AcknowledgmentCount()
gets the count of Interchange_Acknowledgment in the vector(container) |
Segment |
getInterchange_Header()
returns the Interchange Control Header built for the envelope |
Segment |
getInterchange_Trailer()
returns the Interchange Control Trailer built for the envelope |
void |
parse(org.w3c.dom.Node node)
|
boolean |
parse(java.io.PushbackInputStream pis)
|
void |
setDelimitersInHeader()
sets the Delimter fields in the header |
void |
setFGCountInTrailer()
sets the functional group count in the trailer. |
void |
validate()
validates |
void |
validate(DocumentErrors inDErr)
validate contents of envelope doesn't throw exception but places errors in DocumentErrors object. |
void |
writeFormattedText(java.io.Writer inWriter,
int inFormat)
like getFormattedText; writes to a Writer object instead of building a string. |
| Methods inherited from class com.americancoders.edi.Envelope |
addFunctionalGroup, getFormat, getFormat, getID, getParent, getResponse, getRevision, getTemplateSegment, getTemplateSegmentContainer, getXMLTag, processEDIEnvelope, setDelimiters, setDelimitersFromProperties, setFormat, setParent, setResponse, setRevision, toString, trim |
| Methods inherited from class com.americancoders.edi.SegmentContainer |
addSegment, addSegment, addSegment, addSegmentToVector, createSegment, createSegment, defineContainer, equivalentSegments, getContainerSize, getSegment, getSegment, getSegment, getSegment, getSegment, getSegment, getSegmentByDataElementValue, getSegmentCount, getSegmentCount, isNull, isSegment, isSegment, isVector, parse, removeSegment, removeSegment, removeSegment, removeSegment, resetToFirstEquivalentSegment, setSegmentAt, setSegmentAt, whyNotUsed |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.americancoders.edi.ISegmentContainer |
addSegment, createSegment, getSegment, getSegment, getSegmentCount, removeSegment |
| Field Detail |
public static final java.lang.String idInterchangeHeader
public static final java.lang.String idGradeofServiceRequest
public static final java.lang.String idInterchangeAcknowledgment
public static final java.lang.String idDeferredDeliveryRequest
public static final java.lang.String idInterchangeTrailer
| Constructor Detail |
public X12Envelope()
public X12Envelope(TemplateEnvelope inTempEnv)
throws OBOEException
inTempEnv - TemplateEnvelope to build this class with
OBOEException - missing segment definition in envelope xml.| Method Detail |
public void parse(org.w3c.dom.Node node)
throws OBOEException,
java.io.FileNotFoundException,
java.io.IOException
parse in class EnvelopeOBOEException
java.io.FileNotFoundException
java.io.IOException
public boolean parse(java.io.PushbackInputStream pis)
throws OBOEException,
java.io.FileNotFoundException,
java.io.IOException
parse in class EnvelopeOBOEException
java.io.FileNotFoundException
java.io.IOExceptionpublic FunctionalGroup createFunctionalGroup()
createFunctionalGroup in class Envelopepublic Segment getInterchange_Header()
getInterchange_Header in class Envelopepublic Segment getGrade_of_Service_Request()
public Segment getDeferred_Delivery_Request()
public int getInterchange_AcknowledgmentCount()
public Segment getInterchange_Acknowledgment(int pos)
public int getFunctionalGroupCount()
getFunctionalGroupCount in class Envelopepublic FunctionalGroup getFunctionalGroup(int pos)
getFunctionalGroup in class Envelopepos - int position within container.
public java.util.Vector getFunctionalGroups()
getFunctionalGroups in class Envelopepublic Segment getInterchange_Trailer()
getInterchange_Trailer in class Envelopepublic Segment createInterchange_Header()
public Segment createGrade_of_Service_Request()
public Segment createDeferred_Delivery_Request()
public Segment createInterchange_Acknowledgment()
public Segment createInterchange_Trailer()
public void setDelimitersInHeader()
throws OBOEException
setDelimitersInHeader in class EnvelopeOBOEException
public void setFGCountInTrailer()
throws OBOEException
setFGCountInTrailer in class EnvelopeOBOEExceptionpublic java.lang.String getFormattedText(int inFormat)
getFormattedText in class EnvelopeinFormat - int - format type see TransactionSet
public void writeFormattedText(java.io.Writer inWriter,
int inFormat)
throws OBOEException,
java.io.IOException
Envelope
writeFormattedText in class EnvelopeinWriter - writer - object written toinFormat - int - format type see TransactionSet
java.io.IOException
OBOEExceptionEnvelope.writeFormattedText(Writer, int)
public void validate()
throws OBOEException
validate in class EnvelopeOBOEException - indicates why envelope is invalidpublic void validate(DocumentErrors inDErr)
validate in class EnvelopeinDErr - DocumentErrors objectpublic char getDelimiter(char inOriginal)
IContainedObject
inOriginal -
|
Open Business Objects for EDI v3.5.2 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||