org.milyn.edi.unedifact.d11b.CUSDEC.SegmentGroup24 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d11b.CUSDEC;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d11b.common.ALCAllowanceOrCharge;
import org.milyn.edi.unedifact.d11b.common.RTERateDetails;
import org.milyn.edi.unedifact.d11b.common.MOAMonetaryAmount;
import org.milyn.edi.unedifact.d11b.common.PCDPercentageDetails;
import org.milyn.edi.unedifact.d11b.common.QTYQuantity;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup24 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private ALCAllowanceOrCharge aLCAllowanceOrCharge;
private RTERateDetails rTERateDetails;
private MOAMonetaryAmount mOAMonetaryAmount;
private PCDPercentageDetails pCDPercentageDetails;
private QTYQuantity qTYQuantity;
private SegmentGroup25 segmentGroup25;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(aLCAllowanceOrCharge != null) {
nodeWriter.write("ALC");
nodeWriter.write(delimiters.getField());
aLCAllowanceOrCharge.write(nodeWriter, delimiters);
}
if(rTERateDetails != null) {
nodeWriter.write("RTE");
nodeWriter.write(delimiters.getField());
rTERateDetails.write(nodeWriter, delimiters);
}
if(mOAMonetaryAmount != null) {
nodeWriter.write("MOA");
nodeWriter.write(delimiters.getField());
mOAMonetaryAmount.write(nodeWriter, delimiters);
}
if(pCDPercentageDetails != null) {
nodeWriter.write("PCD");
nodeWriter.write(delimiters.getField());
pCDPercentageDetails.write(nodeWriter, delimiters);
}
if(qTYQuantity != null) {
nodeWriter.write("QTY");
nodeWriter.write(delimiters.getField());
qTYQuantity.write(nodeWriter, delimiters);
}
if(segmentGroup25 != null) {
segmentGroup25.write(nodeWriter, delimiters);
}
}
public ALCAllowanceOrCharge getALCAllowanceOrCharge() {
return aLCAllowanceOrCharge;
}
public SegmentGroup24 setALCAllowanceOrCharge(ALCAllowanceOrCharge aLCAllowanceOrCharge) {
this.aLCAllowanceOrCharge = aLCAllowanceOrCharge; return this;
}
public RTERateDetails getRTERateDetails() {
return rTERateDetails;
}
public SegmentGroup24 setRTERateDetails(RTERateDetails rTERateDetails) {
this.rTERateDetails = rTERateDetails; return this;
}
public MOAMonetaryAmount getMOAMonetaryAmount() {
return mOAMonetaryAmount;
}
public SegmentGroup24 setMOAMonetaryAmount(MOAMonetaryAmount mOAMonetaryAmount) {
this.mOAMonetaryAmount = mOAMonetaryAmount; return this;
}
public PCDPercentageDetails getPCDPercentageDetails() {
return pCDPercentageDetails;
}
public SegmentGroup24 setPCDPercentageDetails(PCDPercentageDetails pCDPercentageDetails) {
this.pCDPercentageDetails = pCDPercentageDetails; return this;
}
public QTYQuantity getQTYQuantity() {
return qTYQuantity;
}
public SegmentGroup24 setQTYQuantity(QTYQuantity qTYQuantity) {
this.qTYQuantity = qTYQuantity; return this;
}
public SegmentGroup25 getSegmentGroup25() {
return segmentGroup25;
}
public SegmentGroup24 setSegmentGroup25(SegmentGroup25 segmentGroup25) {
this.segmentGroup25 = segmentGroup25; return this;
}
}