org.milyn.edi.unedifact.d94a.CUSRES.SegmentGroup1 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d94a.CUSRES;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d94a.common.ErrorPointDetails;
import java.util.List;
import org.milyn.edi.unedifact.d94a.common.ApplicationErrorInformation;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup1 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private ErrorPointDetails errorPointDetails;
private List applicationErrorInformation;
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(applicationErrorInformation != null && !applicationErrorInformation.isEmpty()) {
for(ApplicationErrorInformation applicationErrorInformationInst : applicationErrorInformation) {
nodeWriter.write("ERC");
nodeWriter.write(delimiters.getField());
applicationErrorInformationInst.write(nodeWriter, delimiters);
}
}
}
public ErrorPointDetails getErrorPointDetails() {
return errorPointDetails;
}
public SegmentGroup1 setErrorPointDetails(ErrorPointDetails errorPointDetails) {
this.errorPointDetails = errorPointDetails; return this;
}
public List getApplicationErrorInformation() {
return applicationErrorInformation;
}
public SegmentGroup1 setApplicationErrorInformation(List applicationErrorInformation) {
this.applicationErrorInformation = applicationErrorInformation; return this;
}
}