org.milyn.edi.unedifact.d99b.IFCSUM.SegmentGroup50 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d99b.IFCSUM;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d99b.common.GoodsItemDetails;
import org.milyn.edi.unedifact.d99b.common.HandlingInstructions;
import org.milyn.edi.unedifact.d99b.common.Temperature;
import org.milyn.edi.unedifact.d99b.common.RangeDetails;
import org.milyn.edi.unedifact.d99b.common.TransportMovementDetails;
import java.util.List;
import org.milyn.edi.unedifact.d99b.common.PlaceLocationIdentification;
import org.milyn.edi.unedifact.d99b.common.MonetaryAmount;
import org.milyn.edi.unedifact.d99b.common.AdditionalProductId;
import org.milyn.edi.unedifact.d99b.common.GoodsIdentityNumber;
import org.milyn.edi.unedifact.d99b.common.FreeText;
import org.milyn.edi.unedifact.d99b.common.NatureOfCargo;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup50 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 segmentGroup51;
private List natureOfCargo;
private List segmentGroup52;
private List segmentGroup53;
private List segmentGroup54;
private List segmentGroup55;
private List segmentGroup56;
private List segmentGroup57;
private List segmentGroup59;
private List segmentGroup61;
private List segmentGroup63;
private List segmentGroup64;
private List segmentGroup65;
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(segmentGroup51 != null && !segmentGroup51.isEmpty()) {
for(SegmentGroup51 segmentGroup51Inst : segmentGroup51) {
segmentGroup51Inst.write(nodeWriter, delimiters);
}
}
if(natureOfCargo != null && !natureOfCargo.isEmpty()) {
for(NatureOfCargo natureOfCargoInst : natureOfCargo) {
nodeWriter.write("GDS");
nodeWriter.write(delimiters.getField());
natureOfCargoInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup52 != null && !segmentGroup52.isEmpty()) {
for(SegmentGroup52 segmentGroup52Inst : segmentGroup52) {
segmentGroup52Inst.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(segmentGroup59 != null && !segmentGroup59.isEmpty()) {
for(SegmentGroup59 segmentGroup59Inst : segmentGroup59) {
segmentGroup59Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup61 != null && !segmentGroup61.isEmpty()) {
for(SegmentGroup61 segmentGroup61Inst : segmentGroup61) {
segmentGroup61Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup63 != null && !segmentGroup63.isEmpty()) {
for(SegmentGroup63 segmentGroup63Inst : segmentGroup63) {
segmentGroup63Inst.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);
}
}
}
public GoodsItemDetails getGoodsItemDetails() {
return goodsItemDetails;
}
public SegmentGroup50 setGoodsItemDetails(GoodsItemDetails goodsItemDetails) {
this.goodsItemDetails = goodsItemDetails; return this;
}
public HandlingInstructions getHandlingInstructions() {
return handlingInstructions;
}
public SegmentGroup50 setHandlingInstructions(HandlingInstructions handlingInstructions) {
this.handlingInstructions = handlingInstructions; return this;
}
public Temperature getTemperature() {
return temperature;
}
public SegmentGroup50 setTemperature(Temperature temperature) {
this.temperature = temperature; return this;
}
public RangeDetails getRangeDetails() {
return rangeDetails;
}
public SegmentGroup50 setRangeDetails(RangeDetails rangeDetails) {
this.rangeDetails = rangeDetails; return this;
}
public TransportMovementDetails getTransportMovementDetails() {
return transportMovementDetails;
}
public SegmentGroup50 setTransportMovementDetails(TransportMovementDetails transportMovementDetails) {
this.transportMovementDetails = transportMovementDetails; return this;
}
public List getPlaceLocationIdentification() {
return placeLocationIdentification;
}
public SegmentGroup50 setPlaceLocationIdentification(List placeLocationIdentification) {
this.placeLocationIdentification = placeLocationIdentification; return this;
}
public List getMonetaryAmount() {
return monetaryAmount;
}
public SegmentGroup50 setMonetaryAmount(List monetaryAmount) {
this.monetaryAmount = monetaryAmount; return this;
}
public List getAdditionalProductId() {
return additionalProductId;
}
public SegmentGroup50 setAdditionalProductId(List additionalProductId) {
this.additionalProductId = additionalProductId; return this;
}
public List getGoodsIdentityNumber() {
return goodsIdentityNumber;
}
public SegmentGroup50 setGoodsIdentityNumber(List goodsIdentityNumber) {
this.goodsIdentityNumber = goodsIdentityNumber; return this;
}
public List getFreeText() {
return freeText;
}
public SegmentGroup50 setFreeText(List freeText) {
this.freeText = freeText; return this;
}
public List getSegmentGroup51() {
return segmentGroup51;
}
public SegmentGroup50 setSegmentGroup51(List segmentGroup51) {
this.segmentGroup51 = segmentGroup51; return this;
}
public List getNatureOfCargo() {
return natureOfCargo;
}
public SegmentGroup50 setNatureOfCargo(List natureOfCargo) {
this.natureOfCargo = natureOfCargo; return this;
}
public List getSegmentGroup52() {
return segmentGroup52;
}
public SegmentGroup50 setSegmentGroup52(List segmentGroup52) {
this.segmentGroup52 = segmentGroup52; return this;
}
public List getSegmentGroup53() {
return segmentGroup53;
}
public SegmentGroup50 setSegmentGroup53(List segmentGroup53) {
this.segmentGroup53 = segmentGroup53; return this;
}
public List getSegmentGroup54() {
return segmentGroup54;
}
public SegmentGroup50 setSegmentGroup54(List segmentGroup54) {
this.segmentGroup54 = segmentGroup54; return this;
}
public List getSegmentGroup55() {
return segmentGroup55;
}
public SegmentGroup50 setSegmentGroup55(List segmentGroup55) {
this.segmentGroup55 = segmentGroup55; return this;
}
public List getSegmentGroup56() {
return segmentGroup56;
}
public SegmentGroup50 setSegmentGroup56(List segmentGroup56) {
this.segmentGroup56 = segmentGroup56; return this;
}
public List getSegmentGroup57() {
return segmentGroup57;
}
public SegmentGroup50 setSegmentGroup57(List segmentGroup57) {
this.segmentGroup57 = segmentGroup57; return this;
}
public List getSegmentGroup59() {
return segmentGroup59;
}
public SegmentGroup50 setSegmentGroup59(List segmentGroup59) {
this.segmentGroup59 = segmentGroup59; return this;
}
public List getSegmentGroup61() {
return segmentGroup61;
}
public SegmentGroup50 setSegmentGroup61(List segmentGroup61) {
this.segmentGroup61 = segmentGroup61; return this;
}
public List getSegmentGroup63() {
return segmentGroup63;
}
public SegmentGroup50 setSegmentGroup63(List segmentGroup63) {
this.segmentGroup63 = segmentGroup63; return this;
}
public List getSegmentGroup64() {
return segmentGroup64;
}
public SegmentGroup50 setSegmentGroup64(List segmentGroup64) {
this.segmentGroup64 = segmentGroup64; return this;
}
public List getSegmentGroup65() {
return segmentGroup65;
}
public SegmentGroup50 setSegmentGroup65(List segmentGroup65) {
this.segmentGroup65 = segmentGroup65; return this;
}
}