org.milyn.edi.unedifact.d09b.GOVCBR.SegmentGroup88 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 org.milyn.edi.unedifact.d09b.common.NATNationality;
import java.util.List;
import org.milyn.edi.unedifact.d09b.common.DTMDateTimePeriod;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup88 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private NADNameAndAddress nADNameAndAddress;
private NATNationality nATNationality;
private List dTMDateTimePeriod;
private List segmentGroup89;
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(nATNationality != null) {
nodeWriter.write("NAT");
nodeWriter.write(delimiters.getField());
nATNationality.write(nodeWriter, delimiters);
}
if(dTMDateTimePeriod != null && !dTMDateTimePeriod.isEmpty()) {
for(DTMDateTimePeriod dTMDateTimePeriodInst : dTMDateTimePeriod) {
nodeWriter.write("DTM");
nodeWriter.write(delimiters.getField());
dTMDateTimePeriodInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup89 != null && !segmentGroup89.isEmpty()) {
for(SegmentGroup89 segmentGroup89Inst : segmentGroup89) {
segmentGroup89Inst.write(nodeWriter, delimiters);
}
}
}
public NADNameAndAddress getNADNameAndAddress() {
return nADNameAndAddress;
}
public SegmentGroup88 setNADNameAndAddress(NADNameAndAddress nADNameAndAddress) {
this.nADNameAndAddress = nADNameAndAddress; return this;
}
public NATNationality getNATNationality() {
return nATNationality;
}
public SegmentGroup88 setNATNationality(NATNationality nATNationality) {
this.nATNationality = nATNationality; return this;
}
public List getDTMDateTimePeriod() {
return dTMDateTimePeriod;
}
public SegmentGroup88 setDTMDateTimePeriod(List dTMDateTimePeriod) {
this.dTMDateTimePeriod = dTMDateTimePeriod; return this;
}
public List getSegmentGroup89() {
return segmentGroup89;
}
public SegmentGroup88 setSegmentGroup89(List segmentGroup89) {
this.segmentGroup89 = segmentGroup89; return this;
}
}