org.virtuslab.edi.unedifact.d96a.CUSRES.SegmentGroup1 Maven / Gradle / Ivy
The newest version!
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.virtuslab.edi.unedifact.d96a.CUSRES;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.virtuslab.edi.unedifact.d96a.common.ERPErrorPointDetails;
import java.util.List;
import org.virtuslab.edi.unedifact.d96a.common.ERCApplicationErrorInformation;
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 ERPErrorPointDetails eRPErrorPointDetails;
private List eRCApplicationErrorInformation;
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(eRCApplicationErrorInformation != null && !eRCApplicationErrorInformation.isEmpty()) {
for(ERCApplicationErrorInformation eRCApplicationErrorInformationInst : eRCApplicationErrorInformation) {
nodeWriter.write("ERC");
nodeWriter.write(delimiters.getField());
eRCApplicationErrorInformationInst.write(nodeWriter, delimiters);
}
}
}
public ERPErrorPointDetails getERPErrorPointDetails() {
return eRPErrorPointDetails;
}
public SegmentGroup1 setERPErrorPointDetails(ERPErrorPointDetails eRPErrorPointDetails) {
this.eRPErrorPointDetails = eRPErrorPointDetails; return this;
}
public List getERCApplicationErrorInformation() {
return eRCApplicationErrorInformation;
}
public SegmentGroup1 setERCApplicationErrorInformation(List eRCApplicationErrorInformation) {
this.eRCApplicationErrorInformation = eRCApplicationErrorInformation; return this;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy