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

org.milyn.edi.unedifact.d99b.SSRECH.SegmentGroup4 Maven / Gradle / Ivy

The newest version!
/**
 * This class was generated by Smooks EJC (http://www.smooks.org).
 */
package org.milyn.edi.unedifact.d99b.SSRECH;

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.edi.unedifact.d99b.common.EMPEmploymentDetails;    
import org.milyn.edi.unedifact.d99b.common.PNAPartyIdentification;    
import org.milyn.edi.unedifact.d99b.common.ADRAddress;    
import java.io.Writer;    
import org.milyn.edisax.model.internal.Delimiters;    
import java.io.IOException;    

public class SegmentGroup4 implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private EMPEmploymentDetails eMPEmploymentDetails;
    private PNAPartyIdentification pNAPartyIdentification;
    private ADRAddress aDRAddress;

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

        if(eMPEmploymentDetails != null) {
            nodeWriter.write("EMP");
            nodeWriter.write(delimiters.getField());
            eMPEmploymentDetails.write(nodeWriter, delimiters);
        }
        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);
        }
    }

    public EMPEmploymentDetails getEMPEmploymentDetails() {
        return eMPEmploymentDetails;
    }

    public SegmentGroup4 setEMPEmploymentDetails(EMPEmploymentDetails eMPEmploymentDetails) {
        this.eMPEmploymentDetails = eMPEmploymentDetails;  return this;
    }

    public PNAPartyIdentification getPNAPartyIdentification() {
        return pNAPartyIdentification;
    }

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

    public ADRAddress getADRAddress() {
        return aDRAddress;
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy