org.milyn.edi.unedifact.d99b.RESMSG.SegmentGroup14 Maven / Gradle / Ivy
The newest version!
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d99b.RESMSG;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d99b.common.RCSRequirementsAndConditions;
import java.util.List;
import org.milyn.edi.unedifact.d99b.common.MOAMonetaryAmount;
import org.milyn.edi.unedifact.d99b.common.RFFReference;
import org.milyn.edi.unedifact.d99b.common.FTXFreeText;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup14 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private RCSRequirementsAndConditions rCSRequirementsAndConditions;
private List mOAMonetaryAmount;
private List rFFReference;
private FTXFreeText fTXFreeText;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(rCSRequirementsAndConditions != null) {
nodeWriter.write("RCS");
nodeWriter.write(delimiters.getField());
rCSRequirementsAndConditions.write(nodeWriter, delimiters);
}
if(mOAMonetaryAmount != null && !mOAMonetaryAmount.isEmpty()) {
for(MOAMonetaryAmount mOAMonetaryAmountInst : mOAMonetaryAmount) {
nodeWriter.write("MOA");
nodeWriter.write(delimiters.getField());
mOAMonetaryAmountInst.write(nodeWriter, delimiters);
}
}
if(rFFReference != null && !rFFReference.isEmpty()) {
for(RFFReference rFFReferenceInst : rFFReference) {
nodeWriter.write("RFF");
nodeWriter.write(delimiters.getField());
rFFReferenceInst.write(nodeWriter, delimiters);
}
}
if(fTXFreeText != null) {
nodeWriter.write("FTX");
nodeWriter.write(delimiters.getField());
fTXFreeText.write(nodeWriter, delimiters);
}
}
public RCSRequirementsAndConditions getRCSRequirementsAndConditions() {
return rCSRequirementsAndConditions;
}
public SegmentGroup14 setRCSRequirementsAndConditions(RCSRequirementsAndConditions rCSRequirementsAndConditions) {
this.rCSRequirementsAndConditions = rCSRequirementsAndConditions; return this;
}
public List getMOAMonetaryAmount() {
return mOAMonetaryAmount;
}
public SegmentGroup14 setMOAMonetaryAmount(List mOAMonetaryAmount) {
this.mOAMonetaryAmount = mOAMonetaryAmount; return this;
}
public List getRFFReference() {
return rFFReference;
}
public SegmentGroup14 setRFFReference(List rFFReference) {
this.rFFReference = rFFReference; return this;
}
public FTXFreeText getFTXFreeText() {
return fTXFreeText;
}
public SegmentGroup14 setFTXFreeText(FTXFreeText fTXFreeText) {
this.fTXFreeText = fTXFreeText; return this;
}
}