org.milyn.edi.unedifact.d05a.PRPAID.SegmentGroup7 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d05a.PRPAID;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d05a.common.MonetaryAmount;
import org.milyn.edi.unedifact.d05a.common.ProcessingInformation;
import org.milyn.edi.unedifact.d05a.common.DateTimePeriod;
import org.milyn.edi.unedifact.d05a.common.Reference;
import org.milyn.edi.unedifact.d05a.common.Attribute;
import org.milyn.edi.unedifact.d05a.common.InsuranceCoverDescription;
import org.milyn.edi.unedifact.d05a.common.Currencies;
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 MonetaryAmount monetaryAmount;
private ProcessingInformation processingInformation;
private DateTimePeriod dateTimePeriod;
private Reference reference;
private Attribute attribute;
private InsuranceCoverDescription insuranceCoverDescription;
private Currencies currencies;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(monetaryAmount != null) {
nodeWriter.write("MOA");
nodeWriter.write(delimiters.getField());
monetaryAmount.write(nodeWriter, delimiters);
}
if(processingInformation != null) {
nodeWriter.write("GEI");
nodeWriter.write(delimiters.getField());
processingInformation.write(nodeWriter, delimiters);
}
if(dateTimePeriod != null) {
nodeWriter.write("DTM");
nodeWriter.write(delimiters.getField());
dateTimePeriod.write(nodeWriter, delimiters);
}
if(reference != null) {
nodeWriter.write("RFF");
nodeWriter.write(delimiters.getField());
reference.write(nodeWriter, delimiters);
}
if(attribute != null) {
nodeWriter.write("ATT");
nodeWriter.write(delimiters.getField());
attribute.write(nodeWriter, delimiters);
}
if(insuranceCoverDescription != null) {
nodeWriter.write("ICD");
nodeWriter.write(delimiters.getField());
insuranceCoverDescription.write(nodeWriter, delimiters);
}
if(currencies != null) {
nodeWriter.write("CUX");
nodeWriter.write(delimiters.getField());
currencies.write(nodeWriter, delimiters);
}
}
public MonetaryAmount getMonetaryAmount() {
return monetaryAmount;
}
public SegmentGroup7 setMonetaryAmount(MonetaryAmount monetaryAmount) {
this.monetaryAmount = monetaryAmount; return this;
}
public ProcessingInformation getProcessingInformation() {
return processingInformation;
}
public SegmentGroup7 setProcessingInformation(ProcessingInformation processingInformation) {
this.processingInformation = processingInformation; return this;
}
public DateTimePeriod getDateTimePeriod() {
return dateTimePeriod;
}
public SegmentGroup7 setDateTimePeriod(DateTimePeriod dateTimePeriod) {
this.dateTimePeriod = dateTimePeriod; return this;
}
public Reference getReference() {
return reference;
}
public SegmentGroup7 setReference(Reference reference) {
this.reference = reference; return this;
}
public Attribute getAttribute() {
return attribute;
}
public SegmentGroup7 setAttribute(Attribute attribute) {
this.attribute = attribute; return this;
}
public InsuranceCoverDescription getInsuranceCoverDescription() {
return insuranceCoverDescription;
}
public SegmentGroup7 setInsuranceCoverDescription(InsuranceCoverDescription insuranceCoverDescription) {
this.insuranceCoverDescription = insuranceCoverDescription; return this;
}
public Currencies getCurrencies() {
return currencies;
}
public SegmentGroup7 setCurrencies(Currencies currencies) {
this.currencies = currencies; return this;
}
}