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

org.milyn.edi.unedifact.d05a.MEDREQ.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.d05a.MEDREQ;

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.edi.unedifact.d05a.common.ATTAttribute;    
import java.util.List;    
import org.milyn.edi.unedifact.d05a.common.RFFReference;    
import org.milyn.edi.unedifact.d05a.common.ADRAddress;    
import org.milyn.edi.unedifact.d05a.common.COMCommunicationContact;    
import org.milyn.edi.unedifact.d05a.common.HANHandlingInstructions;    
import org.milyn.edi.unedifact.d05a.common.RELRelationship;    
import org.milyn.edi.unedifact.d05a.common.IMDItemDescription;    
import org.milyn.edi.unedifact.d05a.common.FTXFreeText;    
import org.milyn.edi.unedifact.d05a.common.PNAPartyIdentification;    
import org.milyn.edi.unedifact.d05a.common.DTMDateTimePeriod;    
import org.milyn.edi.unedifact.d05a.common.PDIPersonDemographicInformation;    
import org.milyn.edi.unedifact.d05a.common.NATNationality;    
import org.milyn.edi.unedifact.d05a.common.LANLanguage;    
import org.milyn.edi.unedifact.d05a.common.CCICharacteristicClassId;    
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 ATTAttribute aTTAttribute;
    private List rFFReference;
    private List aDRAddress;
    private List cOMCommunicationContact;
    private List hANHandlingInstructions;
    private RELRelationship rELRelationship;
    private List iMDItemDescription;
    private List fTXFreeText;
    private List pNAPartyIdentification;
    private List dTMDateTimePeriod;
    private PDIPersonDemographicInformation pDIPersonDemographicInformation;
    private List nATNationality;
    private List lANLanguage;
    private List cCICharacteristicClassId;
    private List segmentGroup6;
    private List segmentGroup7;
    private List segmentGroup13;
    private List segmentGroup15;

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

        if(aTTAttribute != null) {
            nodeWriter.write("ATT");
            nodeWriter.write(delimiters.getField());
            aTTAttribute.write(nodeWriter, delimiters);
        }
        if(rFFReference != null && !rFFReference.isEmpty()) {
            for(RFFReference rFFReferenceInst : rFFReference) {
                nodeWriter.write("RFF");
                nodeWriter.write(delimiters.getField());
                rFFReferenceInst.write(nodeWriter, delimiters);
            }
        }
        if(aDRAddress != null && !aDRAddress.isEmpty()) {
            for(ADRAddress aDRAddressInst : aDRAddress) {
                nodeWriter.write("ADR");
                nodeWriter.write(delimiters.getField());
                aDRAddressInst.write(nodeWriter, delimiters);
            }
        }
        if(cOMCommunicationContact != null && !cOMCommunicationContact.isEmpty()) {
            for(COMCommunicationContact cOMCommunicationContactInst : cOMCommunicationContact) {
                nodeWriter.write("COM");
                nodeWriter.write(delimiters.getField());
                cOMCommunicationContactInst.write(nodeWriter, delimiters);
            }
        }
        if(hANHandlingInstructions != null && !hANHandlingInstructions.isEmpty()) {
            for(HANHandlingInstructions hANHandlingInstructionsInst : hANHandlingInstructions) {
                nodeWriter.write("HAN");
                nodeWriter.write(delimiters.getField());
                hANHandlingInstructionsInst.write(nodeWriter, delimiters);
            }
        }
        if(rELRelationship != null) {
            nodeWriter.write("REL");
            nodeWriter.write(delimiters.getField());
            rELRelationship.write(nodeWriter, delimiters);
        }
        if(iMDItemDescription != null && !iMDItemDescription.isEmpty()) {
            for(IMDItemDescription iMDItemDescriptionInst : iMDItemDescription) {
                nodeWriter.write("IMD");
                nodeWriter.write(delimiters.getField());
                iMDItemDescriptionInst.write(nodeWriter, delimiters);
            }
        }
        if(fTXFreeText != null && !fTXFreeText.isEmpty()) {
            for(FTXFreeText fTXFreeTextInst : fTXFreeText) {
                nodeWriter.write("FTX");
                nodeWriter.write(delimiters.getField());
                fTXFreeTextInst.write(nodeWriter, delimiters);
            }
        }
        if(pNAPartyIdentification != null && !pNAPartyIdentification.isEmpty()) {
            for(PNAPartyIdentification pNAPartyIdentificationInst : pNAPartyIdentification) {
                nodeWriter.write("PNA");
                nodeWriter.write(delimiters.getField());
                pNAPartyIdentificationInst.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(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);
            }
        }
        if(cCICharacteristicClassId != null && !cCICharacteristicClassId.isEmpty()) {
            for(CCICharacteristicClassId cCICharacteristicClassIdInst : cCICharacteristicClassId) {
                nodeWriter.write("CCI");
                nodeWriter.write(delimiters.getField());
                cCICharacteristicClassIdInst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup6 != null && !segmentGroup6.isEmpty()) {
            for(SegmentGroup6 segmentGroup6Inst : segmentGroup6) {
                segmentGroup6Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup7 != null && !segmentGroup7.isEmpty()) {
            for(SegmentGroup7 segmentGroup7Inst : segmentGroup7) {
                segmentGroup7Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup13 != null && !segmentGroup13.isEmpty()) {
            for(SegmentGroup13 segmentGroup13Inst : segmentGroup13) {
                segmentGroup13Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup15 != null && !segmentGroup15.isEmpty()) {
            for(SegmentGroup15 segmentGroup15Inst : segmentGroup15) {
                segmentGroup15Inst.write(nodeWriter, delimiters);
            }
        }
    }

    public ATTAttribute getATTAttribute() {
        return aTTAttribute;
    }

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

    public List getRFFReference() {
        return rFFReference;
    }

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

    public List getADRAddress() {
        return aDRAddress;
    }

    public SegmentGroup5 setADRAddress(List aDRAddress) {
        this.aDRAddress = aDRAddress;  return this;
    }

    public List getCOMCommunicationContact() {
        return cOMCommunicationContact;
    }

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

    public List getHANHandlingInstructions() {
        return hANHandlingInstructions;
    }

    public SegmentGroup5 setHANHandlingInstructions(List hANHandlingInstructions) {
        this.hANHandlingInstructions = hANHandlingInstructions;  return this;
    }

    public RELRelationship getRELRelationship() {
        return rELRelationship;
    }

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

    public List getIMDItemDescription() {
        return iMDItemDescription;
    }

    public SegmentGroup5 setIMDItemDescription(List iMDItemDescription) {
        this.iMDItemDescription = iMDItemDescription;  return this;
    }

    public List getFTXFreeText() {
        return fTXFreeText;
    }

    public SegmentGroup5 setFTXFreeText(List fTXFreeText) {
        this.fTXFreeText = fTXFreeText;  return this;
    }

    public List getPNAPartyIdentification() {
        return pNAPartyIdentification;
    }

    public SegmentGroup5 setPNAPartyIdentification(List pNAPartyIdentification) {
        this.pNAPartyIdentification = pNAPartyIdentification;  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 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;
    }

    public List getCCICharacteristicClassId() {
        return cCICharacteristicClassId;
    }

    public SegmentGroup5 setCCICharacteristicClassId(List cCICharacteristicClassId) {
        this.cCICharacteristicClassId = cCICharacteristicClassId;  return this;
    }

    public List getSegmentGroup6() {
        return segmentGroup6;
    }

    public SegmentGroup5 setSegmentGroup6(List segmentGroup6) {
        this.segmentGroup6 = segmentGroup6;  return this;
    }

    public List getSegmentGroup7() {
        return segmentGroup7;
    }

    public SegmentGroup5 setSegmentGroup7(List segmentGroup7) {
        this.segmentGroup7 = segmentGroup7;  return this;
    }

    public List getSegmentGroup13() {
        return segmentGroup13;
    }

    public SegmentGroup5 setSegmentGroup13(List segmentGroup13) {
        this.segmentGroup13 = segmentGroup13;  return this;
    }

    public List getSegmentGroup15() {
        return segmentGroup15;
    }

    public SegmentGroup5 setSegmentGroup15(List segmentGroup15) {
        this.segmentGroup15 = segmentGroup15;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy