org.milyn.edi.unedifact.d99b.IFTRIN.SegmentGroup6 Maven / Gradle / Ivy
The newest version!
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d99b.IFTRIN;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d99b.common.TCCTransportChargeRateCalculations;
import java.util.List;
import org.milyn.edi.unedifact.d99b.common.EQNNumberOfUnits;
import org.milyn.edi.unedifact.d99b.common.PCDPercentageDetails;
import org.milyn.edi.unedifact.d99b.common.QTYQuantity;
import org.milyn.edi.unedifact.d99b.common.PRIPriceDetails;
import org.milyn.edi.unedifact.d99b.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 TCCTransportChargeRateCalculations tCCTransportChargeRateCalculations;
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(tCCTransportChargeRateCalculations != null) {
nodeWriter.write("TCC");
nodeWriter.write(delimiters.getField());
tCCTransportChargeRateCalculations.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 TCCTransportChargeRateCalculations getTCCTransportChargeRateCalculations() {
return tCCTransportChargeRateCalculations;
}
public SegmentGroup6 setTCCTransportChargeRateCalculations(TCCTransportChargeRateCalculations tCCTransportChargeRateCalculations) {
this.tCCTransportChargeRateCalculations = tCCTransportChargeRateCalculations; 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;
}
}