org.milyn.edi.unedifact.d02a.MEDRUC.SegmentGroup23 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d02a.MEDRUC;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d02a.common.TCCChargeRateCalculations;
import org.milyn.edi.unedifact.d02a.common.GISGeneralIndicator;
import java.util.List;
import org.milyn.edi.unedifact.d02a.common.IMDItemDescription;
import org.milyn.edi.unedifact.d02a.common.DTMDateTimePeriod;
import org.milyn.edi.unedifact.d02a.common.RFFReference;
import org.milyn.edi.unedifact.d02a.common.FTXFreeText;
import org.milyn.edi.unedifact.d02a.common.QTYQuantity;
import org.milyn.edi.unedifact.d02a.common.PCDPercentageDetails;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup23 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private TCCChargeRateCalculations tCCChargeRateCalculations;
private GISGeneralIndicator gISGeneralIndicator;
private List iMDItemDescription;
private List dTMDateTimePeriod;
private List rFFReference;
private List fTXFreeText;
private List qTYQuantity;
private List pCDPercentageDetails;
private List segmentGroup24;
private List segmentGroup25;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(tCCChargeRateCalculations != null) {
nodeWriter.write("TCC");
nodeWriter.write(delimiters.getField());
tCCChargeRateCalculations.write(nodeWriter, delimiters);
}
if(gISGeneralIndicator != null) {
nodeWriter.write("GIS");
nodeWriter.write(delimiters.getField());
gISGeneralIndicator.write(nodeWriter, delimiters);
}
if(iMDItemDescription != null && !iMDItemDescription.isEmpty()) {
for(IMDItemDescription iMDItemDescriptionInst : iMDItemDescription) {
nodeWriter.write("IMD");
nodeWriter.write(delimiters.getField());
iMDItemDescriptionInst.write(nodeWriter, delimiters);
}
}
if(dTMDateTimePeriod != null && !dTMDateTimePeriod.isEmpty()) {
for(DTMDateTimePeriod dTMDateTimePeriodInst : dTMDateTimePeriod) {
nodeWriter.write("DTM");
nodeWriter.write(delimiters.getField());
dTMDateTimePeriodInst.write(nodeWriter, delimiters);
}
}
if(rFFReference != null && !rFFReference.isEmpty()) {
for(RFFReference rFFReferenceInst : rFFReference) {
nodeWriter.write("RFF");
nodeWriter.write(delimiters.getField());
rFFReferenceInst.write(nodeWriter, delimiters);
}
}
if(fTXFreeText != null && !fTXFreeText.isEmpty()) {
for(FTXFreeText fTXFreeTextInst : fTXFreeText) {
nodeWriter.write("FTX");
nodeWriter.write(delimiters.getField());
fTXFreeTextInst.write(nodeWriter, delimiters);
}
}
if(qTYQuantity != null && !qTYQuantity.isEmpty()) {
for(QTYQuantity qTYQuantityInst : qTYQuantity) {
nodeWriter.write("QTY");
nodeWriter.write(delimiters.getField());
qTYQuantityInst.write(nodeWriter, delimiters);
}
}
if(pCDPercentageDetails != null && !pCDPercentageDetails.isEmpty()) {
for(PCDPercentageDetails pCDPercentageDetailsInst : pCDPercentageDetails) {
nodeWriter.write("PCD");
nodeWriter.write(delimiters.getField());
pCDPercentageDetailsInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup24 != null && !segmentGroup24.isEmpty()) {
for(SegmentGroup24 segmentGroup24Inst : segmentGroup24) {
segmentGroup24Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup25 != null && !segmentGroup25.isEmpty()) {
for(SegmentGroup25 segmentGroup25Inst : segmentGroup25) {
segmentGroup25Inst.write(nodeWriter, delimiters);
}
}
}
public TCCChargeRateCalculations getTCCChargeRateCalculations() {
return tCCChargeRateCalculations;
}
public SegmentGroup23 setTCCChargeRateCalculations(TCCChargeRateCalculations tCCChargeRateCalculations) {
this.tCCChargeRateCalculations = tCCChargeRateCalculations; return this;
}
public GISGeneralIndicator getGISGeneralIndicator() {
return gISGeneralIndicator;
}
public SegmentGroup23 setGISGeneralIndicator(GISGeneralIndicator gISGeneralIndicator) {
this.gISGeneralIndicator = gISGeneralIndicator; return this;
}
public List getIMDItemDescription() {
return iMDItemDescription;
}
public SegmentGroup23 setIMDItemDescription(List iMDItemDescription) {
this.iMDItemDescription = iMDItemDescription; return this;
}
public List getDTMDateTimePeriod() {
return dTMDateTimePeriod;
}
public SegmentGroup23 setDTMDateTimePeriod(List dTMDateTimePeriod) {
this.dTMDateTimePeriod = dTMDateTimePeriod; return this;
}
public List getRFFReference() {
return rFFReference;
}
public SegmentGroup23 setRFFReference(List rFFReference) {
this.rFFReference = rFFReference; return this;
}
public List getFTXFreeText() {
return fTXFreeText;
}
public SegmentGroup23 setFTXFreeText(List fTXFreeText) {
this.fTXFreeText = fTXFreeText; return this;
}
public List getQTYQuantity() {
return qTYQuantity;
}
public SegmentGroup23 setQTYQuantity(List qTYQuantity) {
this.qTYQuantity = qTYQuantity; return this;
}
public List getPCDPercentageDetails() {
return pCDPercentageDetails;
}
public SegmentGroup23 setPCDPercentageDetails(List pCDPercentageDetails) {
this.pCDPercentageDetails = pCDPercentageDetails; return this;
}
public List getSegmentGroup24() {
return segmentGroup24;
}
public SegmentGroup23 setSegmentGroup24(List segmentGroup24) {
this.segmentGroup24 = segmentGroup24; return this;
}
public List getSegmentGroup25() {
return segmentGroup25;
}
public SegmentGroup23 setSegmentGroup25(List segmentGroup25) {
this.segmentGroup25 = segmentGroup25; return this;
}
}