org.milyn.edi.unedifact.d02a.IMPDEF.SegmentGroup8 Maven / Gradle / Ivy
The newest version!
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d02a.IMPDEF;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d02a.common.ELUDataElementUsageDetails;
import org.milyn.edi.unedifact.d02a.common.ELMSimpleDataElementDetails;
import org.milyn.edi.unedifact.d02a.common.EDTEditingDetails;
import java.util.List;
import org.milyn.edi.unedifact.d02a.common.IMDItemDescription;
import org.milyn.edi.unedifact.d02a.common.GISGeneralIndicator;
import org.milyn.edi.unedifact.d02a.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 gISGeneralIndicator;
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(gISGeneralIndicator != null && !gISGeneralIndicator.isEmpty()) {
for(GISGeneralIndicator gISGeneralIndicatorInst : gISGeneralIndicator) {
nodeWriter.write("GIS");
nodeWriter.write(delimiters.getField());
gISGeneralIndicatorInst.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 getGISGeneralIndicator() {
return gISGeneralIndicator;
}
public SegmentGroup8 setGISGeneralIndicator(List gISGeneralIndicator) {
this.gISGeneralIndicator = gISGeneralIndicator; return this;
}
public List getFTXFreeText() {
return fTXFreeText;
}
public SegmentGroup8 setFTXFreeText(List fTXFreeText) {
this.fTXFreeText = fTXFreeText; return this;
}
}