org.milyn.edi.unedifact.d05a.DESTIM.SegmentGroup8 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d05a.DESTIM;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d05a.common.LineItem;
import org.milyn.edi.unedifact.d05a.common.Dimensions;
import org.milyn.edi.unedifact.d05a.common.Quantity;
import java.util.List;
import org.milyn.edi.unedifact.d05a.common.FreeText;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup8 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private LineItem lineItem;
private Dimensions dimensions;
private Quantity quantity;
private List freeText;
private SegmentGroup9 segmentGroup9;
private List segmentGroup10;
private List segmentGroup11;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(lineItem != null) {
nodeWriter.write("LIN");
nodeWriter.write(delimiters.getField());
lineItem.write(nodeWriter, delimiters);
}
if(dimensions != null) {
nodeWriter.write("DIM");
nodeWriter.write(delimiters.getField());
dimensions.write(nodeWriter, delimiters);
}
if(quantity != null) {
nodeWriter.write("QTY");
nodeWriter.write(delimiters.getField());
quantity.write(nodeWriter, delimiters);
}
if(freeText != null && !freeText.isEmpty()) {
for(FreeText freeTextInst : freeText) {
nodeWriter.write("FTX");
nodeWriter.write(delimiters.getField());
freeTextInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup9 != null) {
segmentGroup9.write(nodeWriter, delimiters);
}
if(segmentGroup10 != null && !segmentGroup10.isEmpty()) {
for(SegmentGroup10 segmentGroup10Inst : segmentGroup10) {
segmentGroup10Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup11 != null && !segmentGroup11.isEmpty()) {
for(SegmentGroup11 segmentGroup11Inst : segmentGroup11) {
segmentGroup11Inst.write(nodeWriter, delimiters);
}
}
}
public LineItem getLineItem() {
return lineItem;
}
public SegmentGroup8 setLineItem(LineItem lineItem) {
this.lineItem = lineItem; return this;
}
public Dimensions getDimensions() {
return dimensions;
}
public SegmentGroup8 setDimensions(Dimensions dimensions) {
this.dimensions = dimensions; return this;
}
public Quantity getQuantity() {
return quantity;
}
public SegmentGroup8 setQuantity(Quantity quantity) {
this.quantity = quantity; return this;
}
public List getFreeText() {
return freeText;
}
public SegmentGroup8 setFreeText(List freeText) {
this.freeText = freeText; return this;
}
public SegmentGroup9 getSegmentGroup9() {
return segmentGroup9;
}
public SegmentGroup8 setSegmentGroup9(SegmentGroup9 segmentGroup9) {
this.segmentGroup9 = segmentGroup9; return this;
}
public List getSegmentGroup10() {
return segmentGroup10;
}
public SegmentGroup8 setSegmentGroup10(List segmentGroup10) {
this.segmentGroup10 = segmentGroup10; return this;
}
public List getSegmentGroup11() {
return segmentGroup11;
}
public SegmentGroup8 setSegmentGroup11(List segmentGroup11) {
this.segmentGroup11 = segmentGroup11; return this;
}
}