org.milyn.edi.unedifact.d09b.GOVCBR.SegmentGroup58 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 SegmentGroup58 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private GIRRelatedIdentificationNumbers gIRRelatedIdentificationNumbers;
private List lOCPlaceLocationIdentification;
private VLIValueListIdentification vLIValueListIdentification;
private List dTMDateTimePeriod;
private SegmentGroup59 segmentGroup59;
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(segmentGroup59 != null) {
segmentGroup59.write(nodeWriter, delimiters);
}
}
public GIRRelatedIdentificationNumbers getGIRRelatedIdentificationNumbers() {
return gIRRelatedIdentificationNumbers;
}
public SegmentGroup58 setGIRRelatedIdentificationNumbers(GIRRelatedIdentificationNumbers gIRRelatedIdentificationNumbers) {
this.gIRRelatedIdentificationNumbers = gIRRelatedIdentificationNumbers; return this;
}
public List getLOCPlaceLocationIdentification() {
return lOCPlaceLocationIdentification;
}
public SegmentGroup58 setLOCPlaceLocationIdentification(List lOCPlaceLocationIdentification) {
this.lOCPlaceLocationIdentification = lOCPlaceLocationIdentification; return this;
}
public VLIValueListIdentification getVLIValueListIdentification() {
return vLIValueListIdentification;
}
public SegmentGroup58 setVLIValueListIdentification(VLIValueListIdentification vLIValueListIdentification) {
this.vLIValueListIdentification = vLIValueListIdentification; return this;
}
public List getDTMDateTimePeriod() {
return dTMDateTimePeriod;
}
public SegmentGroup58 setDTMDateTimePeriod(List dTMDateTimePeriod) {
this.dTMDateTimePeriod = dTMDateTimePeriod; return this;
}
public SegmentGroup59 getSegmentGroup59() {
return segmentGroup59;
}
public SegmentGroup58 setSegmentGroup59(SegmentGroup59 segmentGroup59) {
this.segmentGroup59 = segmentGroup59; return this;
}
}