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

org.milyn.edi.unedifact.d99b.MEDPRE.SegmentGroup18 Maven / Gradle / Ivy

The newest version!
/**
 * This class was generated by Smooks EJC (http://www.smooks.org).
 */
package org.milyn.edi.unedifact.d99b.MEDPRE;

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.edi.unedifact.d99b.common.ICDInsuranceCoverDescription;    
import java.util.List;    
import org.milyn.edi.unedifact.d99b.common.ALCAllowanceOrCharge;    
import org.milyn.edi.unedifact.d99b.common.PCDPercentageDetails;    
import org.milyn.edi.unedifact.d99b.common.MOAMonetaryAmount;    
import org.milyn.edi.unedifact.d99b.common.IDEIdentity;    
import org.milyn.edi.unedifact.d99b.common.DTMDateTimePeriod;    
import java.io.Writer;    
import org.milyn.edisax.model.internal.Delimiters;    
import java.io.IOException;    

public class SegmentGroup18 implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private ICDInsuranceCoverDescription iCDInsuranceCoverDescription;
    private List aLCAllowanceOrCharge;
    private PCDPercentageDetails pCDPercentageDetails;
    private List mOAMonetaryAmount;
    private List iDEIdentity;
    private List dTMDateTimePeriod;

    public void write(Writer writer, Delimiters delimiters) throws IOException {
        
        Writer nodeWriter = writer;

        if(iCDInsuranceCoverDescription != null) {
            nodeWriter.write("ICD");
            nodeWriter.write(delimiters.getField());
            iCDInsuranceCoverDescription.write(nodeWriter, delimiters);
        }
        if(aLCAllowanceOrCharge != null && !aLCAllowanceOrCharge.isEmpty()) {
            for(ALCAllowanceOrCharge aLCAllowanceOrChargeInst : aLCAllowanceOrCharge) {
                nodeWriter.write("ALC");
                nodeWriter.write(delimiters.getField());
                aLCAllowanceOrChargeInst.write(nodeWriter, delimiters);
            }
        }
        if(pCDPercentageDetails != null) {
            nodeWriter.write("PCD");
            nodeWriter.write(delimiters.getField());
            pCDPercentageDetails.write(nodeWriter, delimiters);
        }
        if(mOAMonetaryAmount != null && !mOAMonetaryAmount.isEmpty()) {
            for(MOAMonetaryAmount mOAMonetaryAmountInst : mOAMonetaryAmount) {
                nodeWriter.write("MOA");
                nodeWriter.write(delimiters.getField());
                mOAMonetaryAmountInst.write(nodeWriter, delimiters);
            }
        }
        if(iDEIdentity != null && !iDEIdentity.isEmpty()) {
            for(IDEIdentity iDEIdentityInst : iDEIdentity) {
                nodeWriter.write("IDE");
                nodeWriter.write(delimiters.getField());
                iDEIdentityInst.write(nodeWriter, delimiters);
            }
        }
        if(dTMDateTimePeriod != null && !dTMDateTimePeriod.isEmpty()) {
            for(DTMDateTimePeriod dTMDateTimePeriodInst : dTMDateTimePeriod) {
                nodeWriter.write("DTM");
                nodeWriter.write(delimiters.getField());
                dTMDateTimePeriodInst.write(nodeWriter, delimiters);
            }
        }
    }

    public ICDInsuranceCoverDescription getICDInsuranceCoverDescription() {
        return iCDInsuranceCoverDescription;
    }

    public SegmentGroup18 setICDInsuranceCoverDescription(ICDInsuranceCoverDescription iCDInsuranceCoverDescription) {
        this.iCDInsuranceCoverDescription = iCDInsuranceCoverDescription;  return this;
    }

    public List getALCAllowanceOrCharge() {
        return aLCAllowanceOrCharge;
    }

    public SegmentGroup18 setALCAllowanceOrCharge(List aLCAllowanceOrCharge) {
        this.aLCAllowanceOrCharge = aLCAllowanceOrCharge;  return this;
    }

    public PCDPercentageDetails getPCDPercentageDetails() {
        return pCDPercentageDetails;
    }

    public SegmentGroup18 setPCDPercentageDetails(PCDPercentageDetails pCDPercentageDetails) {
        this.pCDPercentageDetails = pCDPercentageDetails;  return this;
    }

    public List getMOAMonetaryAmount() {
        return mOAMonetaryAmount;
    }

    public SegmentGroup18 setMOAMonetaryAmount(List mOAMonetaryAmount) {
        this.mOAMonetaryAmount = mOAMonetaryAmount;  return this;
    }

    public List getIDEIdentity() {
        return iDEIdentity;
    }

    public SegmentGroup18 setIDEIdentity(List iDEIdentity) {
        this.iDEIdentity = iDEIdentity;  return this;
    }

    public List getDTMDateTimePeriod() {
        return dTMDateTimePeriod;
    }

    public SegmentGroup18 setDTMDateTimePeriod(List dTMDateTimePeriod) {
        this.dTMDateTimePeriod = dTMDateTimePeriod;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy