org.milyn.edi.unedifact.d07a.CNTCND.SegmentGroup25 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d07a.CNTCND;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d07a.common.GEIProcessingInformation;
import java.util.List;
import org.milyn.edi.unedifact.d07a.common.RTERateDetails;
import org.milyn.edi.unedifact.d07a.common.MOAMonetaryAmount;
import org.milyn.edi.unedifact.d07a.common.TAXDutyTaxFeeDetails;
import org.milyn.edi.unedifact.d07a.common.PCDPercentageDetails;
import org.milyn.edi.unedifact.d07a.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 GEIProcessingInformation gEIProcessingInformation;
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(gEIProcessingInformation != null) {
nodeWriter.write("GEI");
nodeWriter.write(delimiters.getField());
gEIProcessingInformation.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 GEIProcessingInformation getGEIProcessingInformation() {
return gEIProcessingInformation;
}
public SegmentGroup25 setGEIProcessingInformation(GEIProcessingInformation gEIProcessingInformation) {
this.gEIProcessingInformation = gEIProcessingInformation; 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;
}
}