org.milyn.edi.unedifact.d06b.IFTMCA.SegmentGroup11 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d06b.IFTMCA;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d06b.common.TCCChargeRateCalculations;
import java.util.List;
import org.milyn.edi.unedifact.d06b.common.MOAMonetaryAmount;
import org.milyn.edi.unedifact.d06b.common.PCDPercentageDetails;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup11 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private TCCChargeRateCalculations tCCChargeRateCalculations;
private List mOAMonetaryAmount;
private PCDPercentageDetails pCDPercentageDetails;
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(mOAMonetaryAmount != null && !mOAMonetaryAmount.isEmpty()) {
for(MOAMonetaryAmount mOAMonetaryAmountInst : mOAMonetaryAmount) {
nodeWriter.write("MOA");
nodeWriter.write(delimiters.getField());
mOAMonetaryAmountInst.write(nodeWriter, delimiters);
}
}
if(pCDPercentageDetails != null) {
nodeWriter.write("PCD");
nodeWriter.write(delimiters.getField());
pCDPercentageDetails.write(nodeWriter, delimiters);
}
}
public TCCChargeRateCalculations getTCCChargeRateCalculations() {
return tCCChargeRateCalculations;
}
public SegmentGroup11 setTCCChargeRateCalculations(TCCChargeRateCalculations tCCChargeRateCalculations) {
this.tCCChargeRateCalculations = tCCChargeRateCalculations; return this;
}
public List getMOAMonetaryAmount() {
return mOAMonetaryAmount;
}
public SegmentGroup11 setMOAMonetaryAmount(List mOAMonetaryAmount) {
this.mOAMonetaryAmount = mOAMonetaryAmount; return this;
}
public PCDPercentageDetails getPCDPercentageDetails() {
return pCDPercentageDetails;
}
public SegmentGroup11 setPCDPercentageDetails(PCDPercentageDetails pCDPercentageDetails) {
this.pCDPercentageDetails = pCDPercentageDetails; return this;
}
}