org.milyn.edi.unedifact.d96a.SANCRT.SegmentGroup8 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d96a.SANCRT;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d96a.common.ProcessIdentification;
import java.util.List;
import org.milyn.edi.unedifact.d96a.common.ItemDescription;
import org.milyn.edi.unedifact.d96a.common.NameAndAddress;
import org.milyn.edi.unedifact.d96a.common.Measurements;
import org.milyn.edi.unedifact.d96a.common.DateTimePeriod;
import org.milyn.edi.unedifact.d96a.common.PlaceLocationIdentification;
import org.milyn.edi.unedifact.d96a.common.DocumentMessageDetails;
import org.milyn.edi.unedifact.d96a.common.Reference;
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 ProcessIdentification processIdentification;
private List itemDescription;
private List nameAndAddress;
private List measurements;
private List dateTimePeriod;
private List placeLocationIdentification;
private List documentMessageDetails;
private List reference;
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(nameAndAddress != null && !nameAndAddress.isEmpty()) {
for(NameAndAddress nameAndAddressInst : nameAndAddress) {
nodeWriter.write("NAD");
nodeWriter.write(delimiters.getField());
nameAndAddressInst.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);
}
}
}
public ProcessIdentification getProcessIdentification() {
return processIdentification;
}
public SegmentGroup8 setProcessIdentification(ProcessIdentification processIdentification) {
this.processIdentification = processIdentification; return this;
}
public List getItemDescription() {
return itemDescription;
}
public SegmentGroup8 setItemDescription(List itemDescription) {
this.itemDescription = itemDescription; return this;
}
public List getNameAndAddress() {
return nameAndAddress;
}
public SegmentGroup8 setNameAndAddress(List nameAndAddress) {
this.nameAndAddress = nameAndAddress; return this;
}
public List getMeasurements() {
return measurements;
}
public SegmentGroup8 setMeasurements(List measurements) {
this.measurements = measurements; return this;
}
public List getDateTimePeriod() {
return dateTimePeriod;
}
public SegmentGroup8 setDateTimePeriod(List dateTimePeriod) {
this.dateTimePeriod = dateTimePeriod; return this;
}
public List getPlaceLocationIdentification() {
return placeLocationIdentification;
}
public SegmentGroup8 setPlaceLocationIdentification(List placeLocationIdentification) {
this.placeLocationIdentification = placeLocationIdentification; return this;
}
public List getDocumentMessageDetails() {
return documentMessageDetails;
}
public SegmentGroup8 setDocumentMessageDetails(List documentMessageDetails) {
this.documentMessageDetails = documentMessageDetails; return this;
}
public List getReference() {
return reference;
}
public SegmentGroup8 setReference(List reference) {
this.reference = reference; return this;
}
}