org.milyn.edi.unedifact.d11b.GOVCBR.SegmentGroup174 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 org.milyn.edi.unedifact.d11b.common.DTMDateTimePeriod;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup174 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private NADNameAndAddress nADNameAndAddress;
private IFDInformationDetail iFDInformationDetail;
private List dTMDateTimePeriod;
private List segmentGroup175;
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(dTMDateTimePeriod != null && !dTMDateTimePeriod.isEmpty()) {
for(DTMDateTimePeriod dTMDateTimePeriodInst : dTMDateTimePeriod) {
nodeWriter.write("DTM");
nodeWriter.write(delimiters.getField());
dTMDateTimePeriodInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup175 != null && !segmentGroup175.isEmpty()) {
for(SegmentGroup175 segmentGroup175Inst : segmentGroup175) {
segmentGroup175Inst.write(nodeWriter, delimiters);
}
}
}
public NADNameAndAddress getNADNameAndAddress() {
return nADNameAndAddress;
}
public SegmentGroup174 setNADNameAndAddress(NADNameAndAddress nADNameAndAddress) {
this.nADNameAndAddress = nADNameAndAddress; return this;
}
public IFDInformationDetail getIFDInformationDetail() {
return iFDInformationDetail;
}
public SegmentGroup174 setIFDInformationDetail(IFDInformationDetail iFDInformationDetail) {
this.iFDInformationDetail = iFDInformationDetail; return this;
}
public List getDTMDateTimePeriod() {
return dTMDateTimePeriod;
}
public SegmentGroup174 setDTMDateTimePeriod(List dTMDateTimePeriod) {
this.dTMDateTimePeriod = dTMDateTimePeriod; return this;
}
public List getSegmentGroup175() {
return segmentGroup175;
}
public SegmentGroup174 setSegmentGroup175(List segmentGroup175) {
this.segmentGroup175 = segmentGroup175; return this;
}
}