org.milyn.edi.unedifact.d06b.HANMOV.SegmentGroup8 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d06b.HANMOV;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d06b.common.STSStatus;
import java.util.List;
import org.milyn.edi.unedifact.d06b.common.LOCPlaceLocationIdentification;
import org.milyn.edi.unedifact.d06b.common.DTMDateTimePeriod;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup8 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private STSStatus sTSStatus;
private List lOCPlaceLocationIdentification;
private List dTMDateTimePeriod;
private SegmentGroup9 segmentGroup9;
private SegmentGroup10 segmentGroup10;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(sTSStatus != null) {
nodeWriter.write("STS");
nodeWriter.write(delimiters.getField());
sTSStatus.write(nodeWriter, delimiters);
}
if(lOCPlaceLocationIdentification != null && !lOCPlaceLocationIdentification.isEmpty()) {
for(LOCPlaceLocationIdentification lOCPlaceLocationIdentificationInst : lOCPlaceLocationIdentification) {
nodeWriter.write("LOC");
nodeWriter.write(delimiters.getField());
lOCPlaceLocationIdentificationInst.write(nodeWriter, delimiters);
}
}
if(dTMDateTimePeriod != null && !dTMDateTimePeriod.isEmpty()) {
for(DTMDateTimePeriod dTMDateTimePeriodInst : dTMDateTimePeriod) {
nodeWriter.write("DTM");
nodeWriter.write(delimiters.getField());
dTMDateTimePeriodInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup9 != null) {
segmentGroup9.write(nodeWriter, delimiters);
}
if(segmentGroup10 != null) {
segmentGroup10.write(nodeWriter, delimiters);
}
}
public STSStatus getSTSStatus() {
return sTSStatus;
}
public SegmentGroup8 setSTSStatus(STSStatus sTSStatus) {
this.sTSStatus = sTSStatus; return this;
}
public List getLOCPlaceLocationIdentification() {
return lOCPlaceLocationIdentification;
}
public SegmentGroup8 setLOCPlaceLocationIdentification(List lOCPlaceLocationIdentification) {
this.lOCPlaceLocationIdentification = lOCPlaceLocationIdentification; return this;
}
public List getDTMDateTimePeriod() {
return dTMDateTimePeriod;
}
public SegmentGroup8 setDTMDateTimePeriod(List dTMDateTimePeriod) {
this.dTMDateTimePeriod = dTMDateTimePeriod; return this;
}
public SegmentGroup9 getSegmentGroup9() {
return segmentGroup9;
}
public SegmentGroup8 setSegmentGroup9(SegmentGroup9 segmentGroup9) {
this.segmentGroup9 = segmentGroup9; return this;
}
public SegmentGroup10 getSegmentGroup10() {
return segmentGroup10;
}
public SegmentGroup8 setSegmentGroup10(SegmentGroup10 segmentGroup10) {
this.segmentGroup10 = segmentGroup10; return this;
}
}