org.milyn.edi.unedifact.d06b.DEBREC.SegmentGroup17 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d06b.DEBREC;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d06b.common.IMDItemDescription;
import org.milyn.edi.unedifact.d06b.common.STSStatus;
import java.util.List;
import org.milyn.edi.unedifact.d06b.common.FTXFreeText;
import org.milyn.edi.unedifact.d06b.common.ATTAttribute;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup17 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private IMDItemDescription iMDItemDescription;
private STSStatus sTSStatus;
private List fTXFreeText;
private ATTAttribute aTTAttribute;
private SegmentGroup18 segmentGroup18;
private SegmentGroup19 segmentGroup19;
private SegmentGroup21 segmentGroup21;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(iMDItemDescription != null) {
nodeWriter.write("IMD");
nodeWriter.write(delimiters.getField());
iMDItemDescription.write(nodeWriter, delimiters);
}
if(sTSStatus != null) {
nodeWriter.write("STS");
nodeWriter.write(delimiters.getField());
sTSStatus.write(nodeWriter, delimiters);
}
if(fTXFreeText != null && !fTXFreeText.isEmpty()) {
for(FTXFreeText fTXFreeTextInst : fTXFreeText) {
nodeWriter.write("FTX");
nodeWriter.write(delimiters.getField());
fTXFreeTextInst.write(nodeWriter, delimiters);
}
}
if(aTTAttribute != null) {
nodeWriter.write("ATT");
nodeWriter.write(delimiters.getField());
aTTAttribute.write(nodeWriter, delimiters);
}
if(segmentGroup18 != null) {
segmentGroup18.write(nodeWriter, delimiters);
}
if(segmentGroup19 != null) {
segmentGroup19.write(nodeWriter, delimiters);
}
if(segmentGroup21 != null) {
segmentGroup21.write(nodeWriter, delimiters);
}
}
public IMDItemDescription getIMDItemDescription() {
return iMDItemDescription;
}
public SegmentGroup17 setIMDItemDescription(IMDItemDescription iMDItemDescription) {
this.iMDItemDescription = iMDItemDescription; return this;
}
public STSStatus getSTSStatus() {
return sTSStatus;
}
public SegmentGroup17 setSTSStatus(STSStatus sTSStatus) {
this.sTSStatus = sTSStatus; return this;
}
public List getFTXFreeText() {
return fTXFreeText;
}
public SegmentGroup17 setFTXFreeText(List fTXFreeText) {
this.fTXFreeText = fTXFreeText; return this;
}
public ATTAttribute getATTAttribute() {
return aTTAttribute;
}
public SegmentGroup17 setATTAttribute(ATTAttribute aTTAttribute) {
this.aTTAttribute = aTTAttribute; return this;
}
public SegmentGroup18 getSegmentGroup18() {
return segmentGroup18;
}
public SegmentGroup17 setSegmentGroup18(SegmentGroup18 segmentGroup18) {
this.segmentGroup18 = segmentGroup18; return this;
}
public SegmentGroup19 getSegmentGroup19() {
return segmentGroup19;
}
public SegmentGroup17 setSegmentGroup19(SegmentGroup19 segmentGroup19) {
this.segmentGroup19 = segmentGroup19; return this;
}
public SegmentGroup21 getSegmentGroup21() {
return segmentGroup21;
}
public SegmentGroup17 setSegmentGroup21(SegmentGroup21 segmentGroup21) {
this.segmentGroup21 = segmentGroup21; return this;
}
}