org.milyn.edi.unedifact.d09b.CONITT.SegmentGroup32 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d09b.CONITT;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d09b.common.ALCAllowanceOrCharge;
import org.milyn.edi.unedifact.d09b.common.RFFReference;
import org.milyn.edi.unedifact.d09b.common.DTMDateTimePeriod;
import org.milyn.edi.unedifact.d09b.common.RNGRangeDetails;
import java.util.List;
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 SegmentGroup32 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private ALCAllowanceOrCharge aLCAllowanceOrCharge;
private RFFReference rFFReference;
private DTMDateTimePeriod dTMDateTimePeriod;
private RNGRangeDetails rNGRangeDetails;
private List fTXFreeText;
private List segmentGroup33;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(aLCAllowanceOrCharge != null) {
nodeWriter.write("ALC");
nodeWriter.write(delimiters.getField());
aLCAllowanceOrCharge.write(nodeWriter, delimiters);
}
if(rFFReference != null) {
nodeWriter.write("RFF");
nodeWriter.write(delimiters.getField());
rFFReference.write(nodeWriter, delimiters);
}
if(dTMDateTimePeriod != null) {
nodeWriter.write("DTM");
nodeWriter.write(delimiters.getField());
dTMDateTimePeriod.write(nodeWriter, delimiters);
}
if(rNGRangeDetails != null) {
nodeWriter.write("RNG");
nodeWriter.write(delimiters.getField());
rNGRangeDetails.write(nodeWriter, delimiters);
}
if(fTXFreeText != null && !fTXFreeText.isEmpty()) {
for(FTXFreeText fTXFreeTextInst : fTXFreeText) {
nodeWriter.write("FTX");
nodeWriter.write(delimiters.getField());
fTXFreeTextInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup33 != null && !segmentGroup33.isEmpty()) {
for(SegmentGroup33 segmentGroup33Inst : segmentGroup33) {
segmentGroup33Inst.write(nodeWriter, delimiters);
}
}
}
public ALCAllowanceOrCharge getALCAllowanceOrCharge() {
return aLCAllowanceOrCharge;
}
public SegmentGroup32 setALCAllowanceOrCharge(ALCAllowanceOrCharge aLCAllowanceOrCharge) {
this.aLCAllowanceOrCharge = aLCAllowanceOrCharge; return this;
}
public RFFReference getRFFReference() {
return rFFReference;
}
public SegmentGroup32 setRFFReference(RFFReference rFFReference) {
this.rFFReference = rFFReference; return this;
}
public DTMDateTimePeriod getDTMDateTimePeriod() {
return dTMDateTimePeriod;
}
public SegmentGroup32 setDTMDateTimePeriod(DTMDateTimePeriod dTMDateTimePeriod) {
this.dTMDateTimePeriod = dTMDateTimePeriod; return this;
}
public RNGRangeDetails getRNGRangeDetails() {
return rNGRangeDetails;
}
public SegmentGroup32 setRNGRangeDetails(RNGRangeDetails rNGRangeDetails) {
this.rNGRangeDetails = rNGRangeDetails; return this;
}
public List getFTXFreeText() {
return fTXFreeText;
}
public SegmentGroup32 setFTXFreeText(List fTXFreeText) {
this.fTXFreeText = fTXFreeText; return this;
}
public List getSegmentGroup33() {
return segmentGroup33;
}
public SegmentGroup32 setSegmentGroup33(List segmentGroup33) {
this.segmentGroup33 = segmentGroup33; return this;
}
}