org.milyn.edi.unedifact.d06b.HANMOV.SegmentGroup20 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d06b.HANMOV;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d06b.common.GoodsItemDetails;
import java.util.List;
import org.milyn.edi.unedifact.d06b.common.HandlingInstructions;
import org.milyn.edi.unedifact.d06b.common.CustomsStatusOfGoods;
import org.milyn.edi.unedifact.d06b.common.Temperature;
import org.milyn.edi.unedifact.d06b.common.RangeDetails;
import org.milyn.edi.unedifact.d06b.common.PlaceLocationIdentification;
import org.milyn.edi.unedifact.d06b.common.MonetaryAmount;
import org.milyn.edi.unedifact.d06b.common.AdditionalProductId;
import org.milyn.edi.unedifact.d06b.common.FreeText;
import org.milyn.edi.unedifact.d06b.common.NameAndAddress;
import org.milyn.edi.unedifact.d06b.common.Measurements;
import org.milyn.edi.unedifact.d06b.common.Dimensions;
import org.milyn.edi.unedifact.d06b.common.Reference;
import org.milyn.edi.unedifact.d06b.common.PackageIdentification;
import org.milyn.edi.unedifact.d06b.common.SplitGoodsPlacement;
import org.milyn.edi.unedifact.d06b.common.ChargeRateCalculations;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup20 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private GoodsItemDetails goodsItemDetails;
private List handlingInstructions;
private List customsStatusOfGoods;
private List temperature;
private List rangeDetails;
private List placeLocationIdentification;
private List monetaryAmount;
private List additionalProductId;
private List freeText;
private List nameAndAddress;
private List measurements;
private List dimensions;
private List reference;
private List packageIdentification;
private List segmentGroup21;
private List splitGoodsPlacement;
private List chargeRateCalculations;
private List segmentGroup22;
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 && !handlingInstructions.isEmpty()) {
for(HandlingInstructions handlingInstructionsInst : handlingInstructions) {
nodeWriter.write("HAN");
nodeWriter.write(delimiters.getField());
handlingInstructionsInst.write(nodeWriter, delimiters);
}
}
if(customsStatusOfGoods != null && !customsStatusOfGoods.isEmpty()) {
for(CustomsStatusOfGoods customsStatusOfGoodsInst : customsStatusOfGoods) {
nodeWriter.write("CST");
nodeWriter.write(delimiters.getField());
customsStatusOfGoodsInst.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(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(nameAndAddress != null && !nameAndAddress.isEmpty()) {
for(NameAndAddress nameAndAddressInst : nameAndAddress) {
nodeWriter.write("NAD");
nodeWriter.write(delimiters.getField());
nameAndAddressInst.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(reference != null && !reference.isEmpty()) {
for(Reference referenceInst : reference) {
nodeWriter.write("RFF");
nodeWriter.write(delimiters.getField());
referenceInst.write(nodeWriter, delimiters);
}
}
if(packageIdentification != null && !packageIdentification.isEmpty()) {
for(PackageIdentification packageIdentificationInst : packageIdentification) {
nodeWriter.write("PCI");
nodeWriter.write(delimiters.getField());
packageIdentificationInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup21 != null && !segmentGroup21.isEmpty()) {
for(SegmentGroup21 segmentGroup21Inst : segmentGroup21) {
segmentGroup21Inst.write(nodeWriter, delimiters);
}
}
if(splitGoodsPlacement != null && !splitGoodsPlacement.isEmpty()) {
for(SplitGoodsPlacement splitGoodsPlacementInst : splitGoodsPlacement) {
nodeWriter.write("SGP");
nodeWriter.write(delimiters.getField());
splitGoodsPlacementInst.write(nodeWriter, delimiters);
}
}
if(chargeRateCalculations != null && !chargeRateCalculations.isEmpty()) {
for(ChargeRateCalculations chargeRateCalculationsInst : chargeRateCalculations) {
nodeWriter.write("TCC");
nodeWriter.write(delimiters.getField());
chargeRateCalculationsInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup22 != null && !segmentGroup22.isEmpty()) {
for(SegmentGroup22 segmentGroup22Inst : segmentGroup22) {
segmentGroup22Inst.write(nodeWriter, delimiters);
}
}
}
public GoodsItemDetails getGoodsItemDetails() {
return goodsItemDetails;
}
public SegmentGroup20 setGoodsItemDetails(GoodsItemDetails goodsItemDetails) {
this.goodsItemDetails = goodsItemDetails; return this;
}
public List getHandlingInstructions() {
return handlingInstructions;
}
public SegmentGroup20 setHandlingInstructions(List handlingInstructions) {
this.handlingInstructions = handlingInstructions; return this;
}
public List getCustomsStatusOfGoods() {
return customsStatusOfGoods;
}
public SegmentGroup20 setCustomsStatusOfGoods(List customsStatusOfGoods) {
this.customsStatusOfGoods = customsStatusOfGoods; return this;
}
public List getTemperature() {
return temperature;
}
public SegmentGroup20 setTemperature(List temperature) {
this.temperature = temperature; return this;
}
public List getRangeDetails() {
return rangeDetails;
}
public SegmentGroup20 setRangeDetails(List rangeDetails) {
this.rangeDetails = rangeDetails; return this;
}
public List getPlaceLocationIdentification() {
return placeLocationIdentification;
}
public SegmentGroup20 setPlaceLocationIdentification(List placeLocationIdentification) {
this.placeLocationIdentification = placeLocationIdentification; return this;
}
public List getMonetaryAmount() {
return monetaryAmount;
}
public SegmentGroup20 setMonetaryAmount(List monetaryAmount) {
this.monetaryAmount = monetaryAmount; return this;
}
public List getAdditionalProductId() {
return additionalProductId;
}
public SegmentGroup20 setAdditionalProductId(List additionalProductId) {
this.additionalProductId = additionalProductId; return this;
}
public List getFreeText() {
return freeText;
}
public SegmentGroup20 setFreeText(List freeText) {
this.freeText = freeText; return this;
}
public List getNameAndAddress() {
return nameAndAddress;
}
public SegmentGroup20 setNameAndAddress(List nameAndAddress) {
this.nameAndAddress = nameAndAddress; return this;
}
public List getMeasurements() {
return measurements;
}
public SegmentGroup20 setMeasurements(List measurements) {
this.measurements = measurements; return this;
}
public List getDimensions() {
return dimensions;
}
public SegmentGroup20 setDimensions(List dimensions) {
this.dimensions = dimensions; return this;
}
public List getReference() {
return reference;
}
public SegmentGroup20 setReference(List reference) {
this.reference = reference; return this;
}
public List getPackageIdentification() {
return packageIdentification;
}
public SegmentGroup20 setPackageIdentification(List packageIdentification) {
this.packageIdentification = packageIdentification; return this;
}
public List getSegmentGroup21() {
return segmentGroup21;
}
public SegmentGroup20 setSegmentGroup21(List segmentGroup21) {
this.segmentGroup21 = segmentGroup21; return this;
}
public List getSplitGoodsPlacement() {
return splitGoodsPlacement;
}
public SegmentGroup20 setSplitGoodsPlacement(List splitGoodsPlacement) {
this.splitGoodsPlacement = splitGoodsPlacement; return this;
}
public List getChargeRateCalculations() {
return chargeRateCalculations;
}
public SegmentGroup20 setChargeRateCalculations(List chargeRateCalculations) {
this.chargeRateCalculations = chargeRateCalculations; return this;
}
public List getSegmentGroup22() {
return segmentGroup22;
}
public SegmentGroup20 setSegmentGroup22(List segmentGroup22) {
this.segmentGroup22 = segmentGroup22; return this;
}
}