org.milyn.edi.unedifact.d05a.CUSPED.SegmentGroup27 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d05a.CUSPED;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d05a.common.QuantityVariances;
import org.milyn.edi.unedifact.d05a.common.Quantity;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup27 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private QuantityVariances quantityVariances;
private Quantity quantity;
private SegmentGroup28 segmentGroup28;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(quantityVariances != null) {
nodeWriter.write("QVR");
nodeWriter.write(delimiters.getField());
quantityVariances.write(nodeWriter, delimiters);
}
if(quantity != null) {
nodeWriter.write("QTY");
nodeWriter.write(delimiters.getField());
quantity.write(nodeWriter, delimiters);
}
if(segmentGroup28 != null) {
segmentGroup28.write(nodeWriter, delimiters);
}
}
public QuantityVariances getQuantityVariances() {
return quantityVariances;
}
public SegmentGroup27 setQuantityVariances(QuantityVariances quantityVariances) {
this.quantityVariances = quantityVariances; return this;
}
public Quantity getQuantity() {
return quantity;
}
public SegmentGroup27 setQuantity(Quantity quantity) {
this.quantity = quantity; return this;
}
public SegmentGroup28 getSegmentGroup28() {
return segmentGroup28;
}
public SegmentGroup27 setSegmentGroup28(SegmentGroup28 segmentGroup28) {
this.segmentGroup28 = segmentGroup28; return this;
}
}