org.milyn.edi.unedifact.d98a.IFTFCC.SegmentGroup37 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 SegmentGroup37 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 segmentGroup38;
private List segmentGroup39;
private List segmentGroup40;
private List segmentGroup41;
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(segmentGroup38 != null && !segmentGroup38.isEmpty()) {
for(SegmentGroup38 segmentGroup38Inst : segmentGroup38) {
segmentGroup38Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup39 != null && !segmentGroup39.isEmpty()) {
for(SegmentGroup39 segmentGroup39Inst : segmentGroup39) {
segmentGroup39Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup40 != null && !segmentGroup40.isEmpty()) {
for(SegmentGroup40 segmentGroup40Inst : segmentGroup40) {
segmentGroup40Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup41 != null && !segmentGroup41.isEmpty()) {
for(SegmentGroup41 segmentGroup41Inst : segmentGroup41) {
segmentGroup41Inst.write(nodeWriter, delimiters);
}
}
}
public GoodsItemDetails getGoodsItemDetails() {
return goodsItemDetails;
}
public SegmentGroup37 setGoodsItemDetails(GoodsItemDetails goodsItemDetails) {
this.goodsItemDetails = goodsItemDetails; return this;
}
public List getTransportChargeRateCalculations() {
return transportChargeRateCalculations;
}
public SegmentGroup37 setTransportChargeRateCalculations(List transportChargeRateCalculations) {
this.transportChargeRateCalculations = transportChargeRateCalculations; return this;
}
public HandlingInstructions getHandlingInstructions() {
return handlingInstructions;
}
public SegmentGroup37 setHandlingInstructions(HandlingInstructions handlingInstructions) {
this.handlingInstructions = handlingInstructions; return this;
}
public Temperature getTemperature() {
return temperature;
}
public SegmentGroup37 setTemperature(Temperature temperature) {
this.temperature = temperature; return this;
}
public TransportMovementDetails getTransportMovementDetails() {
return transportMovementDetails;
}
public SegmentGroup37 setTransportMovementDetails(TransportMovementDetails transportMovementDetails) {
this.transportMovementDetails = transportMovementDetails; return this;
}
public List getPlaceLocationIdentification() {
return placeLocationIdentification;
}
public SegmentGroup37 setPlaceLocationIdentification(List placeLocationIdentification) {
this.placeLocationIdentification = placeLocationIdentification; return this;
}
public List getPackageIdentification() {
return packageIdentification;
}
public SegmentGroup37 setPackageIdentification(List packageIdentification) {
this.packageIdentification = packageIdentification; return this;
}
public List getAdditionalProductId() {
return additionalProductId;
}
public SegmentGroup37 setAdditionalProductId(List additionalProductId) {
this.additionalProductId = additionalProductId; return this;
}
public List getFreeText() {
return freeText;
}
public SegmentGroup37 setFreeText(List freeText) {
this.freeText = freeText; return this;
}
public List getSegmentGroup38() {
return segmentGroup38;
}
public SegmentGroup37 setSegmentGroup38(List segmentGroup38) {
this.segmentGroup38 = segmentGroup38; return this;
}
public List getSegmentGroup39() {
return segmentGroup39;
}
public SegmentGroup37 setSegmentGroup39(List segmentGroup39) {
this.segmentGroup39 = segmentGroup39; return this;
}
public List getSegmentGroup40() {
return segmentGroup40;
}
public SegmentGroup37 setSegmentGroup40(List segmentGroup40) {
this.segmentGroup40 = segmentGroup40; return this;
}
public List getSegmentGroup41() {
return segmentGroup41;
}
public SegmentGroup37 setSegmentGroup41(List segmentGroup41) {
this.segmentGroup41 = segmentGroup41; return this;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy