org.milyn.edi.unedifact.d98a.CUSPED.SegmentGroup7 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d98a.CUSPED;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d98a.common.DocumentMessageSummary;
import java.util.List;
import org.milyn.edi.unedifact.d98a.common.ControlTotal;
import org.milyn.edi.unedifact.d98a.common.Reference;
import org.milyn.edi.unedifact.d98a.common.DateTimePeriod;
import org.milyn.edi.unedifact.d98a.common.GeneralIndicator;
import org.milyn.edi.unedifact.d98a.common.PlaceLocationIdentification;
import org.milyn.edi.unedifact.d98a.common.EquipmentDetails;
import org.milyn.edi.unedifact.d98a.common.Package;
import org.milyn.edi.unedifact.d98a.common.DetailsOfTransport;
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 generalIndicator;
private List placeLocationIdentification;
private List equipmentDetails;
private List _package;
private List detailsOfTransport;
private SegmentGroup8 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(generalIndicator != null && !generalIndicator.isEmpty()) {
for(GeneralIndicator generalIndicatorInst : generalIndicator) {
nodeWriter.write("GIS");
nodeWriter.write(delimiters.getField());
generalIndicatorInst.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(detailsOfTransport != null && !detailsOfTransport.isEmpty()) {
for(DetailsOfTransport detailsOfTransportInst : detailsOfTransport) {
nodeWriter.write("TDT");
nodeWriter.write(delimiters.getField());
detailsOfTransportInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup8 != null) {
segmentGroup8.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 getGeneralIndicator() {
return generalIndicator;
}
public SegmentGroup7 setGeneralIndicator(List generalIndicator) {
this.generalIndicator = generalIndicator; 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 getDetailsOfTransport() {
return detailsOfTransport;
}
public SegmentGroup7 setDetailsOfTransport(List detailsOfTransport) {
this.detailsOfTransport = detailsOfTransport; return this;
}
public SegmentGroup8 getSegmentGroup8() {
return segmentGroup8;
}
public SegmentGroup7 setSegmentGroup8(SegmentGroup8 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;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy