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

org.milyn.edi.unedifact.d09b.IPPOAD.SegmentGroup18 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.d09b.IPPOAD;

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.edi.unedifact.d09b.common.IMDItemDescription;    
import java.util.List;    
import org.milyn.edi.unedifact.d09b.common.IDEIdentity;    
import org.milyn.edi.unedifact.d09b.common.DTMDateTimePeriod;    
import org.milyn.edi.unedifact.d09b.common.PNAPartyIdentification;    
import org.milyn.edi.unedifact.d09b.common.QRSQueryAndResponse;    
import org.milyn.edi.unedifact.d09b.common.RFFReference;    
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 IMDItemDescription iMDItemDescription;
    private List iDEIdentity;
    private List dTMDateTimePeriod;
    private List pNAPartyIdentification;
    private List qRSQueryAndResponse;
    private List rFFReference;

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

        if(iMDItemDescription != null) {
            nodeWriter.write("IMD");
            nodeWriter.write(delimiters.getField());
            iMDItemDescription.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);
            }
        }
        if(pNAPartyIdentification != null && !pNAPartyIdentification.isEmpty()) {
            for(PNAPartyIdentification pNAPartyIdentificationInst : pNAPartyIdentification) {
                nodeWriter.write("PNA");
                nodeWriter.write(delimiters.getField());
                pNAPartyIdentificationInst.write(nodeWriter, delimiters);
            }
        }
        if(qRSQueryAndResponse != null && !qRSQueryAndResponse.isEmpty()) {
            for(QRSQueryAndResponse qRSQueryAndResponseInst : qRSQueryAndResponse) {
                nodeWriter.write("QRS");
                nodeWriter.write(delimiters.getField());
                qRSQueryAndResponseInst.write(nodeWriter, delimiters);
            }
        }
        if(rFFReference != null && !rFFReference.isEmpty()) {
            for(RFFReference rFFReferenceInst : rFFReference) {
                nodeWriter.write("RFF");
                nodeWriter.write(delimiters.getField());
                rFFReferenceInst.write(nodeWriter, delimiters);
            }
        }
    }

    public IMDItemDescription getIMDItemDescription() {
        return iMDItemDescription;
    }

    public SegmentGroup18 setIMDItemDescription(IMDItemDescription iMDItemDescription) {
        this.iMDItemDescription = iMDItemDescription;  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;
    }

    public List getPNAPartyIdentification() {
        return pNAPartyIdentification;
    }

    public SegmentGroup18 setPNAPartyIdentification(List pNAPartyIdentification) {
        this.pNAPartyIdentification = pNAPartyIdentification;  return this;
    }

    public List getQRSQueryAndResponse() {
        return qRSQueryAndResponse;
    }

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

    public List getRFFReference() {
        return rFFReference;
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy