org.milyn.edi.unedifact.d96a.RECADV.SegmentGroup29 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d96a.RECADV;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d96a.common.PackageIdentification;
import org.milyn.edi.unedifact.d96a.common.Quantity;
import org.milyn.edi.unedifact.d96a.common.QuantityVariances;
import java.util.List;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup29 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private PackageIdentification packageIdentification;
private Quantity quantity;
private QuantityVariances quantityVariances;
private List segmentGroup30;
private List segmentGroup31;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(packageIdentification != null) {
nodeWriter.write("PCI");
nodeWriter.write(delimiters.getField());
packageIdentification.write(nodeWriter, delimiters);
}
if(quantity != null) {
nodeWriter.write("QTY");
nodeWriter.write(delimiters.getField());
quantity.write(nodeWriter, delimiters);
}
if(quantityVariances != null) {
nodeWriter.write("QVR");
nodeWriter.write(delimiters.getField());
quantityVariances.write(nodeWriter, delimiters);
}
if(segmentGroup30 != null && !segmentGroup30.isEmpty()) {
for(SegmentGroup30 segmentGroup30Inst : segmentGroup30) {
segmentGroup30Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup31 != null && !segmentGroup31.isEmpty()) {
for(SegmentGroup31 segmentGroup31Inst : segmentGroup31) {
segmentGroup31Inst.write(nodeWriter, delimiters);
}
}
}
public PackageIdentification getPackageIdentification() {
return packageIdentification;
}
public SegmentGroup29 setPackageIdentification(PackageIdentification packageIdentification) {
this.packageIdentification = packageIdentification; return this;
}
public Quantity getQuantity() {
return quantity;
}
public SegmentGroup29 setQuantity(Quantity quantity) {
this.quantity = quantity; return this;
}
public QuantityVariances getQuantityVariances() {
return quantityVariances;
}
public SegmentGroup29 setQuantityVariances(QuantityVariances quantityVariances) {
this.quantityVariances = quantityVariances; return this;
}
public List getSegmentGroup30() {
return segmentGroup30;
}
public SegmentGroup29 setSegmentGroup30(List segmentGroup30) {
this.segmentGroup30 = segmentGroup30; return this;
}
public List getSegmentGroup31() {
return segmentGroup31;
}
public SegmentGroup29 setSegmentGroup31(List segmentGroup31) {
this.segmentGroup31 = segmentGroup31; return this;
}
}