org.milyn.edi.unedifact.d97a.REBORD.SegmentGroup7 Maven / Gradle / Ivy
The newest version!
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d97a.REBORD;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d97a.common.MOAMonetaryAmount;
import java.util.List;
import org.milyn.edi.unedifact.d97a.common.PCDPercentageDetails;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup7 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private MOAMonetaryAmount mOAMonetaryAmount;
private List segmentGroup8;
private List pCDPercentageDetails;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(mOAMonetaryAmount != null) {
nodeWriter.write("MOA");
nodeWriter.write(delimiters.getField());
mOAMonetaryAmount.write(nodeWriter, delimiters);
}
if(segmentGroup8 != null && !segmentGroup8.isEmpty()) {
for(SegmentGroup8 segmentGroup8Inst : segmentGroup8) {
segmentGroup8Inst.write(nodeWriter, delimiters);
}
}
if(pCDPercentageDetails != null && !pCDPercentageDetails.isEmpty()) {
for(PCDPercentageDetails pCDPercentageDetailsInst : pCDPercentageDetails) {
nodeWriter.write("PCD");
nodeWriter.write(delimiters.getField());
pCDPercentageDetailsInst.write(nodeWriter, delimiters);
}
}
}
public MOAMonetaryAmount getMOAMonetaryAmount() {
return mOAMonetaryAmount;
}
public SegmentGroup7 setMOAMonetaryAmount(MOAMonetaryAmount mOAMonetaryAmount) {
this.mOAMonetaryAmount = mOAMonetaryAmount; return this;
}
public List getSegmentGroup8() {
return segmentGroup8;
}
public SegmentGroup7 setSegmentGroup8(List segmentGroup8) {
this.segmentGroup8 = segmentGroup8; return this;
}
public List getPCDPercentageDetails() {
return pCDPercentageDetails;
}
public SegmentGroup7 setPCDPercentageDetails(List pCDPercentageDetails) {
this.pCDPercentageDetails = pCDPercentageDetails; return this;
}
}