org.milyn.edi.unedifact.d02a.CNTCND.SegmentGroup25 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d02a.CNTCND;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d02a.common.GISGeneralIndicator;
import java.util.List;
import org.milyn.edi.unedifact.d02a.common.RTERateDetails;
import org.milyn.edi.unedifact.d02a.common.MOAMonetaryAmount;
import org.milyn.edi.unedifact.d02a.common.TAXDutyTaxFeeDetails;
import org.milyn.edi.unedifact.d02a.common.PCDPercentageDetails;
import org.milyn.edi.unedifact.d02a.common.DTMDateTimePeriod;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup25 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private GISGeneralIndicator gISGeneralIndicator;
private List rTERateDetails;
private List mOAMonetaryAmount;
private List tAXDutyTaxFeeDetails;
private List pCDPercentageDetails;
private List dTMDateTimePeriod;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(gISGeneralIndicator != null) {
nodeWriter.write("GIS");
nodeWriter.write(delimiters.getField());
gISGeneralIndicator.write(nodeWriter, delimiters);
}
if(rTERateDetails != null && !rTERateDetails.isEmpty()) {
for(RTERateDetails rTERateDetailsInst : rTERateDetails) {
nodeWriter.write("RTE");
nodeWriter.write(delimiters.getField());
rTERateDetailsInst.write(nodeWriter, delimiters);
}
}
if(mOAMonetaryAmount != null && !mOAMonetaryAmount.isEmpty()) {
for(MOAMonetaryAmount mOAMonetaryAmountInst : mOAMonetaryAmount) {
nodeWriter.write("MOA");
nodeWriter.write(delimiters.getField());
mOAMonetaryAmountInst.write(nodeWriter, delimiters);
}
}
if(tAXDutyTaxFeeDetails != null && !tAXDutyTaxFeeDetails.isEmpty()) {
for(TAXDutyTaxFeeDetails tAXDutyTaxFeeDetailsInst : tAXDutyTaxFeeDetails) {
nodeWriter.write("TAX");
nodeWriter.write(delimiters.getField());
tAXDutyTaxFeeDetailsInst.write(nodeWriter, delimiters);
}
}
if(pCDPercentageDetails != null && !pCDPercentageDetails.isEmpty()) {
for(PCDPercentageDetails pCDPercentageDetailsInst : pCDPercentageDetails) {
nodeWriter.write("PCD");
nodeWriter.write(delimiters.getField());
pCDPercentageDetailsInst.write(nodeWriter, delimiters);
}
}
if(dTMDateTimePeriod != null && !dTMDateTimePeriod.isEmpty()) {
for(DTMDateTimePeriod dTMDateTimePeriodInst : dTMDateTimePeriod) {
nodeWriter.write("DTM");
nodeWriter.write(delimiters.getField());
dTMDateTimePeriodInst.write(nodeWriter, delimiters);
}
}
}
public GISGeneralIndicator getGISGeneralIndicator() {
return gISGeneralIndicator;
}
public SegmentGroup25 setGISGeneralIndicator(GISGeneralIndicator gISGeneralIndicator) {
this.gISGeneralIndicator = gISGeneralIndicator; return this;
}
public List getRTERateDetails() {
return rTERateDetails;
}
public SegmentGroup25 setRTERateDetails(List rTERateDetails) {
this.rTERateDetails = rTERateDetails; return this;
}
public List getMOAMonetaryAmount() {
return mOAMonetaryAmount;
}
public SegmentGroup25 setMOAMonetaryAmount(List mOAMonetaryAmount) {
this.mOAMonetaryAmount = mOAMonetaryAmount; return this;
}
public List getTAXDutyTaxFeeDetails() {
return tAXDutyTaxFeeDetails;
}
public SegmentGroup25 setTAXDutyTaxFeeDetails(List tAXDutyTaxFeeDetails) {
this.tAXDutyTaxFeeDetails = tAXDutyTaxFeeDetails; return this;
}
public List getPCDPercentageDetails() {
return pCDPercentageDetails;
}
public SegmentGroup25 setPCDPercentageDetails(List pCDPercentageDetails) {
this.pCDPercentageDetails = pCDPercentageDetails; return this;
}
public List getDTMDateTimePeriod() {
return dTMDateTimePeriod;
}
public SegmentGroup25 setDTMDateTimePeriod(List dTMDateTimePeriod) {
this.dTMDateTimePeriod = dTMDateTimePeriod; return this;
}
}