org.milyn.edi.unedifact.d11b.GOVCBR.SegmentGroup14 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 SegmentGroup14 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 SegmentGroup14 setERPErrorPointDetails(ERPErrorPointDetails eRPErrorPointDetails) {
this.eRPErrorPointDetails = eRPErrorPointDetails; return this;
}
public List getELUDataElementUsageDetails() {
return eLUDataElementUsageDetails;
}
public SegmentGroup14 setELUDataElementUsageDetails(List eLUDataElementUsageDetails) {
this.eLUDataElementUsageDetails = eLUDataElementUsageDetails; return this;
}
}