|
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.SegmentContainer
|
+--com.americancoders.edi.Envelope
|
+--com.americancoders.edi.x12.X12Envelope
class for wrapping a X12 EDI transaction set within an EDI Envelope
| Nested Class Summary |
| Nested classes inherited from class com.americancoders.edi.Envelope |
Envelope.PreDelimiter |
| 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(com.americancoders.edi.TemplateEnvelope inTempEnv)
instantiates the class from a TemplateEnvelope, creates mandatory segments ISA and IEA and creates one emtpy functional group |
|
| Method Summary | |
com.americancoders.edi.Segment |
createDeferred_Delivery_Request()
creates, sets and returns the Deferred_Delivery_Request |
com.americancoders.edi.FunctionalGroup |
createFunctionalGroup()
creates a basic functionalgroup object |
com.americancoders.edi.Segment |
createGrade_of_Service_Request()
creates, sets and returns the Grade_of_Service_Request |
com.americancoders.edi.Segment |
createInterchange_Acknowledgment()
creates, adds and returns a Interchange_Acknowledgment from the vector(container) check for runtime array out of bounds exception |
com.americancoders.edi.Segment |
createInterchange_Header()
creates, sets and returns the Interchange Control Header built for the envelope |
com.americancoders.edi.Segment |
createInterchange_Trailer()
creates, sets and returns the Interchange Control Trailer built for the envelope |
com.americancoders.edi.Segment |
getDeferred_Delivery_Request()
gets the Deferred_Delivery_Request |
java.lang.String |
getFormattedText(int inFormat)
returns a formatted document as a String |
com.americancoders.edi.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 |
com.americancoders.edi.Segment |
getGrade_of_Service_Request()
gets the Grade_of_Service_Request |
com.americancoders.edi.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) |
com.americancoders.edi.Segment |
getInterchange_Header()
returns the Interchange Control Header built for the envelope |
com.americancoders.edi.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(com.americancoders.edi.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, createSegmentByIDAndName, 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(com.americancoders.edi.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 com.americancoders.edi.FunctionalGroup createFunctionalGroup()
createFunctionalGroup in class Envelopepublic com.americancoders.edi.Segment getInterchange_Header()
getInterchange_Header in class Envelopepublic com.americancoders.edi.Segment getGrade_of_Service_Request()
public com.americancoders.edi.Segment getDeferred_Delivery_Request()
public int getInterchange_AcknowledgmentCount()
public com.americancoders.edi.Segment getInterchange_Acknowledgment(int pos)
public int getFunctionalGroupCount()
getFunctionalGroupCount in class Envelopepublic com.americancoders.edi.FunctionalGroup getFunctionalGroup(int pos)
getFunctionalGroup in class Envelopepos - int position within container.
public java.util.Vector getFunctionalGroups()
getFunctionalGroups in class Envelopepublic com.americancoders.edi.Segment getInterchange_Trailer()
getInterchange_Trailer in class Envelopepublic com.americancoders.edi.Segment createInterchange_Header()
public com.americancoders.edi.Segment createGrade_of_Service_Request()
public com.americancoders.edi.Segment createDeferred_Delivery_Request()
public com.americancoders.edi.Segment createInterchange_Acknowledgment()
public com.americancoders.edi.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
OBOEException
java.io.IOExceptionEnvelope.writeFormattedText(Writer, int)
public void validate()
throws OBOEException
validate in class EnvelopeOBOEException - indicates why envelope is invalidpublic void validate(com.americancoders.edi.DocumentErrors inDErr)
validate in class EnvelopeinDErr - DocumentErrors object
|
Open Business Objects for EDI v3.6.0 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||