org.milyn.edi.unedifact.d05a.CREMUL.SegmentGroup15 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d05a.CREMUL;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d05a.common.INPPartiesAndInstruction;
import org.milyn.edi.unedifact.d05a.common.FTXFreeText;
import org.milyn.edi.unedifact.d05a.common.DTMDateTimePeriod;
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 INPPartiesAndInstruction iNPPartiesAndInstruction;
private FTXFreeText fTXFreeText;
private DTMDateTimePeriod dTMDateTimePeriod;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(iNPPartiesAndInstruction != null) {
nodeWriter.write("INP");
nodeWriter.write(delimiters.getField());
iNPPartiesAndInstruction.write(nodeWriter, delimiters);
}
if(fTXFreeText != null) {
nodeWriter.write("FTX");
nodeWriter.write(delimiters.getField());
fTXFreeText.write(nodeWriter, delimiters);
}
if(dTMDateTimePeriod != null) {
nodeWriter.write("DTM");
nodeWriter.write(delimiters.getField());
dTMDateTimePeriod.write(nodeWriter, delimiters);
}
}
public INPPartiesAndInstruction getINPPartiesAndInstruction() {
return iNPPartiesAndInstruction;
}
public SegmentGroup15 setINPPartiesAndInstruction(INPPartiesAndInstruction iNPPartiesAndInstruction) {
this.iNPPartiesAndInstruction = iNPPartiesAndInstruction; return this;
}
public FTXFreeText getFTXFreeText() {
return fTXFreeText;
}
public SegmentGroup15 setFTXFreeText(FTXFreeText fTXFreeText) {
this.fTXFreeText = fTXFreeText; return this;
}
public DTMDateTimePeriod getDTMDateTimePeriod() {
return dTMDateTimePeriod;
}
public SegmentGroup15 setDTMDateTimePeriod(DTMDateTimePeriod dTMDateTimePeriod) {
this.dTMDateTimePeriod = dTMDateTimePeriod; return this;
}
}