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

org.milyn.edi.unedifact.d95b.SSRECH.SegmentGroup4 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.SSRECH;

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.edi.unedifact.d95b.common.EMPEmploymentDetails;    
import org.milyn.edi.unedifact.d95b.common.PNAPartyName;    
import org.milyn.edi.unedifact.d95b.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 PNAPartyName pNAPartyName;
    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(pNAPartyName != null) {
            nodeWriter.write("PNA");
            nodeWriter.write(delimiters.getField());
            pNAPartyName.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 PNAPartyName getPNAPartyName() {
        return pNAPartyName;
    }

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

    public ADRAddress getADRAddress() {
        return aDRAddress;
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy