org.milyn.edi.unedifact.d02a.SSRECH.SegmentGroup4 Maven / Gradle / Ivy
/**
* 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;
}
}