org.milyn.edi.unedifact.d06b.SSRECH.SegmentGroup4 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d06b.SSRECH;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d06b.common.EMPEmploymentDetails;
import org.milyn.edi.unedifact.d06b.common.PNAPartyIdentification;
import org.milyn.edi.unedifact.d06b.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;
}
}