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

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

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.edi.unedifact.d02a.common.EmploymentDetails;    
import org.milyn.edi.unedifact.d02a.common.PartyIdentification;    
import org.milyn.edi.unedifact.d02a.common.Address;    
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 EmploymentDetails employmentDetails;
    private PartyIdentification partyIdentification;
    private Address address;

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

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

    public EmploymentDetails getEmploymentDetails() {
        return employmentDetails;
    }

    public SegmentGroup4 setEmploymentDetails(EmploymentDetails employmentDetails) {
        this.employmentDetails = employmentDetails;  return this;
    }

    public PartyIdentification getPartyIdentification() {
        return partyIdentification;
    }

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

    public Address getAddress() {
        return address;
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy