|
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.EDIFact.EDIFactEnvelope
class for wrapping a EDI transaction set within an EDI Envelope
| Field Summary | |
static java.lang.String |
idInterchangeHeader
|
static java.lang.String |
idInterchangeTrailer
|
static java.lang.String |
idServiceString
segment constants |
| Fields inherited from class com.americancoders.edi.SegmentContainer |
container, dupSegment, myTemplateContainer |
| Constructor Summary | |
EDIFactEnvelope()
instantiates the class from all related OBOE classes |
|
EDIFactEnvelope(TemplateEnvelope inTempEnv)
instantiates the class from a TemplateEnvelope, creates mandatory segments UNB and UNZ and creates one emtpy functional group |
|
| Method Summary | |
FunctionalGroup |
createFunctionalGroup()
creates a basic functionalgroup object |
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 |
createService_String()
creates, sets and returns the Service String built for the envelope |
char |
getDelimiter(char inOriginal)
returns the new delimiter based on the old delimiter |
java.lang.String |
getFormattedText(int format)
returns the EDI (EDIFact) 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 |
getInterchange_Header()
gets the Interchange_Header |
Segment |
getInterchange_Trailer()
returns the Interchange Control Trailer built for the envelope |
Segment |
getService_String()
returns the Service String Advice Segment |
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)
validates and places errors in DocumentErrors object |
void |
writeFormattedText(java.io.Writer inWriter,
int format)
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 idServiceString
public static final java.lang.String idInterchangeHeader
public static final java.lang.String idInterchangeTrailer
| Constructor Detail |
public EDIFactEnvelope()
public EDIFactEnvelope(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 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 getService_String()
public Segment getInterchange_Trailer()
getInterchange_Trailer in class Envelope
public void setDelimitersInHeader()
throws OBOEException
setDelimitersInHeader in class EnvelopeOBOEExceptionpublic void setFGCountInTrailer()
Envelope
setFGCountInTrailer in class Envelopepublic java.lang.String getFormattedText(int format)
getFormattedText in class Envelopeformat - int - format type see TransactionSet
public void writeFormattedText(java.io.Writer inWriter,
int format)
throws OBOEException,
java.io.IOException
Envelope
writeFormattedText in class EnvelopeinWriter - writer - object written toformat - 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 invalid
public void validate(DocumentErrors inDErr)
throws OBOEException
validate in class EnvelopeinDErr - DocumentErrors
OBOEExceptionpublic Segment createService_String()
public Segment createInterchange_Header()
public Segment createInterchange_Trailer()
public 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 | ||||||||||