org.milyn.edi.unedifact.d98a.IFTFCC.SegmentGroup19 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d98a.IFTFCC;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d98a.common.GoodsItemDetails;
import java.util.List;
import org.milyn.edi.unedifact.d98a.common.TransportChargeRateCalculations;
import org.milyn.edi.unedifact.d98a.common.HandlingInstructions;
import org.milyn.edi.unedifact.d98a.common.Temperature;
import org.milyn.edi.unedifact.d98a.common.TransportMovementDetails;
import org.milyn.edi.unedifact.d98a.common.PlaceLocationIdentification;
import org.milyn.edi.unedifact.d98a.common.PackageIdentification;
import org.milyn.edi.unedifact.d98a.common.AdditionalProductId;
import org.milyn.edi.unedifact.d98a.common.FreeText;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup19 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private GoodsItemDetails goodsItemDetails;
private List transportChargeRateCalculations;
private HandlingInstructions handlingInstructions;
private Temperature temperature;
private TransportMovementDetails transportMovementDetails;
private List placeLocationIdentification;
private List packageIdentification;
private List additionalProductId;
private List freeText;
private List segmentGroup20;
private List segmentGroup21;
private List segmentGroup22;
private List segmentGroup23;
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(transportChargeRateCalculations != null && !transportChargeRateCalculations.isEmpty()) {
for(TransportChargeRateCalculations transportChargeRateCalculationsInst : transportChargeRateCalculations) {
nodeWriter.write("TCC");
nodeWriter.write(delimiters.getField());
transportChargeRateCalculationsInst.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(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(packageIdentification != null && !packageIdentification.isEmpty()) {
for(PackageIdentification packageIdentificationInst : packageIdentification) {
nodeWriter.write("PCI");
nodeWriter.write(delimiters.getField());
packageIdentificationInst.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(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);
}
}
}
public GoodsItemDetails getGoodsItemDetails() {
return goodsItemDetails;
}
public SegmentGroup19 setGoodsItemDetails(GoodsItemDetails goodsItemDetails) {
this.goodsItemDetails = goodsItemDetails; return this;
}
public List getTransportChargeRateCalculations() {
return transportChargeRateCalculations;
}
public SegmentGroup19 setTransportChargeRateCalculations(List transportChargeRateCalculations) {
this.transportChargeRateCalculations = transportChargeRateCalculations; return this;
}
public HandlingInstructions getHandlingInstructions() {
return handlingInstructions;
}
public SegmentGroup19 setHandlingInstructions(HandlingInstructions handlingInstructions) {
this.handlingInstructions = handlingInstructions; return this;
}
public Temperature getTemperature() {
return temperature;
}
public SegmentGroup19 setTemperature(Temperature temperature) {
this.temperature = temperature; return this;
}
public TransportMovementDetails getTransportMovementDetails() {
return transportMovementDetails;
}
public SegmentGroup19 setTransportMovementDetails(TransportMovementDetails transportMovementDetails) {
this.transportMovementDetails = transportMovementDetails; return this;
}
public List getPlaceLocationIdentification() {
return placeLocationIdentification;
}
public SegmentGroup19 setPlaceLocationIdentification(List placeLocationIdentification) {
this.placeLocationIdentification = placeLocationIdentification; return this;
}
public List getPackageIdentification() {
return packageIdentification;
}
public SegmentGroup19 setPackageIdentification(List packageIdentification) {
this.packageIdentification = packageIdentification; return this;
}
public List getAdditionalProductId() {
return additionalProductId;
}
public SegmentGroup19 setAdditionalProductId(List additionalProductId) {
this.additionalProductId = additionalProductId; return this;
}
public List getFreeText() {
return freeText;
}
public SegmentGroup19 setFreeText(List freeText) {
this.freeText = freeText; return this;
}
public List getSegmentGroup20() {
return segmentGroup20;
}
public SegmentGroup19 setSegmentGroup20(List segmentGroup20) {
this.segmentGroup20 = segmentGroup20; return this;
}
public List getSegmentGroup21() {
return segmentGroup21;
}
public SegmentGroup19 setSegmentGroup21(List segmentGroup21) {
this.segmentGroup21 = segmentGroup21; return this;
}
public List getSegmentGroup22() {
return segmentGroup22;
}
public SegmentGroup19 setSegmentGroup22(List segmentGroup22) {
this.segmentGroup22 = segmentGroup22; return this;
}
public List getSegmentGroup23() {
return segmentGroup23;
}
public SegmentGroup19 setSegmentGroup23(List segmentGroup23) {
this.segmentGroup23 = segmentGroup23; return this;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy