org.milyn.edi.unedifact.d05a.IFTMCA.SegmentGroup17 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d05a.IFTMCA;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d05a.common.GoodsItemDetails;
import org.milyn.edi.unedifact.d05a.common.HandlingInstructions;
import org.milyn.edi.unedifact.d05a.common.Temperature;
import org.milyn.edi.unedifact.d05a.common.RangeDetails;
import org.milyn.edi.unedifact.d05a.common.TransportMovementDetails;
import java.util.List;
import org.milyn.edi.unedifact.d05a.common.PlaceLocationIdentification;
import org.milyn.edi.unedifact.d05a.common.MonetaryAmount;
import org.milyn.edi.unedifact.d05a.common.AdditionalProductId;
import org.milyn.edi.unedifact.d05a.common.FreeText;
import org.milyn.edi.unedifact.d05a.common.NatureOfCargo;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup17 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private GoodsItemDetails goodsItemDetails;
private HandlingInstructions handlingInstructions;
private Temperature temperature;
private RangeDetails rangeDetails;
private TransportMovementDetails transportMovementDetails;
private List placeLocationIdentification;
private List monetaryAmount;
private List additionalProductId;
private List freeText;
private List segmentGroup18;
private List natureOfCargo;
private List segmentGroup19;
private List segmentGroup20;
private List segmentGroup21;
private List segmentGroup22;
private List segmentGroup23;
private List segmentGroup24;
private List segmentGroup26;
private List segmentGroup28;
private List segmentGroup30;
private List segmentGroup31;
private List segmentGroup32;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(goodsItemDetails != null) {
nodeWriter.write("GID");
nodeWriter.write(delimiters.getField());
goodsItemDetails.write(nodeWriter, delimiters);
}
if(handlingInstructions != null) {
nodeWriter.write("HAN");
nodeWriter.write(delimiters.getField());
handlingInstructions.write(nodeWriter, delimiters);
}
if(temperature != null) {
nodeWriter.write("TMP");
nodeWriter.write(delimiters.getField());
temperature.write(nodeWriter, delimiters);
}
if(rangeDetails != null) {
nodeWriter.write("RNG");
nodeWriter.write(delimiters.getField());
rangeDetails.write(nodeWriter, delimiters);
}
if(transportMovementDetails != null) {
nodeWriter.write("TMD");
nodeWriter.write(delimiters.getField());
transportMovementDetails.write(nodeWriter, delimiters);
}
if(placeLocationIdentification != null && !placeLocationIdentification.isEmpty()) {
for(PlaceLocationIdentification placeLocationIdentificationInst : placeLocationIdentification) {
nodeWriter.write("LOC");
nodeWriter.write(delimiters.getField());
placeLocationIdentificationInst.write(nodeWriter, delimiters);
}
}
if(monetaryAmount != null && !monetaryAmount.isEmpty()) {
for(MonetaryAmount monetaryAmountInst : monetaryAmount) {
nodeWriter.write("MOA");
nodeWriter.write(delimiters.getField());
monetaryAmountInst.write(nodeWriter, delimiters);
}
}
if(additionalProductId != null && !additionalProductId.isEmpty()) {
for(AdditionalProductId additionalProductIdInst : additionalProductId) {
nodeWriter.write("PIA");
nodeWriter.write(delimiters.getField());
additionalProductIdInst.write(nodeWriter, delimiters);
}
}
if(freeText != null && !freeText.isEmpty()) {
for(FreeText freeTextInst : freeText) {
nodeWriter.write("FTX");
nodeWriter.write(delimiters.getField());
freeTextInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup18 != null && !segmentGroup18.isEmpty()) {
for(SegmentGroup18 segmentGroup18Inst : segmentGroup18) {
segmentGroup18Inst.write(nodeWriter, delimiters);
}
}
if(natureOfCargo != null && !natureOfCargo.isEmpty()) {
for(NatureOfCargo natureOfCargoInst : natureOfCargo) {
nodeWriter.write("GDS");
nodeWriter.write(delimiters.getField());
natureOfCargoInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup19 != null && !segmentGroup19.isEmpty()) {
for(SegmentGroup19 segmentGroup19Inst : segmentGroup19) {
segmentGroup19Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup20 != null && !segmentGroup20.isEmpty()) {
for(SegmentGroup20 segmentGroup20Inst : segmentGroup20) {
segmentGroup20Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup21 != null && !segmentGroup21.isEmpty()) {
for(SegmentGroup21 segmentGroup21Inst : segmentGroup21) {
segmentGroup21Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup22 != null && !segmentGroup22.isEmpty()) {
for(SegmentGroup22 segmentGroup22Inst : segmentGroup22) {
segmentGroup22Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup23 != null && !segmentGroup23.isEmpty()) {
for(SegmentGroup23 segmentGroup23Inst : segmentGroup23) {
segmentGroup23Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup24 != null && !segmentGroup24.isEmpty()) {
for(SegmentGroup24 segmentGroup24Inst : segmentGroup24) {
segmentGroup24Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup26 != null && !segmentGroup26.isEmpty()) {
for(SegmentGroup26 segmentGroup26Inst : segmentGroup26) {
segmentGroup26Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup28 != null && !segmentGroup28.isEmpty()) {
for(SegmentGroup28 segmentGroup28Inst : segmentGroup28) {
segmentGroup28Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup30 != null && !segmentGroup30.isEmpty()) {
for(SegmentGroup30 segmentGroup30Inst : segmentGroup30) {
segmentGroup30Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup31 != null && !segmentGroup31.isEmpty()) {
for(SegmentGroup31 segmentGroup31Inst : segmentGroup31) {
segmentGroup31Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup32 != null && !segmentGroup32.isEmpty()) {
for(SegmentGroup32 segmentGroup32Inst : segmentGroup32) {
segmentGroup32Inst.write(nodeWriter, delimiters);
}
}
}
public GoodsItemDetails getGoodsItemDetails() {
return goodsItemDetails;
}
public SegmentGroup17 setGoodsItemDetails(GoodsItemDetails goodsItemDetails) {
this.goodsItemDetails = goodsItemDetails; return this;
}
public HandlingInstructions getHandlingInstructions() {
return handlingInstructions;
}
public SegmentGroup17 setHandlingInstructions(HandlingInstructions handlingInstructions) {
this.handlingInstructions = handlingInstructions; return this;
}
public Temperature getTemperature() {
return temperature;
}
public SegmentGroup17 setTemperature(Temperature temperature) {
this.temperature = temperature; return this;
}
public RangeDetails getRangeDetails() {
return rangeDetails;
}
public SegmentGroup17 setRangeDetails(RangeDetails rangeDetails) {
this.rangeDetails = rangeDetails; return this;
}
public TransportMovementDetails getTransportMovementDetails() {
return transportMovementDetails;
}
public SegmentGroup17 setTransportMovementDetails(TransportMovementDetails transportMovementDetails) {
this.transportMovementDetails = transportMovementDetails; return this;
}
public List getPlaceLocationIdentification() {
return placeLocationIdentification;
}
public SegmentGroup17 setPlaceLocationIdentification(List placeLocationIdentification) {
this.placeLocationIdentification = placeLocationIdentification; return this;
}
public List getMonetaryAmount() {
return monetaryAmount;
}
public SegmentGroup17 setMonetaryAmount(List monetaryAmount) {
this.monetaryAmount = monetaryAmount; return this;
}
public List getAdditionalProductId() {
return additionalProductId;
}
public SegmentGroup17 setAdditionalProductId(List additionalProductId) {
this.additionalProductId = additionalProductId; return this;
}
public List getFreeText() {
return freeText;
}
public SegmentGroup17 setFreeText(List freeText) {
this.freeText = freeText; return this;
}
public List getSegmentGroup18() {
return segmentGroup18;
}
public SegmentGroup17 setSegmentGroup18(List segmentGroup18) {
this.segmentGroup18 = segmentGroup18; return this;
}
public List getNatureOfCargo() {
return natureOfCargo;
}
public SegmentGroup17 setNatureOfCargo(List natureOfCargo) {
this.natureOfCargo = natureOfCargo; return this;
}
public List getSegmentGroup19() {
return segmentGroup19;
}
public SegmentGroup17 setSegmentGroup19(List segmentGroup19) {
this.segmentGroup19 = segmentGroup19; return this;
}
public List getSegmentGroup20() {
return segmentGroup20;
}
public SegmentGroup17 setSegmentGroup20(List segmentGroup20) {
this.segmentGroup20 = segmentGroup20; return this;
}
public List getSegmentGroup21() {
return segmentGroup21;
}
public SegmentGroup17 setSegmentGroup21(List segmentGroup21) {
this.segmentGroup21 = segmentGroup21; return this;
}
public List getSegmentGroup22() {
return segmentGroup22;
}
public SegmentGroup17 setSegmentGroup22(List segmentGroup22) {
this.segmentGroup22 = segmentGroup22; return this;
}
public List getSegmentGroup23() {
return segmentGroup23;
}
public SegmentGroup17 setSegmentGroup23(List segmentGroup23) {
this.segmentGroup23 = segmentGroup23; return this;
}
public List getSegmentGroup24() {
return segmentGroup24;
}
public SegmentGroup17 setSegmentGroup24(List segmentGroup24) {
this.segmentGroup24 = segmentGroup24; return this;
}
public List getSegmentGroup26() {
return segmentGroup26;
}
public SegmentGroup17 setSegmentGroup26(List segmentGroup26) {
this.segmentGroup26 = segmentGroup26; return this;
}
public List getSegmentGroup28() {
return segmentGroup28;
}
public SegmentGroup17 setSegmentGroup28(List segmentGroup28) {
this.segmentGroup28 = segmentGroup28; return this;
}
public List getSegmentGroup30() {
return segmentGroup30;
}
public SegmentGroup17 setSegmentGroup30(List segmentGroup30) {
this.segmentGroup30 = segmentGroup30; return this;
}
public List getSegmentGroup31() {
return segmentGroup31;
}
public SegmentGroup17 setSegmentGroup31(List segmentGroup31) {
this.segmentGroup31 = segmentGroup31; return this;
}
public List getSegmentGroup32() {
return segmentGroup32;
}
public SegmentGroup17 setSegmentGroup32(List segmentGroup32) {
this.segmentGroup32 = segmentGroup32; return this;
}
}