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

org.virtuslab.edi.unedifact.d99a.JINFDE.SegmentGroup6 Maven / Gradle / Ivy

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

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.virtuslab.edi.unedifact.d99a.common.PNAPartyIdentification;    
import org.virtuslab.edi.unedifact.d99a.common.ADRAddress;    
import java.util.List;    
import org.virtuslab.edi.unedifact.d99a.common.LOCPlaceLocationIdentification;    
import org.virtuslab.edi.unedifact.d99a.common.DTMDateTimePeriod;    
import org.virtuslab.edi.unedifact.d99a.common.NATNationality;    
import org.virtuslab.edi.unedifact.d99a.common.PDIPersonDemographicInformation;    
import org.virtuslab.edi.unedifact.d99a.common.DOCDocumentMessageDetails;    
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 PNAPartyIdentification pNAPartyIdentification;
    private ADRAddress aDRAddress;
    private List lOCPlaceLocationIdentification;
    private List dTMDateTimePeriod;
    private List nATNationality;
    private PDIPersonDemographicInformation pDIPersonDemographicInformation;
    private List dOCDocumentMessageDetails;
    private List segmentGroup7;

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

        if(pNAPartyIdentification != null) {
            nodeWriter.write("PNA");
            nodeWriter.write(delimiters.getField());
            pNAPartyIdentification.write(nodeWriter, delimiters);
        }
        if(aDRAddress != null) {
            nodeWriter.write("ADR");
            nodeWriter.write(delimiters.getField());
            aDRAddress.write(nodeWriter, delimiters);
        }
        if(lOCPlaceLocationIdentification != null && !lOCPlaceLocationIdentification.isEmpty()) {
            for(LOCPlaceLocationIdentification lOCPlaceLocationIdentificationInst : lOCPlaceLocationIdentification) {
                nodeWriter.write("LOC");
                nodeWriter.write(delimiters.getField());
                lOCPlaceLocationIdentificationInst.write(nodeWriter, delimiters);
            }
        }
        if(dTMDateTimePeriod != null && !dTMDateTimePeriod.isEmpty()) {
            for(DTMDateTimePeriod dTMDateTimePeriodInst : dTMDateTimePeriod) {
                nodeWriter.write("DTM");
                nodeWriter.write(delimiters.getField());
                dTMDateTimePeriodInst.write(nodeWriter, delimiters);
            }
        }
        if(nATNationality != null && !nATNationality.isEmpty()) {
            for(NATNationality nATNationalityInst : nATNationality) {
                nodeWriter.write("NAT");
                nodeWriter.write(delimiters.getField());
                nATNationalityInst.write(nodeWriter, delimiters);
            }
        }
        if(pDIPersonDemographicInformation != null) {
            nodeWriter.write("PDI");
            nodeWriter.write(delimiters.getField());
            pDIPersonDemographicInformation.write(nodeWriter, delimiters);
        }
        if(dOCDocumentMessageDetails != null && !dOCDocumentMessageDetails.isEmpty()) {
            for(DOCDocumentMessageDetails dOCDocumentMessageDetailsInst : dOCDocumentMessageDetails) {
                nodeWriter.write("DOC");
                nodeWriter.write(delimiters.getField());
                dOCDocumentMessageDetailsInst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup7 != null && !segmentGroup7.isEmpty()) {
            for(SegmentGroup7 segmentGroup7Inst : segmentGroup7) {
                segmentGroup7Inst.write(nodeWriter, delimiters);
            }
        }
    }

    public PNAPartyIdentification getPNAPartyIdentification() {
        return pNAPartyIdentification;
    }

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

    public ADRAddress getADRAddress() {
        return aDRAddress;
    }

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

    public List getLOCPlaceLocationIdentification() {
        return lOCPlaceLocationIdentification;
    }

    public SegmentGroup6 setLOCPlaceLocationIdentification(List lOCPlaceLocationIdentification) {
        this.lOCPlaceLocationIdentification = lOCPlaceLocationIdentification;  return this;
    }

    public List getDTMDateTimePeriod() {
        return dTMDateTimePeriod;
    }

    public SegmentGroup6 setDTMDateTimePeriod(List dTMDateTimePeriod) {
        this.dTMDateTimePeriod = dTMDateTimePeriod;  return this;
    }

    public List getNATNationality() {
        return nATNationality;
    }

    public SegmentGroup6 setNATNationality(List nATNationality) {
        this.nATNationality = nATNationality;  return this;
    }

    public PDIPersonDemographicInformation getPDIPersonDemographicInformation() {
        return pDIPersonDemographicInformation;
    }

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

    public List getDOCDocumentMessageDetails() {
        return dOCDocumentMessageDetails;
    }

    public SegmentGroup6 setDOCDocumentMessageDetails(List dOCDocumentMessageDetails) {
        this.dOCDocumentMessageDetails = dOCDocumentMessageDetails;  return this;
    }

    public List getSegmentGroup7() {
        return segmentGroup7;
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy