org.milyn.edi.unedifact.d06b.CUSRES.SegmentGroup14 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d06b.CUSRES;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d06b.common.ErrorPointDetails;
import java.util.List;
import org.milyn.edi.unedifact.d06b.common.Reference;
import org.milyn.edi.unedifact.d06b.common.ApplicationErrorInformation;
import org.milyn.edi.unedifact.d06b.common.FreeText;
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 ErrorPointDetails errorPointDetails;
private List reference;
private List applicationErrorInformation;
private List freeText;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(errorPointDetails != null) {
nodeWriter.write("ERP");
nodeWriter.write(delimiters.getField());
errorPointDetails.write(nodeWriter, delimiters);
}
if(reference != null && !reference.isEmpty()) {
for(Reference referenceInst : reference) {
nodeWriter.write("RFF");
nodeWriter.write(delimiters.getField());
referenceInst.write(nodeWriter, delimiters);
}
}
if(applicationErrorInformation != null && !applicationErrorInformation.isEmpty()) {
for(ApplicationErrorInformation applicationErrorInformationInst : applicationErrorInformation) {
nodeWriter.write("ERC");
nodeWriter.write(delimiters.getField());
applicationErrorInformationInst.write(nodeWriter, delimiters);
}
}
if(freeText != null && !freeText.isEmpty()) {
for(FreeText freeTextInst : freeText) {
nodeWriter.write("FTX");
nodeWriter.write(delimiters.getField());
freeTextInst.write(nodeWriter, delimiters);
}
}
}
public ErrorPointDetails getErrorPointDetails() {
return errorPointDetails;
}
public SegmentGroup14 setErrorPointDetails(ErrorPointDetails errorPointDetails) {
this.errorPointDetails = errorPointDetails; return this;
}
public List getReference() {
return reference;
}
public SegmentGroup14 setReference(List reference) {
this.reference = reference; return this;
}
public List getApplicationErrorInformation() {
return applicationErrorInformation;
}
public SegmentGroup14 setApplicationErrorInformation(List applicationErrorInformation) {
this.applicationErrorInformation = applicationErrorInformation; return this;
}
public List getFreeText() {
return freeText;
}
public SegmentGroup14 setFreeText(List freeText) {
this.freeText = freeText; return this;
}
}