org.milyn.edi.unedifact.d05a.PROINQ.SegmentGroup7 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d05a.PROINQ;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d05a.common.PRIPriceDetails;
import org.milyn.edi.unedifact.d05a.common.RNGRangeDetails;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup7 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private PRIPriceDetails pRIPriceDetails;
private RNGRangeDetails rNGRangeDetails;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(pRIPriceDetails != null) {
nodeWriter.write("PRI");
nodeWriter.write(delimiters.getField());
pRIPriceDetails.write(nodeWriter, delimiters);
}
if(rNGRangeDetails != null) {
nodeWriter.write("RNG");
nodeWriter.write(delimiters.getField());
rNGRangeDetails.write(nodeWriter, delimiters);
}
}
public PRIPriceDetails getPRIPriceDetails() {
return pRIPriceDetails;
}
public SegmentGroup7 setPRIPriceDetails(PRIPriceDetails pRIPriceDetails) {
this.pRIPriceDetails = pRIPriceDetails; return this;
}
public RNGRangeDetails getRNGRangeDetails() {
return rNGRangeDetails;
}
public SegmentGroup7 setRNGRangeDetails(RNGRangeDetails rNGRangeDetails) {
this.rNGRangeDetails = rNGRangeDetails; return this;
}
}