org.milyn.edi.unedifact.d05a.STLRPT.SegmentGroup9 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d05a.STLRPT;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d05a.common.DocumentMessageDetails;
import org.milyn.edi.unedifact.d05a.common.DateTimePeriod;
import org.milyn.edi.unedifact.d05a.common.FreeText;
import org.milyn.edi.unedifact.d05a.common.AdditionalProductId;
import org.milyn.edi.unedifact.d05a.common.SequenceDetails;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup9 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private DocumentMessageDetails documentMessageDetails;
private DateTimePeriod dateTimePeriod;
private FreeText freeText;
private AdditionalProductId additionalProductId;
private SequenceDetails sequenceDetails;
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) {
nodeWriter.write("DTM");
nodeWriter.write(delimiters.getField());
dateTimePeriod.write(nodeWriter, delimiters);
}
if(freeText != null) {
nodeWriter.write("FTX");
nodeWriter.write(delimiters.getField());
freeText.write(nodeWriter, delimiters);
}
if(additionalProductId != null) {
nodeWriter.write("PIA");
nodeWriter.write(delimiters.getField());
additionalProductId.write(nodeWriter, delimiters);
}
if(sequenceDetails != null) {
nodeWriter.write("SEQ");
nodeWriter.write(delimiters.getField());
sequenceDetails.write(nodeWriter, delimiters);
}
}
public DocumentMessageDetails getDocumentMessageDetails() {
return documentMessageDetails;
}
public SegmentGroup9 setDocumentMessageDetails(DocumentMessageDetails documentMessageDetails) {
this.documentMessageDetails = documentMessageDetails; return this;
}
public DateTimePeriod getDateTimePeriod() {
return dateTimePeriod;
}
public SegmentGroup9 setDateTimePeriod(DateTimePeriod dateTimePeriod) {
this.dateTimePeriod = dateTimePeriod; return this;
}
public FreeText getFreeText() {
return freeText;
}
public SegmentGroup9 setFreeText(FreeText freeText) {
this.freeText = freeText; return this;
}
public AdditionalProductId getAdditionalProductId() {
return additionalProductId;
}
public SegmentGroup9 setAdditionalProductId(AdditionalProductId additionalProductId) {
this.additionalProductId = additionalProductId; return this;
}
public SequenceDetails getSequenceDetails() {
return sequenceDetails;
}
public SegmentGroup9 setSequenceDetails(SequenceDetails sequenceDetails) {
this.sequenceDetails = sequenceDetails; return this;
}
}