org.milyn.edi.unedifact.d11b.PRICAT.SegmentGroup40 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d11b.PRICAT;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d11b.common.PRIPriceDetails;
import org.milyn.edi.unedifact.d11b.common.CUXCurrencies;
import java.util.List;
import org.milyn.edi.unedifact.d11b.common.APRAdditionalPriceInformation;
import org.milyn.edi.unedifact.d11b.common.RNGRangeDetails;
import org.milyn.edi.unedifact.d11b.common.DTMDateTimePeriod;
import org.milyn.edi.unedifact.d11b.common.PCDPercentageDetails;
import org.milyn.edi.unedifact.d11b.common.LOCPlaceLocationIdentification;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup40 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private PRIPriceDetails pRIPriceDetails;
private CUXCurrencies cUXCurrencies;
private List aPRAdditionalPriceInformation;
private RNGRangeDetails rNGRangeDetails;
private List dTMDateTimePeriod;
private List pCDPercentageDetails;
private List lOCPlaceLocationIdentification;
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) {
nodeWriter.write("CUX");
nodeWriter.write(delimiters.getField());
cUXCurrencies.write(nodeWriter, delimiters);
}
if(aPRAdditionalPriceInformation != null && !aPRAdditionalPriceInformation.isEmpty()) {
for(APRAdditionalPriceInformation aPRAdditionalPriceInformationInst : aPRAdditionalPriceInformation) {
nodeWriter.write("APR");
nodeWriter.write(delimiters.getField());
aPRAdditionalPriceInformationInst.write(nodeWriter, delimiters);
}
}
if(rNGRangeDetails != null) {
nodeWriter.write("RNG");
nodeWriter.write(delimiters.getField());
rNGRangeDetails.write(nodeWriter, delimiters);
}
if(dTMDateTimePeriod != null && !dTMDateTimePeriod.isEmpty()) {
for(DTMDateTimePeriod dTMDateTimePeriodInst : dTMDateTimePeriod) {
nodeWriter.write("DTM");
nodeWriter.write(delimiters.getField());
dTMDateTimePeriodInst.write(nodeWriter, delimiters);
}
}
if(pCDPercentageDetails != null && !pCDPercentageDetails.isEmpty()) {
for(PCDPercentageDetails pCDPercentageDetailsInst : pCDPercentageDetails) {
nodeWriter.write("PCD");
nodeWriter.write(delimiters.getField());
pCDPercentageDetailsInst.write(nodeWriter, delimiters);
}
}
if(lOCPlaceLocationIdentification != null && !lOCPlaceLocationIdentification.isEmpty()) {
for(LOCPlaceLocationIdentification lOCPlaceLocationIdentificationInst : lOCPlaceLocationIdentification) {
nodeWriter.write("LOC");
nodeWriter.write(delimiters.getField());
lOCPlaceLocationIdentificationInst.write(nodeWriter, delimiters);
}
}
}
public PRIPriceDetails getPRIPriceDetails() {
return pRIPriceDetails;
}
public SegmentGroup40 setPRIPriceDetails(PRIPriceDetails pRIPriceDetails) {
this.pRIPriceDetails = pRIPriceDetails; return this;
}
public CUXCurrencies getCUXCurrencies() {
return cUXCurrencies;
}
public SegmentGroup40 setCUXCurrencies(CUXCurrencies cUXCurrencies) {
this.cUXCurrencies = cUXCurrencies; return this;
}
public List getAPRAdditionalPriceInformation() {
return aPRAdditionalPriceInformation;
}
public SegmentGroup40 setAPRAdditionalPriceInformation(List aPRAdditionalPriceInformation) {
this.aPRAdditionalPriceInformation = aPRAdditionalPriceInformation; return this;
}
public RNGRangeDetails getRNGRangeDetails() {
return rNGRangeDetails;
}
public SegmentGroup40 setRNGRangeDetails(RNGRangeDetails rNGRangeDetails) {
this.rNGRangeDetails = rNGRangeDetails; return this;
}
public List getDTMDateTimePeriod() {
return dTMDateTimePeriod;
}
public SegmentGroup40 setDTMDateTimePeriod(List dTMDateTimePeriod) {
this.dTMDateTimePeriod = dTMDateTimePeriod; return this;
}
public List getPCDPercentageDetails() {
return pCDPercentageDetails;
}
public SegmentGroup40 setPCDPercentageDetails(List pCDPercentageDetails) {
this.pCDPercentageDetails = pCDPercentageDetails; return this;
}
public List getLOCPlaceLocationIdentification() {
return lOCPlaceLocationIdentification;
}
public SegmentGroup40 setLOCPlaceLocationIdentification(List lOCPlaceLocationIdentification) {
this.lOCPlaceLocationIdentification = lOCPlaceLocationIdentification; return this;
}
}