org.milyn.edi.unedifact.d09b.GOVCBR.SegmentGroup78 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.INPPartiesAndInstruction;
import java.util.List;
import org.milyn.edi.unedifact.d09b.common.DTMDateTimePeriod;
import org.milyn.edi.unedifact.d09b.common.LOCPlaceLocationIdentification;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup78 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private INPPartiesAndInstruction iNPPartiesAndInstruction;
private List dTMDateTimePeriod;
private List lOCPlaceLocationIdentification;
private SegmentGroup79 segmentGroup79;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(iNPPartiesAndInstruction != null) {
nodeWriter.write("INP");
nodeWriter.write(delimiters.getField());
iNPPartiesAndInstruction.write(nodeWriter, delimiters);
}
if(dTMDateTimePeriod != null && !dTMDateTimePeriod.isEmpty()) {
for(DTMDateTimePeriod dTMDateTimePeriodInst : dTMDateTimePeriod) {
nodeWriter.write("DTM");
nodeWriter.write(delimiters.getField());
dTMDateTimePeriodInst.write(nodeWriter, delimiters);
}
}
if(lOCPlaceLocationIdentification != null && !lOCPlaceLocationIdentification.isEmpty()) {
for(LOCPlaceLocationIdentification lOCPlaceLocationIdentificationInst : lOCPlaceLocationIdentification) {
nodeWriter.write("LOC");
nodeWriter.write(delimiters.getField());
lOCPlaceLocationIdentificationInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup79 != null) {
segmentGroup79.write(nodeWriter, delimiters);
}
}
public INPPartiesAndInstruction getINPPartiesAndInstruction() {
return iNPPartiesAndInstruction;
}
public SegmentGroup78 setINPPartiesAndInstruction(INPPartiesAndInstruction iNPPartiesAndInstruction) {
this.iNPPartiesAndInstruction = iNPPartiesAndInstruction; return this;
}
public List getDTMDateTimePeriod() {
return dTMDateTimePeriod;
}
public SegmentGroup78 setDTMDateTimePeriod(List dTMDateTimePeriod) {
this.dTMDateTimePeriod = dTMDateTimePeriod; return this;
}
public List getLOCPlaceLocationIdentification() {
return lOCPlaceLocationIdentification;
}
public SegmentGroup78 setLOCPlaceLocationIdentification(List lOCPlaceLocationIdentification) {
this.lOCPlaceLocationIdentification = lOCPlaceLocationIdentification; return this;
}
public SegmentGroup79 getSegmentGroup79() {
return segmentGroup79;
}
public SegmentGroup78 setSegmentGroup79(SegmentGroup79 segmentGroup79) {
this.segmentGroup79 = segmentGroup79; return this;
}
}