org.milyn.edi.unedifact.d05a.CUSRES.SegmentGroup6 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d05a.CUSRES;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d05a.common.DocumentMessageDetails;
import java.util.List;
import org.milyn.edi.unedifact.d05a.common.Package;
import org.milyn.edi.unedifact.d05a.common.Reference;
import org.milyn.edi.unedifact.d05a.common.PackageIdentification;
import org.milyn.edi.unedifact.d05a.common.FreeText;
import org.milyn.edi.unedifact.d05a.common.TransportInformation;
import org.milyn.edi.unedifact.d05a.common.PlaceLocationIdentification;
import org.milyn.edi.unedifact.d05a.common.DateTimePeriod;
import org.milyn.edi.unedifact.d05a.common.ProcessingInformation;
import org.milyn.edi.unedifact.d05a.common.Measurements;
import org.milyn.edi.unedifact.d05a.common.EquipmentDetails;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup6 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private DocumentMessageDetails documentMessageDetails;
private List _package;
private List reference;
private List packageIdentification;
private List freeText;
private List transportInformation;
private List placeLocationIdentification;
private List dateTimePeriod;
private List processingInformation;
private List measurements;
private List equipmentDetails;
private List segmentGroup7;
private List segmentGroup9;
private List segmentGroup11;
private List segmentGroup12;
private List segmentGroup14;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(documentMessageDetails != null) {
nodeWriter.write("DOC");
nodeWriter.write(delimiters.getField());
documentMessageDetails.write(nodeWriter, delimiters);
}
if(_package != null && !_package.isEmpty()) {
for(Package _packageInst : _package) {
nodeWriter.write("PAC");
nodeWriter.write(delimiters.getField());
_packageInst.write(nodeWriter, delimiters);
}
}
if(reference != null && !reference.isEmpty()) {
for(Reference referenceInst : reference) {
nodeWriter.write("RFF");
nodeWriter.write(delimiters.getField());
referenceInst.write(nodeWriter, delimiters);
}
}
if(packageIdentification != null && !packageIdentification.isEmpty()) {
for(PackageIdentification packageIdentificationInst : packageIdentification) {
nodeWriter.write("PCI");
nodeWriter.write(delimiters.getField());
packageIdentificationInst.write(nodeWriter, delimiters);
}
}
if(freeText != null && !freeText.isEmpty()) {
for(FreeText freeTextInst : freeText) {
nodeWriter.write("FTX");
nodeWriter.write(delimiters.getField());
freeTextInst.write(nodeWriter, delimiters);
}
}
if(transportInformation != null && !transportInformation.isEmpty()) {
for(TransportInformation transportInformationInst : transportInformation) {
nodeWriter.write("TDT");
nodeWriter.write(delimiters.getField());
transportInformationInst.write(nodeWriter, delimiters);
}
}
if(placeLocationIdentification != null && !placeLocationIdentification.isEmpty()) {
for(PlaceLocationIdentification placeLocationIdentificationInst : placeLocationIdentification) {
nodeWriter.write("LOC");
nodeWriter.write(delimiters.getField());
placeLocationIdentificationInst.write(nodeWriter, delimiters);
}
}
if(dateTimePeriod != null && !dateTimePeriod.isEmpty()) {
for(DateTimePeriod dateTimePeriodInst : dateTimePeriod) {
nodeWriter.write("DTM");
nodeWriter.write(delimiters.getField());
dateTimePeriodInst.write(nodeWriter, delimiters);
}
}
if(processingInformation != null && !processingInformation.isEmpty()) {
for(ProcessingInformation processingInformationInst : processingInformation) {
nodeWriter.write("GEI");
nodeWriter.write(delimiters.getField());
processingInformationInst.write(nodeWriter, delimiters);
}
}
if(measurements != null && !measurements.isEmpty()) {
for(Measurements measurementsInst : measurements) {
nodeWriter.write("MEA");
nodeWriter.write(delimiters.getField());
measurementsInst.write(nodeWriter, delimiters);
}
}
if(equipmentDetails != null && !equipmentDetails.isEmpty()) {
for(EquipmentDetails equipmentDetailsInst : equipmentDetails) {
nodeWriter.write("EQD");
nodeWriter.write(delimiters.getField());
equipmentDetailsInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup7 != null && !segmentGroup7.isEmpty()) {
for(SegmentGroup7 segmentGroup7Inst : segmentGroup7) {
segmentGroup7Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup9 != null && !segmentGroup9.isEmpty()) {
for(SegmentGroup9 segmentGroup9Inst : segmentGroup9) {
segmentGroup9Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup11 != null && !segmentGroup11.isEmpty()) {
for(SegmentGroup11 segmentGroup11Inst : segmentGroup11) {
segmentGroup11Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup12 != null && !segmentGroup12.isEmpty()) {
for(SegmentGroup12 segmentGroup12Inst : segmentGroup12) {
segmentGroup12Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup14 != null && !segmentGroup14.isEmpty()) {
for(SegmentGroup14 segmentGroup14Inst : segmentGroup14) {
segmentGroup14Inst.write(nodeWriter, delimiters);
}
}
}
public DocumentMessageDetails getDocumentMessageDetails() {
return documentMessageDetails;
}
public SegmentGroup6 setDocumentMessageDetails(DocumentMessageDetails documentMessageDetails) {
this.documentMessageDetails = documentMessageDetails; return this;
}
public List get_package() {
return _package;
}
public SegmentGroup6 set_package(List _package) {
this._package = _package; return this;
}
public List getReference() {
return reference;
}
public SegmentGroup6 setReference(List reference) {
this.reference = reference; return this;
}
public List getPackageIdentification() {
return packageIdentification;
}
public SegmentGroup6 setPackageIdentification(List packageIdentification) {
this.packageIdentification = packageIdentification; return this;
}
public List getFreeText() {
return freeText;
}
public SegmentGroup6 setFreeText(List freeText) {
this.freeText = freeText; return this;
}
public List getTransportInformation() {
return transportInformation;
}
public SegmentGroup6 setTransportInformation(List transportInformation) {
this.transportInformation = transportInformation; return this;
}
public List getPlaceLocationIdentification() {
return placeLocationIdentification;
}
public SegmentGroup6 setPlaceLocationIdentification(List placeLocationIdentification) {
this.placeLocationIdentification = placeLocationIdentification; return this;
}
public List getDateTimePeriod() {
return dateTimePeriod;
}
public SegmentGroup6 setDateTimePeriod(List dateTimePeriod) {
this.dateTimePeriod = dateTimePeriod; return this;
}
public List getProcessingInformation() {
return processingInformation;
}
public SegmentGroup6 setProcessingInformation(List processingInformation) {
this.processingInformation = processingInformation; return this;
}
public List getMeasurements() {
return measurements;
}
public SegmentGroup6 setMeasurements(List measurements) {
this.measurements = measurements; return this;
}
public List getEquipmentDetails() {
return equipmentDetails;
}
public SegmentGroup6 setEquipmentDetails(List equipmentDetails) {
this.equipmentDetails = equipmentDetails; return this;
}
public List getSegmentGroup7() {
return segmentGroup7;
}
public SegmentGroup6 setSegmentGroup7(List segmentGroup7) {
this.segmentGroup7 = segmentGroup7; return this;
}
public List getSegmentGroup9() {
return segmentGroup9;
}
public SegmentGroup6 setSegmentGroup9(List segmentGroup9) {
this.segmentGroup9 = segmentGroup9; return this;
}
public List getSegmentGroup11() {
return segmentGroup11;
}
public SegmentGroup6 setSegmentGroup11(List segmentGroup11) {
this.segmentGroup11 = segmentGroup11; return this;
}
public List getSegmentGroup12() {
return segmentGroup12;
}
public SegmentGroup6 setSegmentGroup12(List segmentGroup12) {
this.segmentGroup12 = segmentGroup12; return this;
}
public List getSegmentGroup14() {
return segmentGroup14;
}
public SegmentGroup6 setSegmentGroup14(List segmentGroup14) {
this.segmentGroup14 = segmentGroup14; return this;
}
}