org.milyn.edi.unedifact.d09b.GOVCBR.SegmentGroup138 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d09b.GOVCBR;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d09b.common.NADNameAndAddress;
import java.util.List;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup138 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private NADNameAndAddress nADNameAndAddress;
private List segmentGroup139;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(nADNameAndAddress != null) {
nodeWriter.write("NAD");
nodeWriter.write(delimiters.getField());
nADNameAndAddress.write(nodeWriter, delimiters);
}
if(segmentGroup139 != null && !segmentGroup139.isEmpty()) {
for(SegmentGroup139 segmentGroup139Inst : segmentGroup139) {
segmentGroup139Inst.write(nodeWriter, delimiters);
}
}
}
public NADNameAndAddress getNADNameAndAddress() {
return nADNameAndAddress;
}
public SegmentGroup138 setNADNameAndAddress(NADNameAndAddress nADNameAndAddress) {
this.nADNameAndAddress = nADNameAndAddress; return this;
}
public List getSegmentGroup139() {
return segmentGroup139;
}
public SegmentGroup138 setSegmentGroup139(List segmentGroup139) {
this.segmentGroup139 = segmentGroup139; return this;
}
}