org.milyn.edi.unedifact.d09b.LREACT.SegmentGroup1 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d09b.LREACT;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d09b.common.GEIProcessingInformation;
import java.util.List;
import org.milyn.edi.unedifact.d09b.common.RFFReference;
import org.milyn.edi.unedifact.d09b.common.ATTAttribute;
import org.milyn.edi.unedifact.d09b.common.DTMDateTimePeriod;
import org.milyn.edi.unedifact.d09b.common.FTXFreeText;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup1 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private GEIProcessingInformation gEIProcessingInformation;
private List rFFReference;
private List aTTAttribute;
private List dTMDateTimePeriod;
private FTXFreeText fTXFreeText;
private SegmentGroup2 segmentGroup2;
private SegmentGroup3 segmentGroup3;
private SegmentGroup4 segmentGroup4;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(gEIProcessingInformation != null) {
nodeWriter.write("GEI");
nodeWriter.write(delimiters.getField());
gEIProcessingInformation.write(nodeWriter, delimiters);
}
if(rFFReference != null && !rFFReference.isEmpty()) {
for(RFFReference rFFReferenceInst : rFFReference) {
nodeWriter.write("RFF");
nodeWriter.write(delimiters.getField());
rFFReferenceInst.write(nodeWriter, delimiters);
}
}
if(aTTAttribute != null && !aTTAttribute.isEmpty()) {
for(ATTAttribute aTTAttributeInst : aTTAttribute) {
nodeWriter.write("ATT");
nodeWriter.write(delimiters.getField());
aTTAttributeInst.write(nodeWriter, delimiters);
}
}
if(dTMDateTimePeriod != null && !dTMDateTimePeriod.isEmpty()) {
for(DTMDateTimePeriod dTMDateTimePeriodInst : dTMDateTimePeriod) {
nodeWriter.write("DTM");
nodeWriter.write(delimiters.getField());
dTMDateTimePeriodInst.write(nodeWriter, delimiters);
}
}
if(fTXFreeText != null) {
nodeWriter.write("FTX");
nodeWriter.write(delimiters.getField());
fTXFreeText.write(nodeWriter, delimiters);
}
if(segmentGroup2 != null) {
segmentGroup2.write(nodeWriter, delimiters);
}
if(segmentGroup3 != null) {
segmentGroup3.write(nodeWriter, delimiters);
}
if(segmentGroup4 != null) {
segmentGroup4.write(nodeWriter, delimiters);
}
}
public GEIProcessingInformation getGEIProcessingInformation() {
return gEIProcessingInformation;
}
public SegmentGroup1 setGEIProcessingInformation(GEIProcessingInformation gEIProcessingInformation) {
this.gEIProcessingInformation = gEIProcessingInformation; return this;
}
public List getRFFReference() {
return rFFReference;
}
public SegmentGroup1 setRFFReference(List rFFReference) {
this.rFFReference = rFFReference; return this;
}
public List getATTAttribute() {
return aTTAttribute;
}
public SegmentGroup1 setATTAttribute(List aTTAttribute) {
this.aTTAttribute = aTTAttribute; return this;
}
public List getDTMDateTimePeriod() {
return dTMDateTimePeriod;
}
public SegmentGroup1 setDTMDateTimePeriod(List dTMDateTimePeriod) {
this.dTMDateTimePeriod = dTMDateTimePeriod; return this;
}
public FTXFreeText getFTXFreeText() {
return fTXFreeText;
}
public SegmentGroup1 setFTXFreeText(FTXFreeText fTXFreeText) {
this.fTXFreeText = fTXFreeText; return this;
}
public SegmentGroup2 getSegmentGroup2() {
return segmentGroup2;
}
public SegmentGroup1 setSegmentGroup2(SegmentGroup2 segmentGroup2) {
this.segmentGroup2 = segmentGroup2; return this;
}
public SegmentGroup3 getSegmentGroup3() {
return segmentGroup3;
}
public SegmentGroup1 setSegmentGroup3(SegmentGroup3 segmentGroup3) {
this.segmentGroup3 = segmentGroup3; return this;
}
public SegmentGroup4 getSegmentGroup4() {
return segmentGroup4;
}
public SegmentGroup1 setSegmentGroup4(SegmentGroup4 segmentGroup4) {
this.segmentGroup4 = segmentGroup4; return this;
}
}