org.milyn.edi.unedifact.d11b.GOVCBR.SegmentGroup48 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 SegmentGroup48 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private NADNameAndAddress nADNameAndAddress;
private IFDInformationDetail iFDInformationDetail;
private List segmentGroup49;
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(segmentGroup49 != null && !segmentGroup49.isEmpty()) {
for(SegmentGroup49 segmentGroup49Inst : segmentGroup49) {
segmentGroup49Inst.write(nodeWriter, delimiters);
}
}
}
public NADNameAndAddress getNADNameAndAddress() {
return nADNameAndAddress;
}
public SegmentGroup48 setNADNameAndAddress(NADNameAndAddress nADNameAndAddress) {
this.nADNameAndAddress = nADNameAndAddress; return this;
}
public IFDInformationDetail getIFDInformationDetail() {
return iFDInformationDetail;
}
public SegmentGroup48 setIFDInformationDetail(IFDInformationDetail iFDInformationDetail) {
this.iFDInformationDetail = iFDInformationDetail; return this;
}
public List getSegmentGroup49() {
return segmentGroup49;
}
public SegmentGroup48 setSegmentGroup49(List segmentGroup49) {
this.segmentGroup49 = segmentGroup49; return this;
}
}