org.milyn.edi.unedifact.d03b.IFTICL.SegmentGroup14 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d03b.IFTICL;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d03b.common.DocumentMessageDetails;
import java.util.List;
import org.milyn.edi.unedifact.d03b.common.DateTimePeriod;
import org.milyn.edi.unedifact.d03b.common.ExternalFileLinkIdentification;
import org.milyn.edi.unedifact.d03b.common.FreeText;
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 DocumentMessageDetails documentMessageDetails;
private List dateTimePeriod;
private ExternalFileLinkIdentification externalFileLinkIdentification;
private List freeText;
private List segmentGroup15;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(documentMessageDetails != null) {
nodeWriter.write("DOC");
nodeWriter.write(delimiters.getField());
documentMessageDetails.write(nodeWriter, delimiters);
}
if(dateTimePeriod != null && !dateTimePeriod.isEmpty()) {
for(DateTimePeriod dateTimePeriodInst : dateTimePeriod) {
nodeWriter.write("DTM");
nodeWriter.write(delimiters.getField());
dateTimePeriodInst.write(nodeWriter, delimiters);
}
}
if(externalFileLinkIdentification != null) {
nodeWriter.write("EFI");
nodeWriter.write(delimiters.getField());
externalFileLinkIdentification.write(nodeWriter, delimiters);
}
if(freeText != null && !freeText.isEmpty()) {
for(FreeText freeTextInst : freeText) {
nodeWriter.write("FTX");
nodeWriter.write(delimiters.getField());
freeTextInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup15 != null && !segmentGroup15.isEmpty()) {
for(SegmentGroup15 segmentGroup15Inst : segmentGroup15) {
segmentGroup15Inst.write(nodeWriter, delimiters);
}
}
}
public DocumentMessageDetails getDocumentMessageDetails() {
return documentMessageDetails;
}
public SegmentGroup14 setDocumentMessageDetails(DocumentMessageDetails documentMessageDetails) {
this.documentMessageDetails = documentMessageDetails; return this;
}
public List getDateTimePeriod() {
return dateTimePeriod;
}
public SegmentGroup14 setDateTimePeriod(List dateTimePeriod) {
this.dateTimePeriod = dateTimePeriod; return this;
}
public ExternalFileLinkIdentification getExternalFileLinkIdentification() {
return externalFileLinkIdentification;
}
public SegmentGroup14 setExternalFileLinkIdentification(ExternalFileLinkIdentification externalFileLinkIdentification) {
this.externalFileLinkIdentification = externalFileLinkIdentification; return this;
}
public List getFreeText() {
return freeText;
}
public SegmentGroup14 setFreeText(List freeText) {
this.freeText = freeText; return this;
}
public List getSegmentGroup15() {
return segmentGroup15;
}
public SegmentGroup14 setSegmentGroup15(List segmentGroup15) {
this.segmentGroup15 = segmentGroup15; return this;
}
}