org.milyn.edi.unedifact.d09b.GOVCBR.SegmentGroup22 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.GIRRelatedIdentificationNumbers;
import java.util.List;
import org.milyn.edi.unedifact.d09b.common.LOCPlaceLocationIdentification;
import org.milyn.edi.unedifact.d09b.common.VLIValueListIdentification;
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 SegmentGroup22 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private GIRRelatedIdentificationNumbers gIRRelatedIdentificationNumbers;
private List lOCPlaceLocationIdentification;
private VLIValueListIdentification vLIValueListIdentification;
private List dTMDateTimePeriod;
private List segmentGroup23;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(gIRRelatedIdentificationNumbers != null) {
nodeWriter.write("GIR");
nodeWriter.write(delimiters.getField());
gIRRelatedIdentificationNumbers.write(nodeWriter, delimiters);
}
if(lOCPlaceLocationIdentification != null && !lOCPlaceLocationIdentification.isEmpty()) {
for(LOCPlaceLocationIdentification lOCPlaceLocationIdentificationInst : lOCPlaceLocationIdentification) {
nodeWriter.write("LOC");
nodeWriter.write(delimiters.getField());
lOCPlaceLocationIdentificationInst.write(nodeWriter, delimiters);
}
}
if(vLIValueListIdentification != null) {
nodeWriter.write("VLI");
nodeWriter.write(delimiters.getField());
vLIValueListIdentification.write(nodeWriter, delimiters);
}
if(dTMDateTimePeriod != null && !dTMDateTimePeriod.isEmpty()) {
for(DTMDateTimePeriod dTMDateTimePeriodInst : dTMDateTimePeriod) {
nodeWriter.write("DTM");
nodeWriter.write(delimiters.getField());
dTMDateTimePeriodInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup23 != null && !segmentGroup23.isEmpty()) {
for(SegmentGroup23 segmentGroup23Inst : segmentGroup23) {
segmentGroup23Inst.write(nodeWriter, delimiters);
}
}
}
public GIRRelatedIdentificationNumbers getGIRRelatedIdentificationNumbers() {
return gIRRelatedIdentificationNumbers;
}
public SegmentGroup22 setGIRRelatedIdentificationNumbers(GIRRelatedIdentificationNumbers gIRRelatedIdentificationNumbers) {
this.gIRRelatedIdentificationNumbers = gIRRelatedIdentificationNumbers; return this;
}
public List getLOCPlaceLocationIdentification() {
return lOCPlaceLocationIdentification;
}
public SegmentGroup22 setLOCPlaceLocationIdentification(List lOCPlaceLocationIdentification) {
this.lOCPlaceLocationIdentification = lOCPlaceLocationIdentification; return this;
}
public VLIValueListIdentification getVLIValueListIdentification() {
return vLIValueListIdentification;
}
public SegmentGroup22 setVLIValueListIdentification(VLIValueListIdentification vLIValueListIdentification) {
this.vLIValueListIdentification = vLIValueListIdentification; return this;
}
public List getDTMDateTimePeriod() {
return dTMDateTimePeriod;
}
public SegmentGroup22 setDTMDateTimePeriod(List dTMDateTimePeriod) {
this.dTMDateTimePeriod = dTMDateTimePeriod; return this;
}
public List getSegmentGroup23() {
return segmentGroup23;
}
public SegmentGroup22 setSegmentGroup23(List segmentGroup23) {
this.segmentGroup23 = segmentGroup23; return this;
}
}