org.milyn.edi.unedifact.d96a.PRPAID.SegmentGroup6 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d96a.PRPAID;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d96a.common.MonetaryAmount;
import org.milyn.edi.unedifact.d96a.common.GeneralIndicator;
import org.milyn.edi.unedifact.d96a.common.DateTimePeriod;
import org.milyn.edi.unedifact.d96a.common.Reference;
import org.milyn.edi.unedifact.d96a.common.Attribute;
import org.milyn.edi.unedifact.d96a.common.InsuranceCoverDescription;
import org.milyn.edi.unedifact.d96a.common.Currencies;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup6 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private MonetaryAmount monetaryAmount;
private GeneralIndicator generalIndicator;
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(generalIndicator != null) {
nodeWriter.write("GIS");
nodeWriter.write(delimiters.getField());
generalIndicator.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 SegmentGroup6 setMonetaryAmount(MonetaryAmount monetaryAmount) {
this.monetaryAmount = monetaryAmount; return this;
}
public GeneralIndicator getGeneralIndicator() {
return generalIndicator;
}
public SegmentGroup6 setGeneralIndicator(GeneralIndicator generalIndicator) {
this.generalIndicator = generalIndicator; return this;
}
public DateTimePeriod getDateTimePeriod() {
return dateTimePeriod;
}
public SegmentGroup6 setDateTimePeriod(DateTimePeriod dateTimePeriod) {
this.dateTimePeriod = dateTimePeriod; return this;
}
public Reference getReference() {
return reference;
}
public SegmentGroup6 setReference(Reference reference) {
this.reference = reference; return this;
}
public Attribute getAttribute() {
return attribute;
}
public SegmentGroup6 setAttribute(Attribute attribute) {
this.attribute = attribute; return this;
}
public InsuranceCoverDescription getInsuranceCoverDescription() {
return insuranceCoverDescription;
}
public SegmentGroup6 setInsuranceCoverDescription(InsuranceCoverDescription insuranceCoverDescription) {
this.insuranceCoverDescription = insuranceCoverDescription; return this;
}
public Currencies getCurrencies() {
return currencies;
}
public SegmentGroup6 setCurrencies(Currencies currencies) {
this.currencies = currencies; return this;
}
}