org.milyn.edi.unedifact.d06b.CUSPED.SegmentGroup7 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d06b.CUSPED;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d06b.common.DocumentMessageSummary;
import java.util.List;
import org.milyn.edi.unedifact.d06b.common.ControlTotal;
import org.milyn.edi.unedifact.d06b.common.Reference;
import org.milyn.edi.unedifact.d06b.common.DateTimePeriod;
import org.milyn.edi.unedifact.d06b.common.ProcessingInformation;
import org.milyn.edi.unedifact.d06b.common.PlaceLocationIdentification;
import org.milyn.edi.unedifact.d06b.common.EquipmentDetails;
import org.milyn.edi.unedifact.d06b.common.Package;
import org.milyn.edi.unedifact.d06b.common.TransportInformation;
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 DocumentMessageSummary documentMessageSummary;
private List controlTotal;
private List reference;
private List dateTimePeriod;
private List processingInformation;
private List placeLocationIdentification;
private List equipmentDetails;
private List _package;
private List transportInformation;
private List segmentGroup8;
private List segmentGroup10;
private List segmentGroup11;
private List segmentGroup12;
private List segmentGroup14;
private List segmentGroup15;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(documentMessageSummary != null) {
nodeWriter.write("DMS");
nodeWriter.write(delimiters.getField());
documentMessageSummary.write(nodeWriter, delimiters);
}
if(controlTotal != null && !controlTotal.isEmpty()) {
for(ControlTotal controlTotalInst : controlTotal) {
nodeWriter.write("CNT");
nodeWriter.write(delimiters.getField());
controlTotalInst.write(nodeWriter, delimiters);
}
}
if(reference != null && !reference.isEmpty()) {
for(Reference referenceInst : reference) {
nodeWriter.write("RFF");
nodeWriter.write(delimiters.getField());
referenceInst.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(placeLocationIdentification != null && !placeLocationIdentification.isEmpty()) {
for(PlaceLocationIdentification placeLocationIdentificationInst : placeLocationIdentification) {
nodeWriter.write("LOC");
nodeWriter.write(delimiters.getField());
placeLocationIdentificationInst.write(nodeWriter, delimiters);
}
}
if(equipmentDetails != null && !equipmentDetails.isEmpty()) {
for(EquipmentDetails equipmentDetailsInst : equipmentDetails) {
nodeWriter.write("EQD");
nodeWriter.write(delimiters.getField());
equipmentDetailsInst.write(nodeWriter, delimiters);
}
}
if(_package != null && !_package.isEmpty()) {
for(Package _packageInst : _package) {
nodeWriter.write("PAC");
nodeWriter.write(delimiters.getField());
_packageInst.write(nodeWriter, delimiters);
}
}
if(transportInformation != null && !transportInformation.isEmpty()) {
for(TransportInformation transportInformationInst : transportInformation) {
nodeWriter.write("TDT");
nodeWriter.write(delimiters.getField());
transportInformationInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup8 != null && !segmentGroup8.isEmpty()) {
for(SegmentGroup8 segmentGroup8Inst : segmentGroup8) {
segmentGroup8Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup10 != null && !segmentGroup10.isEmpty()) {
for(SegmentGroup10 segmentGroup10Inst : segmentGroup10) {
segmentGroup10Inst.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);
}
}
if(segmentGroup15 != null && !segmentGroup15.isEmpty()) {
for(SegmentGroup15 segmentGroup15Inst : segmentGroup15) {
segmentGroup15Inst.write(nodeWriter, delimiters);
}
}
}
public DocumentMessageSummary getDocumentMessageSummary() {
return documentMessageSummary;
}
public SegmentGroup7 setDocumentMessageSummary(DocumentMessageSummary documentMessageSummary) {
this.documentMessageSummary = documentMessageSummary; return this;
}
public List getControlTotal() {
return controlTotal;
}
public SegmentGroup7 setControlTotal(List controlTotal) {
this.controlTotal = controlTotal; return this;
}
public List getReference() {
return reference;
}
public SegmentGroup7 setReference(List reference) {
this.reference = reference; return this;
}
public List getDateTimePeriod() {
return dateTimePeriod;
}
public SegmentGroup7 setDateTimePeriod(List dateTimePeriod) {
this.dateTimePeriod = dateTimePeriod; return this;
}
public List getProcessingInformation() {
return processingInformation;
}
public SegmentGroup7 setProcessingInformation(List processingInformation) {
this.processingInformation = processingInformation; return this;
}
public List getPlaceLocationIdentification() {
return placeLocationIdentification;
}
public SegmentGroup7 setPlaceLocationIdentification(List placeLocationIdentification) {
this.placeLocationIdentification = placeLocationIdentification; return this;
}
public List getEquipmentDetails() {
return equipmentDetails;
}
public SegmentGroup7 setEquipmentDetails(List equipmentDetails) {
this.equipmentDetails = equipmentDetails; return this;
}
public List get_package() {
return _package;
}
public SegmentGroup7 set_package(List _package) {
this._package = _package; return this;
}
public List getTransportInformation() {
return transportInformation;
}
public SegmentGroup7 setTransportInformation(List transportInformation) {
this.transportInformation = transportInformation; return this;
}
public List getSegmentGroup8() {
return segmentGroup8;
}
public SegmentGroup7 setSegmentGroup8(List segmentGroup8) {
this.segmentGroup8 = segmentGroup8; return this;
}
public List getSegmentGroup10() {
return segmentGroup10;
}
public SegmentGroup7 setSegmentGroup10(List segmentGroup10) {
this.segmentGroup10 = segmentGroup10; return this;
}
public List getSegmentGroup11() {
return segmentGroup11;
}
public SegmentGroup7 setSegmentGroup11(List segmentGroup11) {
this.segmentGroup11 = segmentGroup11; return this;
}
public List getSegmentGroup12() {
return segmentGroup12;
}
public SegmentGroup7 setSegmentGroup12(List segmentGroup12) {
this.segmentGroup12 = segmentGroup12; return this;
}
public List getSegmentGroup14() {
return segmentGroup14;
}
public SegmentGroup7 setSegmentGroup14(List segmentGroup14) {
this.segmentGroup14 = segmentGroup14; return this;
}
public List getSegmentGroup15() {
return segmentGroup15;
}
public SegmentGroup7 setSegmentGroup15(List segmentGroup15) {
this.segmentGroup15 = segmentGroup15; return this;
}
}