org.milyn.edi.unedifact.d05a.CUSRES.SegmentGroup14 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d05a.CUSRES;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d05a.common.ERPErrorPointDetails;
import java.util.List;
import org.milyn.edi.unedifact.d05a.common.RFFReference;
import org.milyn.edi.unedifact.d05a.common.ERCApplicationErrorInformation;
import org.milyn.edi.unedifact.d05a.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 ERPErrorPointDetails eRPErrorPointDetails;
private List rFFReference;
private List eRCApplicationErrorInformation;
private List fTXFreeText;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(eRPErrorPointDetails != null) {
nodeWriter.write("ERP");
nodeWriter.write(delimiters.getField());
eRPErrorPointDetails.write(nodeWriter, delimiters);
}
if(rFFReference != null && !rFFReference.isEmpty()) {
for(RFFReference rFFReferenceInst : rFFReference) {
nodeWriter.write("RFF");
nodeWriter.write(delimiters.getField());
rFFReferenceInst.write(nodeWriter, delimiters);
}
}
if(eRCApplicationErrorInformation != null && !eRCApplicationErrorInformation.isEmpty()) {
for(ERCApplicationErrorInformation eRCApplicationErrorInformationInst : eRCApplicationErrorInformation) {
nodeWriter.write("ERC");
nodeWriter.write(delimiters.getField());
eRCApplicationErrorInformationInst.write(nodeWriter, delimiters);
}
}
if(fTXFreeText != null && !fTXFreeText.isEmpty()) {
for(FTXFreeText fTXFreeTextInst : fTXFreeText) {
nodeWriter.write("FTX");
nodeWriter.write(delimiters.getField());
fTXFreeTextInst.write(nodeWriter, delimiters);
}
}
}
public ERPErrorPointDetails getERPErrorPointDetails() {
return eRPErrorPointDetails;
}
public SegmentGroup14 setERPErrorPointDetails(ERPErrorPointDetails eRPErrorPointDetails) {
this.eRPErrorPointDetails = eRPErrorPointDetails; return this;
}
public List getRFFReference() {
return rFFReference;
}
public SegmentGroup14 setRFFReference(List rFFReference) {
this.rFFReference = rFFReference; return this;
}
public List getERCApplicationErrorInformation() {
return eRCApplicationErrorInformation;
}
public SegmentGroup14 setERCApplicationErrorInformation(List eRCApplicationErrorInformation) {
this.eRCApplicationErrorInformation = eRCApplicationErrorInformation; return this;
}
public List getFTXFreeText() {
return fTXFreeText;
}
public SegmentGroup14 setFTXFreeText(List fTXFreeText) {
this.fTXFreeText = fTXFreeText; return this;
}
}