org.milyn.edi.unedifact.d11b.GOVCBR.SegmentGroup18 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d11b.GOVCBR;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d11b.common.ERPErrorPointDetails;
import java.util.List;
import org.milyn.edi.unedifact.d11b.common.ELUDataElementUsageDetails;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup18 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private ERPErrorPointDetails eRPErrorPointDetails;
private List eLUDataElementUsageDetails;
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(eLUDataElementUsageDetails != null && !eLUDataElementUsageDetails.isEmpty()) {
for(ELUDataElementUsageDetails eLUDataElementUsageDetailsInst : eLUDataElementUsageDetails) {
nodeWriter.write("ELU");
nodeWriter.write(delimiters.getField());
eLUDataElementUsageDetailsInst.write(nodeWriter, delimiters);
}
}
}
public ERPErrorPointDetails getERPErrorPointDetails() {
return eRPErrorPointDetails;
}
public SegmentGroup18 setERPErrorPointDetails(ERPErrorPointDetails eRPErrorPointDetails) {
this.eRPErrorPointDetails = eRPErrorPointDetails; return this;
}
public List getELUDataElementUsageDetails() {
return eLUDataElementUsageDetails;
}
public SegmentGroup18 setELUDataElementUsageDetails(List eLUDataElementUsageDetails) {
this.eLUDataElementUsageDetails = eLUDataElementUsageDetails; return this;
}
}