org.milyn.edi.unedifact.d11b.GOVCBR.SegmentGroup205 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d11b.GOVCBR;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d11b.common.NADNameAndAddress;
import org.milyn.edi.unedifact.d11b.common.IFDInformationDetail;
import java.util.List;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup205 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private NADNameAndAddress nADNameAndAddress;
private IFDInformationDetail iFDInformationDetail;
private List segmentGroup206;
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(iFDInformationDetail != null) {
nodeWriter.write("IFD");
nodeWriter.write(delimiters.getField());
iFDInformationDetail.write(nodeWriter, delimiters);
}
if(segmentGroup206 != null && !segmentGroup206.isEmpty()) {
for(SegmentGroup206 segmentGroup206Inst : segmentGroup206) {
segmentGroup206Inst.write(nodeWriter, delimiters);
}
}
}
public NADNameAndAddress getNADNameAndAddress() {
return nADNameAndAddress;
}
public SegmentGroup205 setNADNameAndAddress(NADNameAndAddress nADNameAndAddress) {
this.nADNameAndAddress = nADNameAndAddress; return this;
}
public IFDInformationDetail getIFDInformationDetail() {
return iFDInformationDetail;
}
public SegmentGroup205 setIFDInformationDetail(IFDInformationDetail iFDInformationDetail) {
this.iFDInformationDetail = iFDInformationDetail; return this;
}
public List getSegmentGroup206() {
return segmentGroup206;
}
public SegmentGroup205 setSegmentGroup206(List segmentGroup206) {
this.segmentGroup206 = segmentGroup206; return this;
}
}