org.milyn.edi.unedifact.d06b.IFTFCC.SegmentGroup7 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d06b.IFTFCC;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d06b.common.PRIPriceDetails;
import java.util.List;
import org.milyn.edi.unedifact.d06b.common.CUXCurrencies;
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 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 SegmentGroup7 setPRIPriceDetails(PRIPriceDetails pRIPriceDetails) {
this.pRIPriceDetails = pRIPriceDetails; return this;
}
public List getCUXCurrencies() {
return cUXCurrencies;
}
public SegmentGroup7 setCUXCurrencies(List cUXCurrencies) {
this.cUXCurrencies = cUXCurrencies; return this;
}
}