org.milyn.edi.unedifact.d02a.BERMAN.SegmentGroup7 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d02a.BERMAN;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d02a.common.PlaceLocationIdentification;
import java.util.List;
import org.milyn.edi.unedifact.d02a.common.Measurements;
import org.milyn.edi.unedifact.d02a.common.DateTimePeriod;
import org.milyn.edi.unedifact.d02a.common.Quantity;
import org.milyn.edi.unedifact.d02a.common.PurposeOfConveyanceCall;
import org.milyn.edi.unedifact.d02a.common.FreeText;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup7 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private PlaceLocationIdentification placeLocationIdentification;
private List measurements;
private List dateTimePeriod;
private List quantity;
private List purposeOfConveyanceCall;
private List freeText;
private List segmentGroup8;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(placeLocationIdentification != null) {
nodeWriter.write("LOC");
nodeWriter.write(delimiters.getField());
placeLocationIdentification.write(nodeWriter, delimiters);
}
if(measurements != null && !measurements.isEmpty()) {
for(Measurements measurementsInst : measurements) {
nodeWriter.write("MEA");
nodeWriter.write(delimiters.getField());
measurementsInst.write(nodeWriter, delimiters);
}
}
if(dateTimePeriod != null && !dateTimePeriod.isEmpty()) {
for(DateTimePeriod dateTimePeriodInst : dateTimePeriod) {
nodeWriter.write("DTM");
nodeWriter.write(delimiters.getField());
dateTimePeriodInst.write(nodeWriter, delimiters);
}
}
if(quantity != null && !quantity.isEmpty()) {
for(Quantity quantityInst : quantity) {
nodeWriter.write("QTY");
nodeWriter.write(delimiters.getField());
quantityInst.write(nodeWriter, delimiters);
}
}
if(purposeOfConveyanceCall != null && !purposeOfConveyanceCall.isEmpty()) {
for(PurposeOfConveyanceCall purposeOfConveyanceCallInst : purposeOfConveyanceCall) {
nodeWriter.write("POC");
nodeWriter.write(delimiters.getField());
purposeOfConveyanceCallInst.write(nodeWriter, delimiters);
}
}
if(freeText != null && !freeText.isEmpty()) {
for(FreeText freeTextInst : freeText) {
nodeWriter.write("FTX");
nodeWriter.write(delimiters.getField());
freeTextInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup8 != null && !segmentGroup8.isEmpty()) {
for(SegmentGroup8 segmentGroup8Inst : segmentGroup8) {
segmentGroup8Inst.write(nodeWriter, delimiters);
}
}
}
public PlaceLocationIdentification getPlaceLocationIdentification() {
return placeLocationIdentification;
}
public SegmentGroup7 setPlaceLocationIdentification(PlaceLocationIdentification placeLocationIdentification) {
this.placeLocationIdentification = placeLocationIdentification; return this;
}
public List getMeasurements() {
return measurements;
}
public SegmentGroup7 setMeasurements(List measurements) {
this.measurements = measurements; return this;
}
public List getDateTimePeriod() {
return dateTimePeriod;
}
public SegmentGroup7 setDateTimePeriod(List dateTimePeriod) {
this.dateTimePeriod = dateTimePeriod; return this;
}
public List getQuantity() {
return quantity;
}
public SegmentGroup7 setQuantity(List quantity) {
this.quantity = quantity; return this;
}
public List getPurposeOfConveyanceCall() {
return purposeOfConveyanceCall;
}
public SegmentGroup7 setPurposeOfConveyanceCall(List purposeOfConveyanceCall) {
this.purposeOfConveyanceCall = purposeOfConveyanceCall; return this;
}
public List getFreeText() {
return freeText;
}
public SegmentGroup7 setFreeText(List freeText) {
this.freeText = freeText; return this;
}
public List getSegmentGroup8() {
return segmentGroup8;
}
public SegmentGroup7 setSegmentGroup8(List segmentGroup8) {
this.segmentGroup8 = segmentGroup8; return this;
}
}