org.milyn.edi.unedifact.d05a.OSTRPT.SegmentGroup14 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d05a.OSTRPT;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d05a.common.Package;
import org.milyn.edi.unedifact.d05a.common.Quantity;
import java.util.List;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup14 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private Package _package;
private Quantity quantity;
private List segmentGroup15;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(_package != null) {
nodeWriter.write("PAC");
nodeWriter.write(delimiters.getField());
_package.write(nodeWriter, delimiters);
}
if(quantity != null) {
nodeWriter.write("QTY");
nodeWriter.write(delimiters.getField());
quantity.write(nodeWriter, delimiters);
}
if(segmentGroup15 != null && !segmentGroup15.isEmpty()) {
for(SegmentGroup15 segmentGroup15Inst : segmentGroup15) {
segmentGroup15Inst.write(nodeWriter, delimiters);
}
}
}
public Package get_package() {
return _package;
}
public SegmentGroup14 set_package(Package _package) {
this._package = _package; return this;
}
public Quantity getQuantity() {
return quantity;
}
public SegmentGroup14 setQuantity(Quantity quantity) {
this.quantity = quantity; return this;
}
public List getSegmentGroup15() {
return segmentGroup15;
}
public SegmentGroup14 setSegmentGroup15(List segmentGroup15) {
this.segmentGroup15 = segmentGroup15; return this;
}
}