org.milyn.edi.unedifact.d06b.JOBAPP.SegmentGroup15 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d06b.JOBAPP;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d06b.common.Language;
import java.util.List;
import org.milyn.edi.unedifact.d06b.common.ProcessingInformation;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup15 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private Language language;
private List processingInformation;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(language != null) {
nodeWriter.write("LAN");
nodeWriter.write(delimiters.getField());
language.write(nodeWriter, delimiters);
}
if(processingInformation != null && !processingInformation.isEmpty()) {
for(ProcessingInformation processingInformationInst : processingInformation) {
nodeWriter.write("GEI");
nodeWriter.write(delimiters.getField());
processingInformationInst.write(nodeWriter, delimiters);
}
}
}
public Language getLanguage() {
return language;
}
public SegmentGroup15 setLanguage(Language language) {
this.language = language; return this;
}
public List getProcessingInformation() {
return processingInformation;
}
public SegmentGroup15 setProcessingInformation(List processingInformation) {
this.processingInformation = processingInformation; return this;
}
}