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

org.milyn.edi.unedifact.d05a.MEDPRE.SegmentGroup3 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.Attribute;    
import java.util.List;    
import org.milyn.edi.unedifact.d05a.common.PartyIdentification;    
import org.milyn.edi.unedifact.d05a.common.PersonDemographicInformation;    
import org.milyn.edi.unedifact.d05a.common.Identity;    
import org.milyn.edi.unedifact.d05a.common.DateTimePeriod;    
import org.milyn.edi.unedifact.d05a.common.Nationality;    
import org.milyn.edi.unedifact.d05a.common.AgreementIdentification;    
import org.milyn.edi.unedifact.d05a.common.CharacteristicClassId;    
import org.milyn.edi.unedifact.d05a.common.Status;    
import org.milyn.edi.unedifact.d05a.common.FreeText;    
import org.milyn.edi.unedifact.d05a.common.Language;    
import org.milyn.edi.unedifact.d05a.common.CharacteristicValue;    
import java.io.Writer;    
import org.milyn.edisax.model.internal.Delimiters;    
import java.io.IOException;    

public class SegmentGroup3 implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private Attribute attribute;
    private List partyIdentification;
    private PersonDemographicInformation personDemographicInformation;
    private List identity;
    private List dateTimePeriod;
    private Nationality nationality;
    private List agreementIdentification;
    private List characteristicClassId;
    private Status status;
    private List freeText;
    private Language language;
    private CharacteristicValue characteristicValue;
    private List segmentGroup4;
    private List segmentGroup5;
    private List segmentGroup6;
    private List segmentGroup7;

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

        if(attribute != null) {
            nodeWriter.write("ATT");
            nodeWriter.write(delimiters.getField());
            attribute.write(nodeWriter, delimiters);
        }
        if(partyIdentification != null && !partyIdentification.isEmpty()) {
            for(PartyIdentification partyIdentificationInst : partyIdentification) {
                nodeWriter.write("PNA");
                nodeWriter.write(delimiters.getField());
                partyIdentificationInst.write(nodeWriter, delimiters);
            }
        }
        if(personDemographicInformation != null) {
            nodeWriter.write("PDI");
            nodeWriter.write(delimiters.getField());
            personDemographicInformation.write(nodeWriter, delimiters);
        }
        if(identity != null && !identity.isEmpty()) {
            for(Identity identityInst : identity) {
                nodeWriter.write("IDE");
                nodeWriter.write(delimiters.getField());
                identityInst.write(nodeWriter, delimiters);
            }
        }
        if(dateTimePeriod != null && !dateTimePeriod.isEmpty()) {
            for(DateTimePeriod dateTimePeriodInst : dateTimePeriod) {
                nodeWriter.write("DTM");
                nodeWriter.write(delimiters.getField());
                dateTimePeriodInst.write(nodeWriter, delimiters);
            }
        }
        if(nationality != null) {
            nodeWriter.write("NAT");
            nodeWriter.write(delimiters.getField());
            nationality.write(nodeWriter, delimiters);
        }
        if(agreementIdentification != null && !agreementIdentification.isEmpty()) {
            for(AgreementIdentification agreementIdentificationInst : agreementIdentification) {
                nodeWriter.write("AGR");
                nodeWriter.write(delimiters.getField());
                agreementIdentificationInst.write(nodeWriter, delimiters);
            }
        }
        if(characteristicClassId != null && !characteristicClassId.isEmpty()) {
            for(CharacteristicClassId characteristicClassIdInst : characteristicClassId) {
                nodeWriter.write("CCI");
                nodeWriter.write(delimiters.getField());
                characteristicClassIdInst.write(nodeWriter, delimiters);
            }
        }
        if(status != null) {
            nodeWriter.write("STS");
            nodeWriter.write(delimiters.getField());
            status.write(nodeWriter, delimiters);
        }
        if(freeText != null && !freeText.isEmpty()) {
            for(FreeText freeTextInst : freeText) {
                nodeWriter.write("FTX");
                nodeWriter.write(delimiters.getField());
                freeTextInst.write(nodeWriter, delimiters);
            }
        }
        if(language != null) {
            nodeWriter.write("LAN");
            nodeWriter.write(delimiters.getField());
            language.write(nodeWriter, delimiters);
        }
        if(characteristicValue != null) {
            nodeWriter.write("CAV");
            nodeWriter.write(delimiters.getField());
            characteristicValue.write(nodeWriter, delimiters);
        }
        if(segmentGroup4 != null && !segmentGroup4.isEmpty()) {
            for(SegmentGroup4 segmentGroup4Inst : segmentGroup4) {
                segmentGroup4Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup5 != null && !segmentGroup5.isEmpty()) {
            for(SegmentGroup5 segmentGroup5Inst : segmentGroup5) {
                segmentGroup5Inst.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);
            }
        }
    }

    public Attribute getAttribute() {
        return attribute;
    }

    public SegmentGroup3 setAttribute(Attribute attribute) {
        this.attribute = attribute;  return this;
    }

    public List getPartyIdentification() {
        return partyIdentification;
    }

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

    public PersonDemographicInformation getPersonDemographicInformation() {
        return personDemographicInformation;
    }

    public SegmentGroup3 setPersonDemographicInformation(PersonDemographicInformation personDemographicInformation) {
        this.personDemographicInformation = personDemographicInformation;  return this;
    }

    public List getIdentity() {
        return identity;
    }

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

    public List getDateTimePeriod() {
        return dateTimePeriod;
    }

    public SegmentGroup3 setDateTimePeriod(List dateTimePeriod) {
        this.dateTimePeriod = dateTimePeriod;  return this;
    }

    public Nationality getNationality() {
        return nationality;
    }

    public SegmentGroup3 setNationality(Nationality nationality) {
        this.nationality = nationality;  return this;
    }

    public List getAgreementIdentification() {
        return agreementIdentification;
    }

    public SegmentGroup3 setAgreementIdentification(List agreementIdentification) {
        this.agreementIdentification = agreementIdentification;  return this;
    }

    public List getCharacteristicClassId() {
        return characteristicClassId;
    }

    public SegmentGroup3 setCharacteristicClassId(List characteristicClassId) {
        this.characteristicClassId = characteristicClassId;  return this;
    }

    public Status getStatus() {
        return status;
    }

    public SegmentGroup3 setStatus(Status status) {
        this.status = status;  return this;
    }

    public List getFreeText() {
        return freeText;
    }

    public SegmentGroup3 setFreeText(List freeText) {
        this.freeText = freeText;  return this;
    }

    public Language getLanguage() {
        return language;
    }

    public SegmentGroup3 setLanguage(Language language) {
        this.language = language;  return this;
    }

    public CharacteristicValue getCharacteristicValue() {
        return characteristicValue;
    }

    public SegmentGroup3 setCharacteristicValue(CharacteristicValue characteristicValue) {
        this.characteristicValue = characteristicValue;  return this;
    }

    public List getSegmentGroup4() {
        return segmentGroup4;
    }

    public SegmentGroup3 setSegmentGroup4(List segmentGroup4) {
        this.segmentGroup4 = segmentGroup4;  return this;
    }

    public List getSegmentGroup5() {
        return segmentGroup5;
    }

    public SegmentGroup3 setSegmentGroup5(List segmentGroup5) {
        this.segmentGroup5 = segmentGroup5;  return this;
    }

    public List getSegmentGroup6() {
        return segmentGroup6;
    }

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

    public List getSegmentGroup7() {
        return segmentGroup7;
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy