org.milyn.edi.unedifact.d06b.SANCRT.SegmentGroup9 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d06b.SANCRT;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d06b.common.PNAPartyIdentification;
import java.util.List;
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 SegmentGroup9 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private PNAPartyIdentification pNAPartyIdentification;
private List aDRAddress;
private List segmentGroup10;
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(aDRAddress != null && !aDRAddress.isEmpty()) {
for(ADRAddress aDRAddressInst : aDRAddress) {
nodeWriter.write("ADR");
nodeWriter.write(delimiters.getField());
aDRAddressInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup10 != null && !segmentGroup10.isEmpty()) {
for(SegmentGroup10 segmentGroup10Inst : segmentGroup10) {
segmentGroup10Inst.write(nodeWriter, delimiters);
}
}
}
public PNAPartyIdentification getPNAPartyIdentification() {
return pNAPartyIdentification;
}
public SegmentGroup9 setPNAPartyIdentification(PNAPartyIdentification pNAPartyIdentification) {
this.pNAPartyIdentification = pNAPartyIdentification; return this;
}
public List getADRAddress() {
return aDRAddress;
}
public SegmentGroup9 setADRAddress(List aDRAddress) {
this.aDRAddress = aDRAddress; return this;
}
public List getSegmentGroup10() {
return segmentGroup10;
}
public SegmentGroup9 setSegmentGroup10(List segmentGroup10) {
this.segmentGroup10 = segmentGroup10; return this;
}
}