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

org.milyn.edi.unedifact.d06b.JINFDE.SegmentGroup6 Maven / Gradle / Ivy

/**
 * This class was generated by Smooks EJC (http://www.smooks.org).
 */
package org.milyn.edi.unedifact.d06b.JINFDE;

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.edi.unedifact.d06b.common.PartyIdentification;    
import org.milyn.edi.unedifact.d06b.common.Address;    
import java.util.List;    
import org.milyn.edi.unedifact.d06b.common.PlaceLocationIdentification;    
import org.milyn.edi.unedifact.d06b.common.DateTimePeriod;    
import org.milyn.edi.unedifact.d06b.common.Nationality;    
import org.milyn.edi.unedifact.d06b.common.PersonDemographicInformation;    
import org.milyn.edi.unedifact.d06b.common.DocumentMessageDetails;    
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 PartyIdentification partyIdentification;
    private Address address;
    private List placeLocationIdentification;
    private List dateTimePeriod;
    private List nationality;
    private PersonDemographicInformation personDemographicInformation;
    private List documentMessageDetails;
    private List segmentGroup7;

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

        if(partyIdentification != null) {
            nodeWriter.write("PNA");
            nodeWriter.write(delimiters.getField());
            partyIdentification.write(nodeWriter, delimiters);
        }
        if(address != null) {
            nodeWriter.write("ADR");
            nodeWriter.write(delimiters.getField());
            address.write(nodeWriter, delimiters);
        }
        if(placeLocationIdentification != null && !placeLocationIdentification.isEmpty()) {
            for(PlaceLocationIdentification placeLocationIdentificationInst : placeLocationIdentification) {
                nodeWriter.write("LOC");
                nodeWriter.write(delimiters.getField());
                placeLocationIdentificationInst.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 && !nationality.isEmpty()) {
            for(Nationality nationalityInst : nationality) {
                nodeWriter.write("NAT");
                nodeWriter.write(delimiters.getField());
                nationalityInst.write(nodeWriter, delimiters);
            }
        }
        if(personDemographicInformation != null) {
            nodeWriter.write("PDI");
            nodeWriter.write(delimiters.getField());
            personDemographicInformation.write(nodeWriter, delimiters);
        }
        if(documentMessageDetails != null && !documentMessageDetails.isEmpty()) {
            for(DocumentMessageDetails documentMessageDetailsInst : documentMessageDetails) {
                nodeWriter.write("DOC");
                nodeWriter.write(delimiters.getField());
                documentMessageDetailsInst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup7 != null && !segmentGroup7.isEmpty()) {
            for(SegmentGroup7 segmentGroup7Inst : segmentGroup7) {
                segmentGroup7Inst.write(nodeWriter, delimiters);
            }
        }
    }

    public PartyIdentification getPartyIdentification() {
        return partyIdentification;
    }

    public SegmentGroup6 setPartyIdentification(PartyIdentification partyIdentification) {
        this.partyIdentification = partyIdentification;  return this;
    }

    public Address getAddress() {
        return address;
    }

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

    public List getPlaceLocationIdentification() {
        return placeLocationIdentification;
    }

    public SegmentGroup6 setPlaceLocationIdentification(List placeLocationIdentification) {
        this.placeLocationIdentification = placeLocationIdentification;  return this;
    }

    public List getDateTimePeriod() {
        return dateTimePeriod;
    }

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

    public List getNationality() {
        return nationality;
    }

    public SegmentGroup6 setNationality(List nationality) {
        this.nationality = nationality;  return this;
    }

    public PersonDemographicInformation getPersonDemographicInformation() {
        return personDemographicInformation;
    }

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

    public List getDocumentMessageDetails() {
        return documentMessageDetails;
    }

    public SegmentGroup6 setDocumentMessageDetails(List documentMessageDetails) {
        this.documentMessageDetails = documentMessageDetails;  return this;
    }

    public List getSegmentGroup7() {
        return segmentGroup7;
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy