Open Business Objects for EDI
v3.6.0

com.americancoders.edi.x12
Class X12FunctionalGroup

java.lang.Object
  |
  +--com.americancoders.edi.SegmentContainer
        |
        +--com.americancoders.edi.FunctionalGroup
              |
              +--com.americancoders.edi.x12.X12FunctionalGroup
All Implemented Interfaces:
java.io.Externalizable, IContainedObject, IIdentifier, ISegmentContainer, java.io.Serializable

public class X12FunctionalGroup
extends FunctionalGroup

class for container Functional_Group

See Also:
Serialized Form

Field Summary
static java.lang.String idHeader
          static segment ids
static java.lang.String idTrailer
           
 
Fields inherited from class com.americancoders.edi.FunctionalGroup
myTemplate, parent, transactionSets
 
Fields inherited from class com.americancoders.edi.SegmentContainer
container, dupSegment, myTemplateContainer
 
Constructor Summary
X12FunctionalGroup()
          instantiates a functional group
X12FunctionalGroup(com.americancoders.edi.TemplateFunctionalGroup inTFG, com.americancoders.edi.IContainedObject inParent)
          instantiates a functional group from the definition in an envelope xml rules file.
 
Method Summary
 com.americancoders.edi.TemplateSegmentContainer getTemplateSegmentContainer()
          return segment container template
 void setCountInTrailer()
          set the Transaction Count in the trailer object also sets the trailer "28" field from the headers "28" field
 void validate()
          validates
 void validate(com.americancoders.edi.DocumentErrors inDErr)
          validates
doesn't throw exception but placess error message in DocumentErrors object
 
Methods inherited from class com.americancoders.edi.FunctionalGroup
addTransactionSet, getFormattedText, getHeader, getID, getParent, getTemplateSegment, getTrailer, getTransactionSet, getTransactionSetCount, getTransactionSets, getXMLTag, readExternal, setHeaderId, setParent, setTrailerId, toString, trim, writeExternal, writeFormattedText
 
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

idHeader

public static final java.lang.String idHeader
static segment ids

See Also:
Constant Field Values

idTrailer

public static final java.lang.String idTrailer
See Also:
Constant Field Values
Constructor Detail

X12FunctionalGroup

public X12FunctionalGroup()
instantiates a functional group


X12FunctionalGroup

public X12FunctionalGroup(com.americancoders.edi.TemplateFunctionalGroup inTFG,
                          com.americancoders.edi.IContainedObject inParent)
instantiates a functional group from the definition in an envelope xml rules file.

Method Detail

setCountInTrailer

public void setCountInTrailer()
                       throws OBOEException
set the Transaction Count in the trailer object also sets the trailer "28" field from the headers "28" field

Specified by:
setCountInTrailer in class FunctionalGroup
Throws:
trailer - not defined yet
OBOEException

validate

public void validate()
              throws OBOEException
validates

Overrides:
validate in class FunctionalGroup
Throws:
OBOEException - indicates why envelope is invalid

validate

public void validate(com.americancoders.edi.DocumentErrors inDErr)
validates
doesn't throw exception but placess error message in DocumentErrors object

Overrides:
validate in class FunctionalGroup

getTemplateSegmentContainer

public com.americancoders.edi.TemplateSegmentContainer getTemplateSegmentContainer()
Description copied from interface: ISegmentContainer
return segment container template

Returns:
TemplateSegmentContainer

Open Business Objects for EDI
v3.6.0


OBOE is a trademark or registered trademark of American Coders, Ltd. in the US and other countries.
Copyright 1999-2004 American Coders, Ltd.
POB 97462
Raleigh NC 27624 USA
All Rights Reserved.