org.milyn.edi.unedifact.d02a.CUSDEC.SegmentGroup23 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d02a.CUSDEC;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d02a.common.ALCAllowanceOrCharge;
import org.milyn.edi.unedifact.d02a.common.RTERateDetails;
import org.milyn.edi.unedifact.d02a.common.MOAMonetaryAmount;
import org.milyn.edi.unedifact.d02a.common.PCDPercentageDetails;
import org.milyn.edi.unedifact.d02a.common.QTYQuantity;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup23 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 SegmentGroup24 segmentGroup24;
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(segmentGroup24 != null) {
segmentGroup24.write(nodeWriter, delimiters);
}
}
public ALCAllowanceOrCharge getALCAllowanceOrCharge() {
return aLCAllowanceOrCharge;
}
public SegmentGroup23 setALCAllowanceOrCharge(ALCAllowanceOrCharge aLCAllowanceOrCharge) {
this.aLCAllowanceOrCharge = aLCAllowanceOrCharge; return this;
}
public RTERateDetails getRTERateDetails() {
return rTERateDetails;
}
public SegmentGroup23 setRTERateDetails(RTERateDetails rTERateDetails) {
this.rTERateDetails = rTERateDetails; return this;
}
public MOAMonetaryAmount getMOAMonetaryAmount() {
return mOAMonetaryAmount;
}
public SegmentGroup23 setMOAMonetaryAmount(MOAMonetaryAmount mOAMonetaryAmount) {
this.mOAMonetaryAmount = mOAMonetaryAmount; return this;
}
public PCDPercentageDetails getPCDPercentageDetails() {
return pCDPercentageDetails;
}
public SegmentGroup23 setPCDPercentageDetails(PCDPercentageDetails pCDPercentageDetails) {
this.pCDPercentageDetails = pCDPercentageDetails; return this;
}
public QTYQuantity getQTYQuantity() {
return qTYQuantity;
}
public SegmentGroup23 setQTYQuantity(QTYQuantity qTYQuantity) {
this.qTYQuantity = qTYQuantity; return this;
}
public SegmentGroup24 getSegmentGroup24() {
return segmentGroup24;
}
public SegmentGroup23 setSegmentGroup24(SegmentGroup24 segmentGroup24) {
this.segmentGroup24 = segmentGroup24; return this;
}
}