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

org.milyn.edi.unedifact.d11b.MEDPRE.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.d11b.MEDPRE;

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.edi.unedifact.d11b.common.RELRelationship;    
import java.util.List;    
import org.milyn.edi.unedifact.d11b.common.PNAPartyIdentification;    
import org.milyn.edi.unedifact.d11b.common.PDIPersonDemographicInformation;    
import org.milyn.edi.unedifact.d11b.common.ADRAddress;    
import org.milyn.edi.unedifact.d11b.common.COMCommunicationContact;    
import org.milyn.edi.unedifact.d11b.common.LANLanguage;    
import org.milyn.edi.unedifact.d11b.common.CAVCharacteristicValue;    
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 RELRelationship rELRelationship;
    private List pNAPartyIdentification;
    private PDIPersonDemographicInformation pDIPersonDemographicInformation;
    private ADRAddress aDRAddress;
    private List cOMCommunicationContact;
    private LANLanguage lANLanguage;
    private CAVCharacteristicValue cAVCharacteristicValue;

    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 && !pNAPartyIdentification.isEmpty()) {
            for(PNAPartyIdentification pNAPartyIdentificationInst : pNAPartyIdentification) {
                nodeWriter.write("PNA");
                nodeWriter.write(delimiters.getField());
                pNAPartyIdentificationInst.write(nodeWriter, delimiters);
            }
        }
        if(pDIPersonDemographicInformation != null) {
            nodeWriter.write("PDI");
            nodeWriter.write(delimiters.getField());
            pDIPersonDemographicInformation.write(nodeWriter, delimiters);
        }
        if(aDRAddress != null) {
            nodeWriter.write("ADR");
            nodeWriter.write(delimiters.getField());
            aDRAddress.write(nodeWriter, delimiters);
        }
        if(cOMCommunicationContact != null && !cOMCommunicationContact.isEmpty()) {
            for(COMCommunicationContact cOMCommunicationContactInst : cOMCommunicationContact) {
                nodeWriter.write("COM");
                nodeWriter.write(delimiters.getField());
                cOMCommunicationContactInst.write(nodeWriter, delimiters);
            }
        }
        if(lANLanguage != null) {
            nodeWriter.write("LAN");
            nodeWriter.write(delimiters.getField());
            lANLanguage.write(nodeWriter, delimiters);
        }
        if(cAVCharacteristicValue != null) {
            nodeWriter.write("CAV");
            nodeWriter.write(delimiters.getField());
            cAVCharacteristicValue.write(nodeWriter, delimiters);
        }
    }

    public RELRelationship getRELRelationship() {
        return rELRelationship;
    }

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

    public List getPNAPartyIdentification() {
        return pNAPartyIdentification;
    }

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

    public PDIPersonDemographicInformation getPDIPersonDemographicInformation() {
        return pDIPersonDemographicInformation;
    }

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

    public ADRAddress getADRAddress() {
        return aDRAddress;
    }

    public SegmentGroup6 setADRAddress(ADRAddress aDRAddress) {
        this.aDRAddress = aDRAddress;  return this;
    }

    public List getCOMCommunicationContact() {
        return cOMCommunicationContact;
    }

    public SegmentGroup6 setCOMCommunicationContact(List cOMCommunicationContact) {
        this.cOMCommunicationContact = cOMCommunicationContact;  return this;
    }

    public LANLanguage getLANLanguage() {
        return lANLanguage;
    }

    public SegmentGroup6 setLANLanguage(LANLanguage lANLanguage) {
        this.lANLanguage = lANLanguage;  return this;
    }

    public CAVCharacteristicValue getCAVCharacteristicValue() {
        return cAVCharacteristicValue;
    }

    public SegmentGroup6 setCAVCharacteristicValue(CAVCharacteristicValue cAVCharacteristicValue) {
        this.cAVCharacteristicValue = cAVCharacteristicValue;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy