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.ItemDescription;
import org.milyn.edi.unedifact.d06b.common.Status;
import java.util.List;
import org.milyn.edi.unedifact.d06b.common.FreeText;
import org.milyn.edi.unedifact.d06b.common.Attribute;
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 ItemDescription itemDescription;
private Status status;
private List freeText;
private Attribute attribute;
private SegmentGroup18 segmentGroup18;
private SegmentGroup19 segmentGroup19;
private SegmentGroup21 segmentGroup21;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(itemDescription != null) {
nodeWriter.write("IMD");
nodeWriter.write(delimiters.getField());
itemDescription.write(nodeWriter, delimiters);
}
if(status != null) {
nodeWriter.write("STS");
nodeWriter.write(delimiters.getField());
status.write(nodeWriter, delimiters);
}
if(freeText != null && !freeText.isEmpty()) {
for(FreeText freeTextInst : freeText) {
nodeWriter.write("FTX");
nodeWriter.write(delimiters.getField());
freeTextInst.write(nodeWriter, delimiters);
}
}
if(attribute != null) {
nodeWriter.write("ATT");
nodeWriter.write(delimiters.getField());
attribute.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 ItemDescription getItemDescription() {
return itemDescription;
}
public SegmentGroup17 setItemDescription(ItemDescription itemDescription) {
this.itemDescription = itemDescription; return this;
}
public Status getStatus() {
return status;
}
public SegmentGroup17 setStatus(Status status) {
this.status = status; return this;
}
public List getFreeText() {
return freeText;
}
public SegmentGroup17 setFreeText(List freeText) {
this.freeText = freeText; return this;
}
public Attribute getAttribute() {
return attribute;
}
public SegmentGroup17 setAttribute(Attribute attribute) {
this.attribute = attribute; 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;
}
}