org.milyn.edi.unedifact.d06b.HANMOV.SegmentGroup3 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d06b.HANMOV;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d06b.common.STSStatus;
import java.util.List;
import org.milyn.edi.unedifact.d06b.common.DTMDateTimePeriod;
import org.milyn.edi.unedifact.d06b.common.FTXFreeText;
import org.milyn.edi.unedifact.d06b.common.HANHandlingInstructions;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup3 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private STSStatus sTSStatus;
private List dTMDateTimePeriod;
private List fTXFreeText;
private List hANHandlingInstructions;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(sTSStatus != null) {
nodeWriter.write("STS");
nodeWriter.write(delimiters.getField());
sTSStatus.write(nodeWriter, delimiters);
}
if(dTMDateTimePeriod != null && !dTMDateTimePeriod.isEmpty()) {
for(DTMDateTimePeriod dTMDateTimePeriodInst : dTMDateTimePeriod) {
nodeWriter.write("DTM");
nodeWriter.write(delimiters.getField());
dTMDateTimePeriodInst.write(nodeWriter, delimiters);
}
}
if(fTXFreeText != null && !fTXFreeText.isEmpty()) {
for(FTXFreeText fTXFreeTextInst : fTXFreeText) {
nodeWriter.write("FTX");
nodeWriter.write(delimiters.getField());
fTXFreeTextInst.write(nodeWriter, delimiters);
}
}
if(hANHandlingInstructions != null && !hANHandlingInstructions.isEmpty()) {
for(HANHandlingInstructions hANHandlingInstructionsInst : hANHandlingInstructions) {
nodeWriter.write("HAN");
nodeWriter.write(delimiters.getField());
hANHandlingInstructionsInst.write(nodeWriter, delimiters);
}
}
}
public STSStatus getSTSStatus() {
return sTSStatus;
}
public SegmentGroup3 setSTSStatus(STSStatus sTSStatus) {
this.sTSStatus = sTSStatus; return this;
}
public List getDTMDateTimePeriod() {
return dTMDateTimePeriod;
}
public SegmentGroup3 setDTMDateTimePeriod(List dTMDateTimePeriod) {
this.dTMDateTimePeriod = dTMDateTimePeriod; return this;
}
public List getFTXFreeText() {
return fTXFreeText;
}
public SegmentGroup3 setFTXFreeText(List fTXFreeText) {
this.fTXFreeText = fTXFreeText; return this;
}
public List getHANHandlingInstructions() {
return hANHandlingInstructions;
}
public SegmentGroup3 setHANHandlingInstructions(List hANHandlingInstructions) {
this.hANHandlingInstructions = hANHandlingInstructions; return this;
}
}