|
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.TransactionSet
class for all EDI Transaction Sets
OBOE - Open Business Objects for EDI
Part of the OBOE Basic Extended Package
An EDI and XML Translator Written In Java
Copyright 1998-2009 - 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
| Field Summary | |
protected com.americancoders.edi.IContainedObject |
parent
|
| Fields inherited from class com.americancoders.edi.SegmentContainer |
container, dupSegment, myTemplateContainer |
| Constructor Summary | |
TransactionSet(com.americancoders.edi.TemplateTransactionSet inTemplateTransactionSet,
com.americancoders.edi.IContainedObject inParent)
creates a transactionset object from a template |
|
| Method Summary | |
boolean |
continueParse(com.americancoders.edi.SegmentContainer inContainer,
com.americancoders.edi.ITokenizer TransactionTokenizedString)
continues to parse an EDI Document after an error. |
com.americancoders.edi.Table |
getDetailTable()
returns detail table for the Transaction Set |
int |
getFormat()
returns the Transaction Set format |
java.lang.String |
getFormattedText(int formatType)
returns a formatted string of the transaction set |
java.lang.String |
getFunctionalGroup()
return Functional Group for the Transaction Set |
com.americancoders.edi.Table |
getHeaderTable()
returns header table for the Transaction Set |
java.lang.String |
getID()
returns the Transaction Set id |
java.lang.String |
getName()
returns name for the Transaction Set |
com.americancoders.edi.IContainedObject |
getParent()
gets parent attribute |
java.lang.String |
getRevision()
returns revision value for the Transaction Set |
int |
getSegmentCount()
returns the number of segments |
java.lang.String |
getShortDescription()
returns the Short Description for the Transaction Set |
com.americancoders.edi.Table |
getSummaryTable()
returns summary table for the Transaction Set |
com.americancoders.edi.TemplateSegmentContainer |
getTemplateSegmentContainer()
return segment container template |
com.americancoders.edi.TemplateTransactionSet |
getTemplateTransactionSet()
return the transactionset's template |
java.lang.String |
getXMLTag()
returns the xml tag field |
boolean |
parse(com.americancoders.edi.ITokenizer TransactionTokenizedString)
parses an EDI Document from tokenized string |
void |
parse(org.w3c.dom.Node node)
parses a XML EDI Document from a DOM node. |
void |
parse(java.io.PushbackInputStream pis)
parses a FixedLength EDI Document from a Data Input Stream. |
void |
setDetailTable(com.americancoders.edi.Table inTable)
sets detail table for the Transaction Set |
void |
setFormat(int inFormat)
sets format for the Transaction Set XML_FORMAT = 1; X12_FORMAT = 2; EDIFACT_FORMAT = 3; VALID_XML_FORMAT = 4; |
void |
setFunctionalGroup(java.lang.String inFunctionalGroup)
sets Function Group for the Transaction Set |
void |
setHeaderTable(com.americancoders.edi.Table inTable)
sets header table for the Transaction Set |
void |
setID(java.lang.String inId)
sets id for the Transaction Set |
void |
setName(java.lang.String inName)
sets name for the Transaction Set |
void |
setParent(com.americancoders.edi.IContainedObject inParent)
sets parent attribute |
void |
setRevision(java.lang.String inRevision)
sets Revision for the Transaction Set |
void |
setShortDescription(java.lang.String inDesc)
sets Short Description for the Transaction Set |
void |
setSummaryTable(com.americancoders.edi.Table inTable)
sets summary table for the Transaction Set |
void |
setTrailerFields()
sets the SE (for X12) or UNT (for EDIFact) control number and count fields |
void |
setXMLTag(java.lang.String inXMLTag)
sets the xml tag field |
int |
trim()
trims out unused segments and returns number of used segments |
void |
useDefault()
sets the default value for the data elements does nothing in Basic Edition, just a stub will call tables useDefault methods, tables will create mandatory subsegments |
void |
validate()
validates segment syntax for correct DataElements |
void |
validate(com.americancoders.edi.DocumentErrors inDErr)
validates segment syntax for correct DataElements doesn't throw exception, places error text in DocumentErrors object |
void |
writeFormattedText(java.io.Writer inWriter,
int formatType)
like getFormattedText; writes to a Writer object instead of building a string. |
| 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, removeSegment, removeSegment, removeSegment, removeSegment, resetToFirstEquivalentSegment, setSegmentAt, setSegmentAt, whyNotUsed |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected com.americancoders.edi.IContainedObject parent
| Constructor Detail |
public TransactionSet(com.americancoders.edi.TemplateTransactionSet inTemplateTransactionSet,
com.americancoders.edi.IContainedObject inParent)
inTemplateTransactionSet - inParent - owning Object| Method Detail |
public boolean parse(com.americancoders.edi.ITokenizer TransactionTokenizedString)
throws OBOEException
parse in class SegmentContainerTransactionTokenizedString - input string containing all of the transaction data pretokened by OBOE.Tokenizer
OBOEException - thrown when the transaction id string is incorrect
OBOEException - thrown when an unknown segment id string is found
public boolean continueParse(com.americancoders.edi.SegmentContainer inContainer,
com.americancoders.edi.ITokenizer TransactionTokenizedString)
throws OBOEException
inContainer - last container used.TransactionTokenizedString - input string containing all of the transaction data pretokened by OBOE.Tokenizer
OBOEException - thrown when the transaction id string is incorrect
OBOEException - thrown when an unknown segment id string is found
public void parse(org.w3c.dom.Node node)
throws OBOEException
node - XML Node element
OBOEException - thrown when the transaction id string is incorrect
OBOEException - thrown when an unknown segment id string is foundi
public void parse(java.io.PushbackInputStream pis)
throws OBOEException,
java.io.IOException
pis - PushbackInputStream
OBOEException - thrown when the transaction id string is incorrect
OBOEException - thrown when an unknown segment id string is foundi
java.io.IOExceptionpublic void setFormat(int inFormat)
inFormat - int formatpublic void setID(java.lang.String inId)
inId - String transation set idpublic void setName(java.lang.String inName)
inName - String transaction set namepublic void setRevision(java.lang.String inRevision)
inRevision - String revision or versionpublic void setFunctionalGroup(java.lang.String inFunctionalGroup)
inFunctionalGroup - String functional grouppublic void setShortDescription(java.lang.String inDesc)
inDesc - String descriptionpublic void setHeaderTable(com.americancoders.edi.Table inTable)
inTable - Tablepublic void setDetailTable(com.americancoders.edi.Table inTable)
inTable - Tablepublic void setSummaryTable(com.americancoders.edi.Table inTable)
inTable - Tablepublic com.americancoders.edi.TemplateTransactionSet getTemplateTransactionSet()
public int getFormat()
public java.lang.String getID()
getID in interface IIdentifiergetID in class SegmentContainerpublic java.lang.String getName()
public java.lang.String getRevision()
public java.lang.String getFunctionalGroup()
public java.lang.String getShortDescription()
public com.americancoders.edi.Table getHeaderTable()
public com.americancoders.edi.Table getDetailTable()
public com.americancoders.edi.Table getSummaryTable()
public void setXMLTag(java.lang.String inXMLTag)
inXMLTag - String xml tag idpublic java.lang.String getXMLTag()
getXMLTag in interface IIdentifier
public void validate()
throws OBOEException
OBOEException - indicates why segment is invalid
public void validate(com.americancoders.edi.DocumentErrors inDErr)
throws OBOEException
OBOEExceptionpublic int getSegmentCount()
public java.lang.String getFormattedText(int formatType)
formatType - int format type, x12, edifact, xml...
public void writeFormattedText(java.io.Writer inWriter,
int formatType)
throws java.io.IOException
inWriter - writer - object written toformatType - - format type see TransactionSet
OBOEException
java.io.IOExceptionpublic void setTrailerFields()
public void useDefault()
public int trim()
trim in class SegmentContainerpublic void setParent(com.americancoders.edi.IContainedObject inParent)
setParent in interface IContainedObjectinParent - TemplateSegmentContainerpublic com.americancoders.edi.IContainedObject getParent()
getParent in interface IContainedObjectpublic com.americancoders.edi.TemplateSegmentContainer getTemplateSegmentContainer()
ISegmentContainer
getTemplateSegmentContainer in interface ISegmentContainer
|
Open Business Objects for EDI v3.6.0 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||