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

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

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.edi.unedifact.d05a.common.SequenceDetails;    
import java.util.List;    
import org.milyn.edi.unedifact.d05a.common.PartyIdentification;    
import org.milyn.edi.unedifact.d05a.common.Identity;    
import org.milyn.edi.unedifact.d05a.common.OrganisationClassificationDetails;    
import org.milyn.edi.unedifact.d05a.common.Qualification;    
import org.milyn.edi.unedifact.d05a.common.EmploymentDetails;    
import org.milyn.edi.unedifact.d05a.common.Address;    
import org.milyn.edi.unedifact.d05a.common.CommunicationContact;    
import org.milyn.edi.unedifact.d05a.common.Reference;    
import java.io.Writer;    
import org.milyn.edisax.model.internal.Delimiters;    
import java.io.IOException;    

public class SegmentGroup1 implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private SequenceDetails sequenceDetails;
    private List partyIdentification;
    private List identity;
    private List organisationClassificationDetails;
    private List qualification;
    private EmploymentDetails employmentDetails;
    private Address address;
    private List communicationContact;
    private Reference reference;
    private List segmentGroup2;

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

        if(sequenceDetails != null) {
            nodeWriter.write("SEQ");
            nodeWriter.write(delimiters.getField());
            sequenceDetails.write(nodeWriter, delimiters);
        }
        if(partyIdentification != null && !partyIdentification.isEmpty()) {
            for(PartyIdentification partyIdentificationInst : partyIdentification) {
                nodeWriter.write("PNA");
                nodeWriter.write(delimiters.getField());
                partyIdentificationInst.write(nodeWriter, delimiters);
            }
        }
        if(identity != null && !identity.isEmpty()) {
            for(Identity identityInst : identity) {
                nodeWriter.write("IDE");
                nodeWriter.write(delimiters.getField());
                identityInst.write(nodeWriter, delimiters);
            }
        }
        if(organisationClassificationDetails != null && !organisationClassificationDetails.isEmpty()) {
            for(OrganisationClassificationDetails organisationClassificationDetailsInst : organisationClassificationDetails) {
                nodeWriter.write("SPR");
                nodeWriter.write(delimiters.getField());
                organisationClassificationDetailsInst.write(nodeWriter, delimiters);
            }
        }
        if(qualification != null && !qualification.isEmpty()) {
            for(Qualification qualificationInst : qualification) {
                nodeWriter.write("QUA");
                nodeWriter.write(delimiters.getField());
                qualificationInst.write(nodeWriter, delimiters);
            }
        }
        if(employmentDetails != null) {
            nodeWriter.write("EMP");
            nodeWriter.write(delimiters.getField());
            employmentDetails.write(nodeWriter, delimiters);
        }
        if(address != null) {
            nodeWriter.write("ADR");
            nodeWriter.write(delimiters.getField());
            address.write(nodeWriter, delimiters);
        }
        if(communicationContact != null && !communicationContact.isEmpty()) {
            for(CommunicationContact communicationContactInst : communicationContact) {
                nodeWriter.write("COM");
                nodeWriter.write(delimiters.getField());
                communicationContactInst.write(nodeWriter, delimiters);
            }
        }
        if(reference != null) {
            nodeWriter.write("RFF");
            nodeWriter.write(delimiters.getField());
            reference.write(nodeWriter, delimiters);
        }
        if(segmentGroup2 != null && !segmentGroup2.isEmpty()) {
            for(SegmentGroup2 segmentGroup2Inst : segmentGroup2) {
                segmentGroup2Inst.write(nodeWriter, delimiters);
            }
        }
    }

    public SequenceDetails getSequenceDetails() {
        return sequenceDetails;
    }

    public SegmentGroup1 setSequenceDetails(SequenceDetails sequenceDetails) {
        this.sequenceDetails = sequenceDetails;  return this;
    }

    public List getPartyIdentification() {
        return partyIdentification;
    }

    public SegmentGroup1 setPartyIdentification(List partyIdentification) {
        this.partyIdentification = partyIdentification;  return this;
    }

    public List getIdentity() {
        return identity;
    }

    public SegmentGroup1 setIdentity(List identity) {
        this.identity = identity;  return this;
    }

    public List getOrganisationClassificationDetails() {
        return organisationClassificationDetails;
    }

    public SegmentGroup1 setOrganisationClassificationDetails(List organisationClassificationDetails) {
        this.organisationClassificationDetails = organisationClassificationDetails;  return this;
    }

    public List getQualification() {
        return qualification;
    }

    public SegmentGroup1 setQualification(List qualification) {
        this.qualification = qualification;  return this;
    }

    public EmploymentDetails getEmploymentDetails() {
        return employmentDetails;
    }

    public SegmentGroup1 setEmploymentDetails(EmploymentDetails employmentDetails) {
        this.employmentDetails = employmentDetails;  return this;
    }

    public Address getAddress() {
        return address;
    }

    public SegmentGroup1 setAddress(Address address) {
        this.address = address;  return this;
    }

    public List getCommunicationContact() {
        return communicationContact;
    }

    public SegmentGroup1 setCommunicationContact(List communicationContact) {
        this.communicationContact = communicationContact;  return this;
    }

    public Reference getReference() {
        return reference;
    }

    public SegmentGroup1 setReference(Reference reference) {
        this.reference = reference;  return this;
    }

    public List getSegmentGroup2() {
        return segmentGroup2;
    }

    public SegmentGroup1 setSegmentGroup2(List segmentGroup2) {
        this.segmentGroup2 = segmentGroup2;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy