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

org.milyn.edi.unedifact.d95b.JOBCON.SegmentGroup6 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.d95b.JOBCON;

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.edi.unedifact.d95b.common.PNAPartyName;    
import java.util.List;    
import org.milyn.edi.unedifact.d95b.common.DTMDateTimePeriod;    
import org.milyn.edi.unedifact.d95b.common.LOCPlaceLocationIdentification;    
import org.milyn.edi.unedifact.d95b.common.RNGRangeDetails;    
import org.milyn.edi.unedifact.d95b.common.NATNationality;    
import org.milyn.edi.unedifact.d95b.common.PDIPersonDemographicInformation;    
import org.milyn.edi.unedifact.d95b.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 PNAPartyName pNAPartyName;
    private List dTMDateTimePeriod;
    private LOCPlaceLocationIdentification lOCPlaceLocationIdentification;
    private RNGRangeDetails rNGRangeDetails;
    private List nATNationality;
    private PDIPersonDemographicInformation pDIPersonDemographicInformation;
    private List dOCDocumentMessageDetails;

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

        if(pNAPartyName != null) {
            nodeWriter.write("PNA");
            nodeWriter.write(delimiters.getField());
            pNAPartyName.write(nodeWriter, delimiters);
        }
        if(dTMDateTimePeriod != null && !dTMDateTimePeriod.isEmpty()) {
            for(DTMDateTimePeriod dTMDateTimePeriodInst : dTMDateTimePeriod) {
                nodeWriter.write("DTM");
                nodeWriter.write(delimiters.getField());
                dTMDateTimePeriodInst.write(nodeWriter, delimiters);
            }
        }
        if(lOCPlaceLocationIdentification != null) {
            nodeWriter.write("LOC");
            nodeWriter.write(delimiters.getField());
            lOCPlaceLocationIdentification.write(nodeWriter, delimiters);
        }
        if(rNGRangeDetails != null) {
            nodeWriter.write("RNG");
            nodeWriter.write(delimiters.getField());
            rNGRangeDetails.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);
            }
        }
    }

    public PNAPartyName getPNAPartyName() {
        return pNAPartyName;
    }

    public SegmentGroup6 setPNAPartyName(PNAPartyName pNAPartyName) {
        this.pNAPartyName = pNAPartyName;  return this;
    }

    public List getDTMDateTimePeriod() {
        return dTMDateTimePeriod;
    }

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

    public LOCPlaceLocationIdentification getLOCPlaceLocationIdentification() {
        return lOCPlaceLocationIdentification;
    }

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

    public RNGRangeDetails getRNGRangeDetails() {
        return rNGRangeDetails;
    }

    public SegmentGroup6 setRNGRangeDetails(RNGRangeDetails rNGRangeDetails) {
        this.rNGRangeDetails = rNGRangeDetails;  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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy