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

org.milyn.edi.unedifact.d07a.ICSOLI.SegmentGroup5 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.d07a.ICSOLI;

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.edi.unedifact.d07a.common.CODComponentDetails;    
import java.util.List;    
import org.milyn.edi.unedifact.d07a.common.ATTAttribute;    
import org.milyn.edi.unedifact.d07a.common.IDEIdentity;    
import org.milyn.edi.unedifact.d07a.common.RFFReference;    
import org.milyn.edi.unedifact.d07a.common.DTMDateTimePeriod;    
import org.milyn.edi.unedifact.d07a.common.MOAMonetaryAmount;    
import org.milyn.edi.unedifact.d07a.common.EQNNumberOfUnits;    
import org.milyn.edi.unedifact.d07a.common.QRSQueryAndResponse;    
import java.io.Writer;    
import org.milyn.edisax.model.internal.Delimiters;    
import java.io.IOException;    

public class SegmentGroup5 implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private CODComponentDetails cODComponentDetails;
    private List aTTAttribute;
    private IDEIdentity iDEIdentity;
    private List rFFReference;
    private List dTMDateTimePeriod;
    private List mOAMonetaryAmount;
    private List eQNNumberOfUnits;
    private List qRSQueryAndResponse;

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

        if(cODComponentDetails != null) {
            nodeWriter.write("COD");
            nodeWriter.write(delimiters.getField());
            cODComponentDetails.write(nodeWriter, delimiters);
        }
        if(aTTAttribute != null && !aTTAttribute.isEmpty()) {
            for(ATTAttribute aTTAttributeInst : aTTAttribute) {
                nodeWriter.write("ATT");
                nodeWriter.write(delimiters.getField());
                aTTAttributeInst.write(nodeWriter, delimiters);
            }
        }
        if(iDEIdentity != null) {
            nodeWriter.write("IDE");
            nodeWriter.write(delimiters.getField());
            iDEIdentity.write(nodeWriter, delimiters);
        }
        if(rFFReference != null && !rFFReference.isEmpty()) {
            for(RFFReference rFFReferenceInst : rFFReference) {
                nodeWriter.write("RFF");
                nodeWriter.write(delimiters.getField());
                rFFReferenceInst.write(nodeWriter, delimiters);
            }
        }
        if(dTMDateTimePeriod != null && !dTMDateTimePeriod.isEmpty()) {
            for(DTMDateTimePeriod dTMDateTimePeriodInst : dTMDateTimePeriod) {
                nodeWriter.write("DTM");
                nodeWriter.write(delimiters.getField());
                dTMDateTimePeriodInst.write(nodeWriter, delimiters);
            }
        }
        if(mOAMonetaryAmount != null && !mOAMonetaryAmount.isEmpty()) {
            for(MOAMonetaryAmount mOAMonetaryAmountInst : mOAMonetaryAmount) {
                nodeWriter.write("MOA");
                nodeWriter.write(delimiters.getField());
                mOAMonetaryAmountInst.write(nodeWriter, delimiters);
            }
        }
        if(eQNNumberOfUnits != null && !eQNNumberOfUnits.isEmpty()) {
            for(EQNNumberOfUnits eQNNumberOfUnitsInst : eQNNumberOfUnits) {
                nodeWriter.write("EQN");
                nodeWriter.write(delimiters.getField());
                eQNNumberOfUnitsInst.write(nodeWriter, delimiters);
            }
        }
        if(qRSQueryAndResponse != null && !qRSQueryAndResponse.isEmpty()) {
            for(QRSQueryAndResponse qRSQueryAndResponseInst : qRSQueryAndResponse) {
                nodeWriter.write("QRS");
                nodeWriter.write(delimiters.getField());
                qRSQueryAndResponseInst.write(nodeWriter, delimiters);
            }
        }
    }

    public CODComponentDetails getCODComponentDetails() {
        return cODComponentDetails;
    }

    public SegmentGroup5 setCODComponentDetails(CODComponentDetails cODComponentDetails) {
        this.cODComponentDetails = cODComponentDetails;  return this;
    }

    public List getATTAttribute() {
        return aTTAttribute;
    }

    public SegmentGroup5 setATTAttribute(List aTTAttribute) {
        this.aTTAttribute = aTTAttribute;  return this;
    }

    public IDEIdentity getIDEIdentity() {
        return iDEIdentity;
    }

    public SegmentGroup5 setIDEIdentity(IDEIdentity iDEIdentity) {
        this.iDEIdentity = iDEIdentity;  return this;
    }

    public List getRFFReference() {
        return rFFReference;
    }

    public SegmentGroup5 setRFFReference(List rFFReference) {
        this.rFFReference = rFFReference;  return this;
    }

    public List getDTMDateTimePeriod() {
        return dTMDateTimePeriod;
    }

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

    public List getMOAMonetaryAmount() {
        return mOAMonetaryAmount;
    }

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

    public List getEQNNumberOfUnits() {
        return eQNNumberOfUnits;
    }

    public SegmentGroup5 setEQNNumberOfUnits(List eQNNumberOfUnits) {
        this.eQNNumberOfUnits = eQNNumberOfUnits;  return this;
    }

    public List getQRSQueryAndResponse() {
        return qRSQueryAndResponse;
    }

    public SegmentGroup5 setQRSQueryAndResponse(List qRSQueryAndResponse) {
        this.qRSQueryAndResponse = qRSQueryAndResponse;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy