org.milyn.edi.unedifact.d05a.CNTCND.SegmentGroup20 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d05a.CNTCND;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d05a.common.FormulaSequence;
import java.util.List;
import org.milyn.edi.unedifact.d05a.common.RateDetails;
import org.milyn.edi.unedifact.d05a.common.PercentageDetails;
import org.milyn.edi.unedifact.d05a.common.Measurements;
import org.milyn.edi.unedifact.d05a.common.MonetaryAmount;
import org.milyn.edi.unedifact.d05a.common.Reference;
import org.milyn.edi.unedifact.d05a.common.DateTimePeriod;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup20 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private FormulaSequence formulaSequence;
private List rateDetails;
private List percentageDetails;
private List measurements;
private List monetaryAmount;
private List reference;
private List dateTimePeriod;
private List segmentGroup21;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(formulaSequence != null) {
nodeWriter.write("FSQ");
nodeWriter.write(delimiters.getField());
formulaSequence.write(nodeWriter, delimiters);
}
if(rateDetails != null && !rateDetails.isEmpty()) {
for(RateDetails rateDetailsInst : rateDetails) {
nodeWriter.write("RTE");
nodeWriter.write(delimiters.getField());
rateDetailsInst.write(nodeWriter, delimiters);
}
}
if(percentageDetails != null && !percentageDetails.isEmpty()) {
for(PercentageDetails percentageDetailsInst : percentageDetails) {
nodeWriter.write("PCD");
nodeWriter.write(delimiters.getField());
percentageDetailsInst.write(nodeWriter, delimiters);
}
}
if(measurements != null && !measurements.isEmpty()) {
for(Measurements measurementsInst : measurements) {
nodeWriter.write("MEA");
nodeWriter.write(delimiters.getField());
measurementsInst.write(nodeWriter, delimiters);
}
}
if(monetaryAmount != null && !monetaryAmount.isEmpty()) {
for(MonetaryAmount monetaryAmountInst : monetaryAmount) {
nodeWriter.write("MOA");
nodeWriter.write(delimiters.getField());
monetaryAmountInst.write(nodeWriter, delimiters);
}
}
if(reference != null && !reference.isEmpty()) {
for(Reference referenceInst : reference) {
nodeWriter.write("RFF");
nodeWriter.write(delimiters.getField());
referenceInst.write(nodeWriter, delimiters);
}
}
if(dateTimePeriod != null && !dateTimePeriod.isEmpty()) {
for(DateTimePeriod dateTimePeriodInst : dateTimePeriod) {
nodeWriter.write("DTM");
nodeWriter.write(delimiters.getField());
dateTimePeriodInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup21 != null && !segmentGroup21.isEmpty()) {
for(SegmentGroup21 segmentGroup21Inst : segmentGroup21) {
segmentGroup21Inst.write(nodeWriter, delimiters);
}
}
}
public FormulaSequence getFormulaSequence() {
return formulaSequence;
}
public SegmentGroup20 setFormulaSequence(FormulaSequence formulaSequence) {
this.formulaSequence = formulaSequence; return this;
}
public List getRateDetails() {
return rateDetails;
}
public SegmentGroup20 setRateDetails(List rateDetails) {
this.rateDetails = rateDetails; return this;
}
public List getPercentageDetails() {
return percentageDetails;
}
public SegmentGroup20 setPercentageDetails(List percentageDetails) {
this.percentageDetails = percentageDetails; return this;
}
public List getMeasurements() {
return measurements;
}
public SegmentGroup20 setMeasurements(List measurements) {
this.measurements = measurements; return this;
}
public List getMonetaryAmount() {
return monetaryAmount;
}
public SegmentGroup20 setMonetaryAmount(List monetaryAmount) {
this.monetaryAmount = monetaryAmount; return this;
}
public List getReference() {
return reference;
}
public SegmentGroup20 setReference(List reference) {
this.reference = reference; return this;
}
public List getDateTimePeriod() {
return dateTimePeriod;
}
public SegmentGroup20 setDateTimePeriod(List dateTimePeriod) {
this.dateTimePeriod = dateTimePeriod; return this;
}
public List getSegmentGroup21() {
return segmentGroup21;
}
public SegmentGroup20 setSegmentGroup21(List segmentGroup21) {
this.segmentGroup21 = segmentGroup21; return this;
}
}