org.milyn.edi.unedifact.d06b.IMPDEF.SegmentGroup8 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d06b.IMPDEF;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d06b.common.ELUDataElementUsageDetails;
import org.milyn.edi.unedifact.d06b.common.ELMSimpleDataElementDetails;
import org.milyn.edi.unedifact.d06b.common.EDTEditingDetails;
import java.util.List;
import org.milyn.edi.unedifact.d06b.common.IMDItemDescription;
import org.milyn.edi.unedifact.d06b.common.GEIProcessingInformation;
import org.milyn.edi.unedifact.d06b.common.FTXFreeText;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup8 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private ELUDataElementUsageDetails eLUDataElementUsageDetails;
private ELMSimpleDataElementDetails eLMSimpleDataElementDetails;
private EDTEditingDetails eDTEditingDetails;
private List iMDItemDescription;
private List gEIProcessingInformation;
private List fTXFreeText;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(eLUDataElementUsageDetails != null) {
nodeWriter.write("ELU");
nodeWriter.write(delimiters.getField());
eLUDataElementUsageDetails.write(nodeWriter, delimiters);
}
if(eLMSimpleDataElementDetails != null) {
nodeWriter.write("ELM");
nodeWriter.write(delimiters.getField());
eLMSimpleDataElementDetails.write(nodeWriter, delimiters);
}
if(eDTEditingDetails != null) {
nodeWriter.write("EDT");
nodeWriter.write(delimiters.getField());
eDTEditingDetails.write(nodeWriter, delimiters);
}
if(iMDItemDescription != null && !iMDItemDescription.isEmpty()) {
for(IMDItemDescription iMDItemDescriptionInst : iMDItemDescription) {
nodeWriter.write("IMD");
nodeWriter.write(delimiters.getField());
iMDItemDescriptionInst.write(nodeWriter, delimiters);
}
}
if(gEIProcessingInformation != null && !gEIProcessingInformation.isEmpty()) {
for(GEIProcessingInformation gEIProcessingInformationInst : gEIProcessingInformation) {
nodeWriter.write("GEI");
nodeWriter.write(delimiters.getField());
gEIProcessingInformationInst.write(nodeWriter, delimiters);
}
}
if(fTXFreeText != null && !fTXFreeText.isEmpty()) {
for(FTXFreeText fTXFreeTextInst : fTXFreeText) {
nodeWriter.write("FTX");
nodeWriter.write(delimiters.getField());
fTXFreeTextInst.write(nodeWriter, delimiters);
}
}
}
public ELUDataElementUsageDetails getELUDataElementUsageDetails() {
return eLUDataElementUsageDetails;
}
public SegmentGroup8 setELUDataElementUsageDetails(ELUDataElementUsageDetails eLUDataElementUsageDetails) {
this.eLUDataElementUsageDetails = eLUDataElementUsageDetails; return this;
}
public ELMSimpleDataElementDetails getELMSimpleDataElementDetails() {
return eLMSimpleDataElementDetails;
}
public SegmentGroup8 setELMSimpleDataElementDetails(ELMSimpleDataElementDetails eLMSimpleDataElementDetails) {
this.eLMSimpleDataElementDetails = eLMSimpleDataElementDetails; return this;
}
public EDTEditingDetails getEDTEditingDetails() {
return eDTEditingDetails;
}
public SegmentGroup8 setEDTEditingDetails(EDTEditingDetails eDTEditingDetails) {
this.eDTEditingDetails = eDTEditingDetails; return this;
}
public List getIMDItemDescription() {
return iMDItemDescription;
}
public SegmentGroup8 setIMDItemDescription(List iMDItemDescription) {
this.iMDItemDescription = iMDItemDescription; return this;
}
public List getGEIProcessingInformation() {
return gEIProcessingInformation;
}
public SegmentGroup8 setGEIProcessingInformation(List gEIProcessingInformation) {
this.gEIProcessingInformation = gEIProcessingInformation; return this;
}
public List getFTXFreeText() {
return fTXFreeText;
}
public SegmentGroup8 setFTXFreeText(List fTXFreeText) {
this.fTXFreeText = fTXFreeText; return this;
}
}