org.milyn.edi.unedifact.d03b.IFCSUM.SegmentGroup51 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d03b.IFCSUM;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d03b.common.GoodsItemDetails;
import org.milyn.edi.unedifact.d03b.common.HandlingInstructions;
import org.milyn.edi.unedifact.d03b.common.Temperature;
import org.milyn.edi.unedifact.d03b.common.RangeDetails;
import org.milyn.edi.unedifact.d03b.common.TransportMovementDetails;
import java.util.List;
import org.milyn.edi.unedifact.d03b.common.PlaceLocationIdentification;
import org.milyn.edi.unedifact.d03b.common.MonetaryAmount;
import org.milyn.edi.unedifact.d03b.common.AdditionalProductId;
import org.milyn.edi.unedifact.d03b.common.GoodsIdentityNumber;
import org.milyn.edi.unedifact.d03b.common.FreeText;
import org.milyn.edi.unedifact.d03b.common.NatureOfCargo;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup51 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 goodsIdentityNumber;
private List freeText;
private List segmentGroup52;
private List natureOfCargo;
private List segmentGroup53;
private List segmentGroup54;
private List segmentGroup55;
private List segmentGroup56;
private List segmentGroup57;
private List segmentGroup58;
private List segmentGroup60;
private List segmentGroup62;
private List segmentGroup64;
private List segmentGroup65;
private List segmentGroup66;
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(goodsIdentityNumber != null && !goodsIdentityNumber.isEmpty()) {
for(GoodsIdentityNumber goodsIdentityNumberInst : goodsIdentityNumber) {
nodeWriter.write("GIN");
nodeWriter.write(delimiters.getField());
goodsIdentityNumberInst.write(nodeWriter, delimiters);
}
}
if(freeText != null && !freeText.isEmpty()) {
for(FreeText freeTextInst : freeText) {
nodeWriter.write("FTX");
nodeWriter.write(delimiters.getField());
freeTextInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup52 != null && !segmentGroup52.isEmpty()) {
for(SegmentGroup52 segmentGroup52Inst : segmentGroup52) {
segmentGroup52Inst.write(nodeWriter, delimiters);
}
}
if(natureOfCargo != null && !natureOfCargo.isEmpty()) {
for(NatureOfCargo natureOfCargoInst : natureOfCargo) {
nodeWriter.write("GDS");
nodeWriter.write(delimiters.getField());
natureOfCargoInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup53 != null && !segmentGroup53.isEmpty()) {
for(SegmentGroup53 segmentGroup53Inst : segmentGroup53) {
segmentGroup53Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup54 != null && !segmentGroup54.isEmpty()) {
for(SegmentGroup54 segmentGroup54Inst : segmentGroup54) {
segmentGroup54Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup55 != null && !segmentGroup55.isEmpty()) {
for(SegmentGroup55 segmentGroup55Inst : segmentGroup55) {
segmentGroup55Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup56 != null && !segmentGroup56.isEmpty()) {
for(SegmentGroup56 segmentGroup56Inst : segmentGroup56) {
segmentGroup56Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup57 != null && !segmentGroup57.isEmpty()) {
for(SegmentGroup57 segmentGroup57Inst : segmentGroup57) {
segmentGroup57Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup58 != null && !segmentGroup58.isEmpty()) {
for(SegmentGroup58 segmentGroup58Inst : segmentGroup58) {
segmentGroup58Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup60 != null && !segmentGroup60.isEmpty()) {
for(SegmentGroup60 segmentGroup60Inst : segmentGroup60) {
segmentGroup60Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup62 != null && !segmentGroup62.isEmpty()) {
for(SegmentGroup62 segmentGroup62Inst : segmentGroup62) {
segmentGroup62Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup64 != null && !segmentGroup64.isEmpty()) {
for(SegmentGroup64 segmentGroup64Inst : segmentGroup64) {
segmentGroup64Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup65 != null && !segmentGroup65.isEmpty()) {
for(SegmentGroup65 segmentGroup65Inst : segmentGroup65) {
segmentGroup65Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup66 != null && !segmentGroup66.isEmpty()) {
for(SegmentGroup66 segmentGroup66Inst : segmentGroup66) {
segmentGroup66Inst.write(nodeWriter, delimiters);
}
}
}
public GoodsItemDetails getGoodsItemDetails() {
return goodsItemDetails;
}
public SegmentGroup51 setGoodsItemDetails(GoodsItemDetails goodsItemDetails) {
this.goodsItemDetails = goodsItemDetails; return this;
}
public HandlingInstructions getHandlingInstructions() {
return handlingInstructions;
}
public SegmentGroup51 setHandlingInstructions(HandlingInstructions handlingInstructions) {
this.handlingInstructions = handlingInstructions; return this;
}
public Temperature getTemperature() {
return temperature;
}
public SegmentGroup51 setTemperature(Temperature temperature) {
this.temperature = temperature; return this;
}
public RangeDetails getRangeDetails() {
return rangeDetails;
}
public SegmentGroup51 setRangeDetails(RangeDetails rangeDetails) {
this.rangeDetails = rangeDetails; return this;
}
public TransportMovementDetails getTransportMovementDetails() {
return transportMovementDetails;
}
public SegmentGroup51 setTransportMovementDetails(TransportMovementDetails transportMovementDetails) {
this.transportMovementDetails = transportMovementDetails; return this;
}
public List getPlaceLocationIdentification() {
return placeLocationIdentification;
}
public SegmentGroup51 setPlaceLocationIdentification(List placeLocationIdentification) {
this.placeLocationIdentification = placeLocationIdentification; return this;
}
public List getMonetaryAmount() {
return monetaryAmount;
}
public SegmentGroup51 setMonetaryAmount(List monetaryAmount) {
this.monetaryAmount = monetaryAmount; return this;
}
public List getAdditionalProductId() {
return additionalProductId;
}
public SegmentGroup51 setAdditionalProductId(List additionalProductId) {
this.additionalProductId = additionalProductId; return this;
}
public List getGoodsIdentityNumber() {
return goodsIdentityNumber;
}
public SegmentGroup51 setGoodsIdentityNumber(List goodsIdentityNumber) {
this.goodsIdentityNumber = goodsIdentityNumber; return this;
}
public List getFreeText() {
return freeText;
}
public SegmentGroup51 setFreeText(List freeText) {
this.freeText = freeText; return this;
}
public List getSegmentGroup52() {
return segmentGroup52;
}
public SegmentGroup51 setSegmentGroup52(List segmentGroup52) {
this.segmentGroup52 = segmentGroup52; return this;
}
public List getNatureOfCargo() {
return natureOfCargo;
}
public SegmentGroup51 setNatureOfCargo(List natureOfCargo) {
this.natureOfCargo = natureOfCargo; return this;
}
public List getSegmentGroup53() {
return segmentGroup53;
}
public SegmentGroup51 setSegmentGroup53(List segmentGroup53) {
this.segmentGroup53 = segmentGroup53; return this;
}
public List getSegmentGroup54() {
return segmentGroup54;
}
public SegmentGroup51 setSegmentGroup54(List segmentGroup54) {
this.segmentGroup54 = segmentGroup54; return this;
}
public List getSegmentGroup55() {
return segmentGroup55;
}
public SegmentGroup51 setSegmentGroup55(List segmentGroup55) {
this.segmentGroup55 = segmentGroup55; return this;
}
public List getSegmentGroup56() {
return segmentGroup56;
}
public SegmentGroup51 setSegmentGroup56(List segmentGroup56) {
this.segmentGroup56 = segmentGroup56; return this;
}
public List getSegmentGroup57() {
return segmentGroup57;
}
public SegmentGroup51 setSegmentGroup57(List segmentGroup57) {
this.segmentGroup57 = segmentGroup57; return this;
}
public List getSegmentGroup58() {
return segmentGroup58;
}
public SegmentGroup51 setSegmentGroup58(List segmentGroup58) {
this.segmentGroup58 = segmentGroup58; return this;
}
public List getSegmentGroup60() {
return segmentGroup60;
}
public SegmentGroup51 setSegmentGroup60(List segmentGroup60) {
this.segmentGroup60 = segmentGroup60; return this;
}
public List getSegmentGroup62() {
return segmentGroup62;
}
public SegmentGroup51 setSegmentGroup62(List segmentGroup62) {
this.segmentGroup62 = segmentGroup62; return this;
}
public List getSegmentGroup64() {
return segmentGroup64;
}
public SegmentGroup51 setSegmentGroup64(List segmentGroup64) {
this.segmentGroup64 = segmentGroup64; return this;
}
public List getSegmentGroup65() {
return segmentGroup65;
}
public SegmentGroup51 setSegmentGroup65(List segmentGroup65) {
this.segmentGroup65 = segmentGroup65; return this;
}
public List getSegmentGroup66() {
return segmentGroup66;
}
public SegmentGroup51 setSegmentGroup66(List segmentGroup66) {
this.segmentGroup66 = segmentGroup66; return this;
}
}