org.milyn.edi.unedifact.d02a.CUSDEC.SegmentGroup42 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d02a.CUSDEC;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d02a.common.QuantityVariances;
import org.milyn.edi.unedifact.d02a.common.Quantity;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup42 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private QuantityVariances quantityVariances;
private Quantity quantity;
private SegmentGroup43 segmentGroup43;
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(segmentGroup43 != null) {
segmentGroup43.write(nodeWriter, delimiters);
}
}
public QuantityVariances getQuantityVariances() {
return quantityVariances;
}
public SegmentGroup42 setQuantityVariances(QuantityVariances quantityVariances) {
this.quantityVariances = quantityVariances; return this;
}
public Quantity getQuantity() {
return quantity;
}
public SegmentGroup42 setQuantity(Quantity quantity) {
this.quantity = quantity; return this;
}
public SegmentGroup43 getSegmentGroup43() {
return segmentGroup43;
}
public SegmentGroup42 setSegmentGroup43(SegmentGroup43 segmentGroup43) {
this.segmentGroup43 = segmentGroup43; return this;
}
}