org.milyn.edi.unedifact.d05a.ISENDS.SegmentGroup8 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d05a.ISENDS;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d05a.common.RangeDetails;
import java.util.List;
import org.milyn.edi.unedifact.d05a.common.ProcessingInformation;
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 org.milyn.edi.unedifact.d05a.common.MarketSalesChannelInformation;
import org.milyn.edi.unedifact.d05a.common.InsuranceCoverDescription;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup8 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private RangeDetails rangeDetails;
private List processingInformation;
private List monetaryAmount;
private List reference;
private List dateTimePeriod;
private List marketSalesChannelInformation;
private List insuranceCoverDescription;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(rangeDetails != null) {
nodeWriter.write("RNG");
nodeWriter.write(delimiters.getField());
rangeDetails.write(nodeWriter, delimiters);
}
if(processingInformation != null && !processingInformation.isEmpty()) {
for(ProcessingInformation processingInformationInst : processingInformation) {
nodeWriter.write("GEI");
nodeWriter.write(delimiters.getField());
processingInformationInst.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(marketSalesChannelInformation != null && !marketSalesChannelInformation.isEmpty()) {
for(MarketSalesChannelInformation marketSalesChannelInformationInst : marketSalesChannelInformation) {
nodeWriter.write("MKS");
nodeWriter.write(delimiters.getField());
marketSalesChannelInformationInst.write(nodeWriter, delimiters);
}
}
if(insuranceCoverDescription != null && !insuranceCoverDescription.isEmpty()) {
for(InsuranceCoverDescription insuranceCoverDescriptionInst : insuranceCoverDescription) {
nodeWriter.write("ICD");
nodeWriter.write(delimiters.getField());
insuranceCoverDescriptionInst.write(nodeWriter, delimiters);
}
}
}
public RangeDetails getRangeDetails() {
return rangeDetails;
}
public SegmentGroup8 setRangeDetails(RangeDetails rangeDetails) {
this.rangeDetails = rangeDetails; return this;
}
public List getProcessingInformation() {
return processingInformation;
}
public SegmentGroup8 setProcessingInformation(List processingInformation) {
this.processingInformation = processingInformation; return this;
}
public List getMonetaryAmount() {
return monetaryAmount;
}
public SegmentGroup8 setMonetaryAmount(List monetaryAmount) {
this.monetaryAmount = monetaryAmount; return this;
}
public List getReference() {
return reference;
}
public SegmentGroup8 setReference(List reference) {
this.reference = reference; return this;
}
public List getDateTimePeriod() {
return dateTimePeriod;
}
public SegmentGroup8 setDateTimePeriod(List dateTimePeriod) {
this.dateTimePeriod = dateTimePeriod; return this;
}
public List getMarketSalesChannelInformation() {
return marketSalesChannelInformation;
}
public SegmentGroup8 setMarketSalesChannelInformation(List marketSalesChannelInformation) {
this.marketSalesChannelInformation = marketSalesChannelInformation; return this;
}
public List getInsuranceCoverDescription() {
return insuranceCoverDescription;
}
public SegmentGroup8 setInsuranceCoverDescription(List insuranceCoverDescription) {
this.insuranceCoverDescription = insuranceCoverDescription; return this;
}
}