org.milyn.edi.unedifact.d06b.SANCRT.SegmentGroup18 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d06b.SANCRT;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d06b.common.ProcessIdentification;
import java.util.List;
import org.milyn.edi.unedifact.d06b.common.ItemDescription;
import org.milyn.edi.unedifact.d06b.common.Measurements;
import org.milyn.edi.unedifact.d06b.common.DateTimePeriod;
import org.milyn.edi.unedifact.d06b.common.PlaceLocationIdentification;
import org.milyn.edi.unedifact.d06b.common.DocumentMessageDetails;
import org.milyn.edi.unedifact.d06b.common.Reference;
import org.milyn.edi.unedifact.d06b.common.Temperature;
import org.milyn.edi.unedifact.d06b.common.ProcessingInformation;
import org.milyn.edi.unedifact.d06b.common.FreeText;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup18 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private ProcessIdentification processIdentification;
private List itemDescription;
private List measurements;
private List dateTimePeriod;
private List placeLocationIdentification;
private List documentMessageDetails;
private List reference;
private List temperature;
private List processingInformation;
private List freeText;
private List segmentGroup19;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(processIdentification != null) {
nodeWriter.write("PRC");
nodeWriter.write(delimiters.getField());
processIdentification.write(nodeWriter, delimiters);
}
if(itemDescription != null && !itemDescription.isEmpty()) {
for(ItemDescription itemDescriptionInst : itemDescription) {
nodeWriter.write("IMD");
nodeWriter.write(delimiters.getField());
itemDescriptionInst.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(placeLocationIdentification != null && !placeLocationIdentification.isEmpty()) {
for(PlaceLocationIdentification placeLocationIdentificationInst : placeLocationIdentification) {
nodeWriter.write("LOC");
nodeWriter.write(delimiters.getField());
placeLocationIdentificationInst.write(nodeWriter, delimiters);
}
}
if(documentMessageDetails != null && !documentMessageDetails.isEmpty()) {
for(DocumentMessageDetails documentMessageDetailsInst : documentMessageDetails) {
nodeWriter.write("DOC");
nodeWriter.write(delimiters.getField());
documentMessageDetailsInst.write(nodeWriter, delimiters);
}
}
if(reference != null && !reference.isEmpty()) {
for(Reference referenceInst : reference) {
nodeWriter.write("RFF");
nodeWriter.write(delimiters.getField());
referenceInst.write(nodeWriter, delimiters);
}
}
if(temperature != null && !temperature.isEmpty()) {
for(Temperature temperatureInst : temperature) {
nodeWriter.write("TMP");
nodeWriter.write(delimiters.getField());
temperatureInst.write(nodeWriter, delimiters);
}
}
if(processingInformation != null && !processingInformation.isEmpty()) {
for(ProcessingInformation processingInformationInst : processingInformation) {
nodeWriter.write("GEI");
nodeWriter.write(delimiters.getField());
processingInformationInst.write(nodeWriter, delimiters);
}
}
if(freeText != null && !freeText.isEmpty()) {
for(FreeText freeTextInst : freeText) {
nodeWriter.write("FTX");
nodeWriter.write(delimiters.getField());
freeTextInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup19 != null && !segmentGroup19.isEmpty()) {
for(SegmentGroup19 segmentGroup19Inst : segmentGroup19) {
segmentGroup19Inst.write(nodeWriter, delimiters);
}
}
}
public ProcessIdentification getProcessIdentification() {
return processIdentification;
}
public SegmentGroup18 setProcessIdentification(ProcessIdentification processIdentification) {
this.processIdentification = processIdentification; return this;
}
public List getItemDescription() {
return itemDescription;
}
public SegmentGroup18 setItemDescription(List itemDescription) {
this.itemDescription = itemDescription; return this;
}
public List getMeasurements() {
return measurements;
}
public SegmentGroup18 setMeasurements(List measurements) {
this.measurements = measurements; return this;
}
public List getDateTimePeriod() {
return dateTimePeriod;
}
public SegmentGroup18 setDateTimePeriod(List dateTimePeriod) {
this.dateTimePeriod = dateTimePeriod; return this;
}
public List getPlaceLocationIdentification() {
return placeLocationIdentification;
}
public SegmentGroup18 setPlaceLocationIdentification(List placeLocationIdentification) {
this.placeLocationIdentification = placeLocationIdentification; return this;
}
public List getDocumentMessageDetails() {
return documentMessageDetails;
}
public SegmentGroup18 setDocumentMessageDetails(List documentMessageDetails) {
this.documentMessageDetails = documentMessageDetails; return this;
}
public List getReference() {
return reference;
}
public SegmentGroup18 setReference(List reference) {
this.reference = reference; return this;
}
public List getTemperature() {
return temperature;
}
public SegmentGroup18 setTemperature(List temperature) {
this.temperature = temperature; return this;
}
public List getProcessingInformation() {
return processingInformation;
}
public SegmentGroup18 setProcessingInformation(List processingInformation) {
this.processingInformation = processingInformation; return this;
}
public List getFreeText() {
return freeText;
}
public SegmentGroup18 setFreeText(List freeText) {
this.freeText = freeText; return this;
}
public List getSegmentGroup19() {
return segmentGroup19;
}
public SegmentGroup18 setSegmentGroup19(List segmentGroup19) {
this.segmentGroup19 = segmentGroup19; return this;
}
}