org.milyn.edi.unedifact.d96a.COPARN.SegmentGroup7 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d96a.COPARN;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d96a.common.EquipmentDetails;
import java.util.List;
import org.milyn.edi.unedifact.d96a.common.Reference;
import org.milyn.edi.unedifact.d96a.common.NumberOfUnits;
import org.milyn.edi.unedifact.d96a.common.TransportMovementDetails;
import org.milyn.edi.unedifact.d96a.common.DateTimePeriod;
import org.milyn.edi.unedifact.d96a.common.TransportServiceRequirements;
import org.milyn.edi.unedifact.d96a.common.PlaceLocationIdentification;
import org.milyn.edi.unedifact.d96a.common.Measurements;
import org.milyn.edi.unedifact.d96a.common.Dimensions;
import org.milyn.edi.unedifact.d96a.common.Temperature;
import org.milyn.edi.unedifact.d96a.common.RangeDetails;
import org.milyn.edi.unedifact.d96a.common.SealNumber;
import org.milyn.edi.unedifact.d96a.common.FreeText;
import org.milyn.edi.unedifact.d96a.common.DangerousGoods;
import org.milyn.edi.unedifact.d96a.common.MonetaryAmount;
import org.milyn.edi.unedifact.d96a.common.GovernmentalRequirements;
import org.milyn.edi.unedifact.d96a.common.AttachedEquipment;
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 EquipmentDetails equipmentDetails;
private List reference;
private NumberOfUnits numberOfUnits;
private List transportMovementDetails;
private List dateTimePeriod;
private List transportServiceRequirements;
private List placeLocationIdentification;
private List measurements;
private List dimensions;
private List temperature;
private List rangeDetails;
private List sealNumber;
private List freeText;
private DangerousGoods dangerousGoods;
private List monetaryAmount;
private List governmentalRequirements;
private AttachedEquipment attachedEquipment;
private List segmentGroup8;
private List segmentGroup9;
private List segmentGroup10;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(equipmentDetails != null) {
nodeWriter.write("EQD");
nodeWriter.write(delimiters.getField());
equipmentDetails.write(nodeWriter, delimiters);
}
if(reference != null && !reference.isEmpty()) {
for(Reference referenceInst : reference) {
nodeWriter.write("RFF");
nodeWriter.write(delimiters.getField());
referenceInst.write(nodeWriter, delimiters);
}
}
if(numberOfUnits != null) {
nodeWriter.write("EQN");
nodeWriter.write(delimiters.getField());
numberOfUnits.write(nodeWriter, delimiters);
}
if(transportMovementDetails != null && !transportMovementDetails.isEmpty()) {
for(TransportMovementDetails transportMovementDetailsInst : transportMovementDetails) {
nodeWriter.write("TMD");
nodeWriter.write(delimiters.getField());
transportMovementDetailsInst.write(nodeWriter, delimiters);
}
}
if(dateTimePeriod != null && !dateTimePeriod.isEmpty()) {
for(DateTimePeriod dateTimePeriodInst : dateTimePeriod) {
nodeWriter.write("DTM");
nodeWriter.write(delimiters.getField());
dateTimePeriodInst.write(nodeWriter, delimiters);
}
}
if(transportServiceRequirements != null && !transportServiceRequirements.isEmpty()) {
for(TransportServiceRequirements transportServiceRequirementsInst : transportServiceRequirements) {
nodeWriter.write("TSR");
nodeWriter.write(delimiters.getField());
transportServiceRequirementsInst.write(nodeWriter, delimiters);
}
}
if(placeLocationIdentification != null && !placeLocationIdentification.isEmpty()) {
for(PlaceLocationIdentification placeLocationIdentificationInst : placeLocationIdentification) {
nodeWriter.write("LOC");
nodeWriter.write(delimiters.getField());
placeLocationIdentificationInst.write(nodeWriter, delimiters);
}
}
if(measurements != null && !measurements.isEmpty()) {
for(Measurements measurementsInst : measurements) {
nodeWriter.write("MEA");
nodeWriter.write(delimiters.getField());
measurementsInst.write(nodeWriter, delimiters);
}
}
if(dimensions != null && !dimensions.isEmpty()) {
for(Dimensions dimensionsInst : dimensions) {
nodeWriter.write("DIM");
nodeWriter.write(delimiters.getField());
dimensionsInst.write(nodeWriter, delimiters);
}
}
if(temperature != null && !temperature.isEmpty()) {
for(Temperature temperatureInst : temperature) {
nodeWriter.write("TMP");
nodeWriter.write(delimiters.getField());
temperatureInst.write(nodeWriter, delimiters);
}
}
if(rangeDetails != null && !rangeDetails.isEmpty()) {
for(RangeDetails rangeDetailsInst : rangeDetails) {
nodeWriter.write("RNG");
nodeWriter.write(delimiters.getField());
rangeDetailsInst.write(nodeWriter, delimiters);
}
}
if(sealNumber != null && !sealNumber.isEmpty()) {
for(SealNumber sealNumberInst : sealNumber) {
nodeWriter.write("SEL");
nodeWriter.write(delimiters.getField());
sealNumberInst.write(nodeWriter, delimiters);
}
}
if(freeText != null && !freeText.isEmpty()) {
for(FreeText freeTextInst : freeText) {
nodeWriter.write("FTX");
nodeWriter.write(delimiters.getField());
freeTextInst.write(nodeWriter, delimiters);
}
}
if(dangerousGoods != null) {
nodeWriter.write("DGS");
nodeWriter.write(delimiters.getField());
dangerousGoods.write(nodeWriter, delimiters);
}
if(monetaryAmount != null && !monetaryAmount.isEmpty()) {
for(MonetaryAmount monetaryAmountInst : monetaryAmount) {
nodeWriter.write("MOA");
nodeWriter.write(delimiters.getField());
monetaryAmountInst.write(nodeWriter, delimiters);
}
}
if(governmentalRequirements != null && !governmentalRequirements.isEmpty()) {
for(GovernmentalRequirements governmentalRequirementsInst : governmentalRequirements) {
nodeWriter.write("GOR");
nodeWriter.write(delimiters.getField());
governmentalRequirementsInst.write(nodeWriter, delimiters);
}
}
if(attachedEquipment != null) {
nodeWriter.write("EQA");
nodeWriter.write(delimiters.getField());
attachedEquipment.write(nodeWriter, delimiters);
}
if(segmentGroup8 != null && !segmentGroup8.isEmpty()) {
for(SegmentGroup8 segmentGroup8Inst : segmentGroup8) {
segmentGroup8Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup9 != null && !segmentGroup9.isEmpty()) {
for(SegmentGroup9 segmentGroup9Inst : segmentGroup9) {
segmentGroup9Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup10 != null && !segmentGroup10.isEmpty()) {
for(SegmentGroup10 segmentGroup10Inst : segmentGroup10) {
segmentGroup10Inst.write(nodeWriter, delimiters);
}
}
}
public EquipmentDetails getEquipmentDetails() {
return equipmentDetails;
}
public SegmentGroup7 setEquipmentDetails(EquipmentDetails equipmentDetails) {
this.equipmentDetails = equipmentDetails; return this;
}
public List getReference() {
return reference;
}
public SegmentGroup7 setReference(List reference) {
this.reference = reference; return this;
}
public NumberOfUnits getNumberOfUnits() {
return numberOfUnits;
}
public SegmentGroup7 setNumberOfUnits(NumberOfUnits numberOfUnits) {
this.numberOfUnits = numberOfUnits; return this;
}
public List getTransportMovementDetails() {
return transportMovementDetails;
}
public SegmentGroup7 setTransportMovementDetails(List transportMovementDetails) {
this.transportMovementDetails = transportMovementDetails; return this;
}
public List getDateTimePeriod() {
return dateTimePeriod;
}
public SegmentGroup7 setDateTimePeriod(List dateTimePeriod) {
this.dateTimePeriod = dateTimePeriod; return this;
}
public List getTransportServiceRequirements() {
return transportServiceRequirements;
}
public SegmentGroup7 setTransportServiceRequirements(List transportServiceRequirements) {
this.transportServiceRequirements = transportServiceRequirements; return this;
}
public List getPlaceLocationIdentification() {
return placeLocationIdentification;
}
public SegmentGroup7 setPlaceLocationIdentification(List placeLocationIdentification) {
this.placeLocationIdentification = placeLocationIdentification; return this;
}
public List getMeasurements() {
return measurements;
}
public SegmentGroup7 setMeasurements(List measurements) {
this.measurements = measurements; return this;
}
public List getDimensions() {
return dimensions;
}
public SegmentGroup7 setDimensions(List dimensions) {
this.dimensions = dimensions; return this;
}
public List getTemperature() {
return temperature;
}
public SegmentGroup7 setTemperature(List temperature) {
this.temperature = temperature; return this;
}
public List getRangeDetails() {
return rangeDetails;
}
public SegmentGroup7 setRangeDetails(List rangeDetails) {
this.rangeDetails = rangeDetails; return this;
}
public List getSealNumber() {
return sealNumber;
}
public SegmentGroup7 setSealNumber(List sealNumber) {
this.sealNumber = sealNumber; return this;
}
public List getFreeText() {
return freeText;
}
public SegmentGroup7 setFreeText(List freeText) {
this.freeText = freeText; return this;
}
public DangerousGoods getDangerousGoods() {
return dangerousGoods;
}
public SegmentGroup7 setDangerousGoods(DangerousGoods dangerousGoods) {
this.dangerousGoods = dangerousGoods; return this;
}
public List getMonetaryAmount() {
return monetaryAmount;
}
public SegmentGroup7 setMonetaryAmount(List monetaryAmount) {
this.monetaryAmount = monetaryAmount; return this;
}
public List getGovernmentalRequirements() {
return governmentalRequirements;
}
public SegmentGroup7 setGovernmentalRequirements(List governmentalRequirements) {
this.governmentalRequirements = governmentalRequirements; return this;
}
public AttachedEquipment getAttachedEquipment() {
return attachedEquipment;
}
public SegmentGroup7 setAttachedEquipment(AttachedEquipment attachedEquipment) {
this.attachedEquipment = attachedEquipment; return this;
}
public List getSegmentGroup8() {
return segmentGroup8;
}
public SegmentGroup7 setSegmentGroup8(List segmentGroup8) {
this.segmentGroup8 = segmentGroup8; return this;
}
public List getSegmentGroup9() {
return segmentGroup9;
}
public SegmentGroup7 setSegmentGroup9(List segmentGroup9) {
this.segmentGroup9 = segmentGroup9; return this;
}
public List getSegmentGroup10() {
return segmentGroup10;
}
public SegmentGroup7 setSegmentGroup10(List segmentGroup10) {
this.segmentGroup10 = segmentGroup10; return this;
}
}