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