org.milyn.edi.unedifact.d06b.IFTRIN.SegmentGroup6 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d06b.IFTRIN;
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.EQNNumberOfUnits;
import org.milyn.edi.unedifact.d06b.common.PCDPercentageDetails;
import org.milyn.edi.unedifact.d06b.common.QTYQuantity;
import org.milyn.edi.unedifact.d06b.common.PRIPriceDetails;
import org.milyn.edi.unedifact.d06b.common.MOAMonetaryAmount;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup6 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private TCCChargeRateCalculations tCCChargeRateCalculations;
private List eQNNumberOfUnits;
private List pCDPercentageDetails;
private List qTYQuantity;
private List pRIPriceDetails;
private List mOAMonetaryAmount;
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(eQNNumberOfUnits != null && !eQNNumberOfUnits.isEmpty()) {
for(EQNNumberOfUnits eQNNumberOfUnitsInst : eQNNumberOfUnits) {
nodeWriter.write("EQN");
nodeWriter.write(delimiters.getField());
eQNNumberOfUnitsInst.write(nodeWriter, delimiters);
}
}
if(pCDPercentageDetails != null && !pCDPercentageDetails.isEmpty()) {
for(PCDPercentageDetails pCDPercentageDetailsInst : pCDPercentageDetails) {
nodeWriter.write("PCD");
nodeWriter.write(delimiters.getField());
pCDPercentageDetailsInst.write(nodeWriter, delimiters);
}
}
if(qTYQuantity != null && !qTYQuantity.isEmpty()) {
for(QTYQuantity qTYQuantityInst : qTYQuantity) {
nodeWriter.write("QTY");
nodeWriter.write(delimiters.getField());
qTYQuantityInst.write(nodeWriter, delimiters);
}
}
if(pRIPriceDetails != null && !pRIPriceDetails.isEmpty()) {
for(PRIPriceDetails pRIPriceDetailsInst : pRIPriceDetails) {
nodeWriter.write("PRI");
nodeWriter.write(delimiters.getField());
pRIPriceDetailsInst.write(nodeWriter, delimiters);
}
}
if(mOAMonetaryAmount != null && !mOAMonetaryAmount.isEmpty()) {
for(MOAMonetaryAmount mOAMonetaryAmountInst : mOAMonetaryAmount) {
nodeWriter.write("MOA");
nodeWriter.write(delimiters.getField());
mOAMonetaryAmountInst.write(nodeWriter, delimiters);
}
}
}
public TCCChargeRateCalculations getTCCChargeRateCalculations() {
return tCCChargeRateCalculations;
}
public SegmentGroup6 setTCCChargeRateCalculations(TCCChargeRateCalculations tCCChargeRateCalculations) {
this.tCCChargeRateCalculations = tCCChargeRateCalculations; return this;
}
public List getEQNNumberOfUnits() {
return eQNNumberOfUnits;
}
public SegmentGroup6 setEQNNumberOfUnits(List eQNNumberOfUnits) {
this.eQNNumberOfUnits = eQNNumberOfUnits; return this;
}
public List getPCDPercentageDetails() {
return pCDPercentageDetails;
}
public SegmentGroup6 setPCDPercentageDetails(List pCDPercentageDetails) {
this.pCDPercentageDetails = pCDPercentageDetails; return this;
}
public List getQTYQuantity() {
return qTYQuantity;
}
public SegmentGroup6 setQTYQuantity(List qTYQuantity) {
this.qTYQuantity = qTYQuantity; return this;
}
public List getPRIPriceDetails() {
return pRIPriceDetails;
}
public SegmentGroup6 setPRIPriceDetails(List pRIPriceDetails) {
this.pRIPriceDetails = pRIPriceDetails; return this;
}
public List getMOAMonetaryAmount() {
return mOAMonetaryAmount;
}
public SegmentGroup6 setMOAMonetaryAmount(List mOAMonetaryAmount) {
this.mOAMonetaryAmount = mOAMonetaryAmount; return this;
}
}