All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.milyn.edi.unedifact.d98a.PRPAID.SegmentGroup6 Maven / Gradle / Ivy

There is a newer version: 1.7.1.0
Show newest version
/**
 * This class was generated by Smooks EJC (http://www.smooks.org).
 */
package org.milyn.edi.unedifact.d98a.PRPAID;

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.edi.unedifact.d98a.common.MonetaryAmount;    
import org.milyn.edi.unedifact.d98a.common.GeneralIndicator;    
import org.milyn.edi.unedifact.d98a.common.DateTimePeriod;    
import org.milyn.edi.unedifact.d98a.common.Reference;    
import org.milyn.edi.unedifact.d98a.common.Attribute;    
import org.milyn.edi.unedifact.d98a.common.InsuranceCoverDescription;    
import org.milyn.edi.unedifact.d98a.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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy