|
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.LoopAndSegmentContainer
com.americancoders.edi.Loop
class for Loops OBOE - Open Business Objects for EDI
An EDI and XML Translator Written In Java
Copyright 1998-2007 - 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 TemplateLoop |
myTemplate
TemplateSegment that can build this Segment |
protected IContainedObject |
parent
owning object |
| Fields inherited from class com.americancoders.edi.SegmentContainer |
container, dupSegment, myTemplateContainer |
| Constructor Summary | |
Loop(TemplateLoop inTemplateLoop,
IContainedObject inParent)
create a Loop based on its template |
|
| Method Summary | |
Segment |
createSegment(java.lang.String ID)
this is here as a stub because of the Segment container interface |
java.lang.String |
get()
returns all the data associated with the Segment dataelements separated by '*' composites separated by '<', note data elements within composites are seperated by ':' |
char |
getDelimiter(char inOriginal)
returns the new delimiter based on the old delimiter |
java.lang.String |
getFixedLengthFormattedText()
returns fixed length formatted text |
java.lang.String |
getFormattedText(int formatType)
returns the formatted text |
java.lang.String |
getID()
gets the Segment id |
java.lang.String |
getName()
gets the Segment Name |
int |
getOccurs()
returns the occurs value |
IContainedObject |
getParent()
gets parent attribute |
char |
getRequired()
gets required flag |
int |
getSegmentSize()
returns the number of Segments within this Segment |
TemplateLoop |
getTemplate()
returns the TemplateSegment used to build the Segment |
TemplateSegmentContainer |
getTemplateSegmentContainer()
return segment container template |
java.lang.String |
getXMLTag()
returns the xml tag field |
boolean |
isUsed()
returns the used indicator |
void |
setParent(IContainedObject inParent)
sets parent attribute |
java.lang.String |
toString()
the toString method |
void |
useDefault()
sets the default value for the data elements part of Extended Edition package will create mandatory subsegments. |
boolean |
validate(DocumentErrors inDErr)
validates if the container is defined correctly doesn't throw exception, places error messages in DocumentErrors object |
void |
writeFixedLengthFormattedText(java.io.Writer inWriter)
returns fixed length formatted text |
void |
writeFormattedText(java.io.Writer inWriter,
int formatType)
writes a formatted text |
| Methods inherited from class com.americancoders.edi.LoopAndSegmentContainer |
addLoop, addLoopToVector, continueParse, createLoop, defineContainer, doYouWantThisNode, doYouWantThisSegment, getContainerSize, getCount, getCount, getLoop, getLoop, getLoop, getLoop, getLoopAndSegmentCount, getLoopByDataElementValue, getLoopCount, getLoopCount, getSegmentCount, getSegmentCount, getTemplateLoopContainer, getVector, isLoop, isLoop, isNull, isVector, parse, parse, parse, removeLoop, removeLoop, removeLoop, removeLoop, setLoopAt, setLoopAt, setTemplateLoopContainer, trim, validate, whyNotUsed |
| Methods inherited from class com.americancoders.edi.SegmentContainer |
addSegment, addSegment, addSegment, addSegmentToVector, createSegment, equivalentSegments, getSegment, getSegment, getSegment, getSegment, getSegment, getSegment, getSegmentByDataElementValue, getSegmentCount, isSegment, isSegment, removeSegment, removeSegment, removeSegment, removeSegment, resetToFirstEquivalentSegment, setSegmentAt, setSegmentAt |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected TemplateLoop myTemplate
protected IContainedObject parent
| Constructor Detail |
public Loop(TemplateLoop inTemplateLoop,
IContainedObject inParent)
throws OBOEException
inTemplateLoop - predefined TemplatoopinParent - owning Object
OBOEException - unknown Segment| Method Detail |
public TemplateLoop getTemplate()
public java.lang.String getID()
getID in interface IIdentifiergetID in class SegmentContainerpublic java.lang.String getName()
public int getOccurs()
public char getRequired()
public java.lang.String getXMLTag()
public boolean isUsed()
public Segment createSegment(java.lang.String ID)
throws OBOEException
createSegment in interface ISegmentContainercreateSegment in class SegmentContainerID - String
OBOEException - as thrownpublic int getSegmentSize()
public java.lang.String getFormattedText(int formatType)
formatType - int indicating x12, edificact...
public java.lang.String getFixedLengthFormattedText()
public void writeFormattedText(java.io.Writer inWriter,
int formatType)
throws java.io.IOException
inWriter - writer objectformatType - int indicating x12, edificact...
java.io.IOException
public void writeFixedLengthFormattedText(java.io.Writer inWriter)
throws java.io.IOException
java.io.IOExceptionpublic java.lang.String get()
public void setParent(IContainedObject inParent)
inParent - TemplateSegmentContainerpublic void useDefault()
public boolean validate(DocumentErrors inDErr)
LoopAndSegmentContainer
validate in class LoopAndSegmentContainerpublic IContainedObject getParent()
public java.lang.String toString()
public TemplateSegmentContainer getTemplateSegmentContainer()
ISegmentContainer
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 | ||||||||||