org.milyn.edi.unedifact.d09b.GOVCBR.SegmentGroup52 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d09b.GOVCBR;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d09b.common.ERPErrorPointDetails;
import java.util.List;
import org.milyn.edi.unedifact.d09b.common.ELUDataElementUsageDetails;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup52 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 SegmentGroup52 setERPErrorPointDetails(ERPErrorPointDetails eRPErrorPointDetails) {
this.eRPErrorPointDetails = eRPErrorPointDetails; return this;
}
public List getELUDataElementUsageDetails() {
return eLUDataElementUsageDetails;
}
public SegmentGroup52 setELUDataElementUsageDetails(List eLUDataElementUsageDetails) {
this.eLUDataElementUsageDetails = eLUDataElementUsageDetails; return this;
}
}