org.milyn.edi.unedifact.d09b.UTILTS.SegmentGroup13 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d09b.UTILTS;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d09b.common.PRIPriceDetails;
import java.util.List;
import org.milyn.edi.unedifact.d09b.common.CUXCurrencies;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup13 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private PRIPriceDetails pRIPriceDetails;
private List cUXCurrencies;
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(cUXCurrencies != null && !cUXCurrencies.isEmpty()) {
for(CUXCurrencies cUXCurrenciesInst : cUXCurrencies) {
nodeWriter.write("CUX");
nodeWriter.write(delimiters.getField());
cUXCurrenciesInst.write(nodeWriter, delimiters);
}
}
}
public PRIPriceDetails getPRIPriceDetails() {
return pRIPriceDetails;
}
public SegmentGroup13 setPRIPriceDetails(PRIPriceDetails pRIPriceDetails) {
this.pRIPriceDetails = pRIPriceDetails; return this;
}
public List getCUXCurrencies() {
return cUXCurrencies;
}
public SegmentGroup13 setCUXCurrencies(List cUXCurrencies) {
this.cUXCurrencies = cUXCurrencies; return this;
}
}