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