org.milyn.edi.unedifact.d05a.BUSCRD.SegmentGroup20 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d05a.BUSCRD;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d05a.common.PNAPartyIdentification;
import java.util.List;
import org.milyn.edi.unedifact.d05a.common.RELRelationship;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup20 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private PNAPartyIdentification pNAPartyIdentification;
private List rELRelationship;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(pNAPartyIdentification != null) {
nodeWriter.write("PNA");
nodeWriter.write(delimiters.getField());
pNAPartyIdentification.write(nodeWriter, delimiters);
}
if(rELRelationship != null && !rELRelationship.isEmpty()) {
for(RELRelationship rELRelationshipInst : rELRelationship) {
nodeWriter.write("REL");
nodeWriter.write(delimiters.getField());
rELRelationshipInst.write(nodeWriter, delimiters);
}
}
}
public PNAPartyIdentification getPNAPartyIdentification() {
return pNAPartyIdentification;
}
public SegmentGroup20 setPNAPartyIdentification(PNAPartyIdentification pNAPartyIdentification) {
this.pNAPartyIdentification = pNAPartyIdentification; return this;
}
public List getRELRelationship() {
return rELRelationship;
}
public SegmentGroup20 setRELRelationship(List rELRelationship) {
this.rELRelationship = rELRelationship; return this;
}
}