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

org.milyn.edi.unedifact.d98a.MEDPID.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.d98a.MEDPID;

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.edi.unedifact.d98a.common.RELRelationship;    
import org.milyn.edi.unedifact.d98a.common.PNAPartyIdentification;    
import java.util.List;    
import org.milyn.edi.unedifact.d98a.common.ADRAddress;    
import org.milyn.edi.unedifact.d98a.common.RFFReference;    
import org.milyn.edi.unedifact.d98a.common.DTMDateTimePeriod;    
import org.milyn.edi.unedifact.d98a.common.PDIPersonDemographicInformation;    
import org.milyn.edi.unedifact.d98a.common.IHCPersonCharacteristic;    
import org.milyn.edi.unedifact.d98a.common.NATNationality;    
import org.milyn.edi.unedifact.d98a.common.LANLanguage;    
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 RELRelationship rELRelationship;
    private PNAPartyIdentification pNAPartyIdentification;
    private List aDRAddress;
    private List rFFReference;
    private List dTMDateTimePeriod;
    private PDIPersonDemographicInformation pDIPersonDemographicInformation;
    private List iHCPersonCharacteristic;
    private List nATNationality;
    private List lANLanguage;

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

        if(rELRelationship != null) {
            nodeWriter.write("REL");
            nodeWriter.write(delimiters.getField());
            rELRelationship.write(nodeWriter, delimiters);
        }
        if(pNAPartyIdentification != null) {
            nodeWriter.write("PNA");
            nodeWriter.write(delimiters.getField());
            pNAPartyIdentification.write(nodeWriter, delimiters);
        }
        if(aDRAddress != null && !aDRAddress.isEmpty()) {
            for(ADRAddress aDRAddressInst : aDRAddress) {
                nodeWriter.write("ADR");
                nodeWriter.write(delimiters.getField());
                aDRAddressInst.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(pDIPersonDemographicInformation != null) {
            nodeWriter.write("PDI");
            nodeWriter.write(delimiters.getField());
            pDIPersonDemographicInformation.write(nodeWriter, delimiters);
        }
        if(iHCPersonCharacteristic != null && !iHCPersonCharacteristic.isEmpty()) {
            for(IHCPersonCharacteristic iHCPersonCharacteristicInst : iHCPersonCharacteristic) {
                nodeWriter.write("IHC");
                nodeWriter.write(delimiters.getField());
                iHCPersonCharacteristicInst.write(nodeWriter, delimiters);
            }
        }
        if(nATNationality != null && !nATNationality.isEmpty()) {
            for(NATNationality nATNationalityInst : nATNationality) {
                nodeWriter.write("NAT");
                nodeWriter.write(delimiters.getField());
                nATNationalityInst.write(nodeWriter, delimiters);
            }
        }
        if(lANLanguage != null && !lANLanguage.isEmpty()) {
            for(LANLanguage lANLanguageInst : lANLanguage) {
                nodeWriter.write("LAN");
                nodeWriter.write(delimiters.getField());
                lANLanguageInst.write(nodeWriter, delimiters);
            }
        }
    }

    public RELRelationship getRELRelationship() {
        return rELRelationship;
    }

    public SegmentGroup5 setRELRelationship(RELRelationship rELRelationship) {
        this.rELRelationship = rELRelationship;  return this;
    }

    public PNAPartyIdentification getPNAPartyIdentification() {
        return pNAPartyIdentification;
    }

    public SegmentGroup5 setPNAPartyIdentification(PNAPartyIdentification pNAPartyIdentification) {
        this.pNAPartyIdentification = pNAPartyIdentification;  return this;
    }

    public List getADRAddress() {
        return aDRAddress;
    }

    public SegmentGroup5 setADRAddress(List aDRAddress) {
        this.aDRAddress = aDRAddress;  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 PDIPersonDemographicInformation getPDIPersonDemographicInformation() {
        return pDIPersonDemographicInformation;
    }

    public SegmentGroup5 setPDIPersonDemographicInformation(PDIPersonDemographicInformation pDIPersonDemographicInformation) {
        this.pDIPersonDemographicInformation = pDIPersonDemographicInformation;  return this;
    }

    public List getIHCPersonCharacteristic() {
        return iHCPersonCharacteristic;
    }

    public SegmentGroup5 setIHCPersonCharacteristic(List iHCPersonCharacteristic) {
        this.iHCPersonCharacteristic = iHCPersonCharacteristic;  return this;
    }

    public List getNATNationality() {
        return nATNationality;
    }

    public SegmentGroup5 setNATNationality(List nATNationality) {
        this.nATNationality = nATNationality;  return this;
    }

    public List getLANLanguage() {
        return lANLanguage;
    }

    public SegmentGroup5 setLANLanguage(List lANLanguage) {
        this.lANLanguage = lANLanguage;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy