org.milyn.edi.unedifact.d02a.HANMOV.SegmentGroup13 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d02a.HANMOV;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d02a.common.Status;
import java.util.List;
import org.milyn.edi.unedifact.d02a.common.AdditionalProductId;
import org.milyn.edi.unedifact.d02a.common.ItemDescription;
import org.milyn.edi.unedifact.d02a.common.HandlingInstructions;
import org.milyn.edi.unedifact.d02a.common.ChargeRateCalculations;
import org.milyn.edi.unedifact.d02a.common.Measurements;
import org.milyn.edi.unedifact.d02a.common.Quantity;
import org.milyn.edi.unedifact.d02a.common.GoodsIdentityNumber;
import org.milyn.edi.unedifact.d02a.common.RelatedIdentificationNumbers;
import org.milyn.edi.unedifact.d02a.common.FreeText;
import org.milyn.edi.unedifact.d02a.common.PlaceLocationIdentification;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup13 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private Status status;
private List additionalProductId;
private List itemDescription;
private List handlingInstructions;
private List chargeRateCalculations;
private List segmentGroup14;
private List measurements;
private List quantity;
private List goodsIdentityNumber;
private List relatedIdentificationNumbers;
private SegmentGroup16 segmentGroup16;
private List freeText;
private SegmentGroup17 segmentGroup17;
private List placeLocationIdentification;
private SegmentGroup18 segmentGroup18;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(status != null) {
nodeWriter.write("STS");
nodeWriter.write(delimiters.getField());
status.write(nodeWriter, delimiters);
}
if(additionalProductId != null && !additionalProductId.isEmpty()) {
for(AdditionalProductId additionalProductIdInst : additionalProductId) {
nodeWriter.write("PIA");
nodeWriter.write(delimiters.getField());
additionalProductIdInst.write(nodeWriter, delimiters);
}
}
if(itemDescription != null && !itemDescription.isEmpty()) {
for(ItemDescription itemDescriptionInst : itemDescription) {
nodeWriter.write("IMD");
nodeWriter.write(delimiters.getField());
itemDescriptionInst.write(nodeWriter, delimiters);
}
}
if(handlingInstructions != null && !handlingInstructions.isEmpty()) {
for(HandlingInstructions handlingInstructionsInst : handlingInstructions) {
nodeWriter.write("HAN");
nodeWriter.write(delimiters.getField());
handlingInstructionsInst.write(nodeWriter, delimiters);
}
}
if(chargeRateCalculations != null && !chargeRateCalculations.isEmpty()) {
for(ChargeRateCalculations chargeRateCalculationsInst : chargeRateCalculations) {
nodeWriter.write("TCC");
nodeWriter.write(delimiters.getField());
chargeRateCalculationsInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup14 != null && !segmentGroup14.isEmpty()) {
for(SegmentGroup14 segmentGroup14Inst : segmentGroup14) {
segmentGroup14Inst.write(nodeWriter, delimiters);
}
}
if(measurements != null && !measurements.isEmpty()) {
for(Measurements measurementsInst : measurements) {
nodeWriter.write("MEA");
nodeWriter.write(delimiters.getField());
measurementsInst.write(nodeWriter, delimiters);
}
}
if(quantity != null && !quantity.isEmpty()) {
for(Quantity quantityInst : quantity) {
nodeWriter.write("QTY");
nodeWriter.write(delimiters.getField());
quantityInst.write(nodeWriter, delimiters);
}
}
if(goodsIdentityNumber != null && !goodsIdentityNumber.isEmpty()) {
for(GoodsIdentityNumber goodsIdentityNumberInst : goodsIdentityNumber) {
nodeWriter.write("GIN");
nodeWriter.write(delimiters.getField());
goodsIdentityNumberInst.write(nodeWriter, delimiters);
}
}
if(relatedIdentificationNumbers != null && !relatedIdentificationNumbers.isEmpty()) {
for(RelatedIdentificationNumbers relatedIdentificationNumbersInst : relatedIdentificationNumbers) {
nodeWriter.write("GIR");
nodeWriter.write(delimiters.getField());
relatedIdentificationNumbersInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup16 != null) {
segmentGroup16.write(nodeWriter, delimiters);
}
if(freeText != null && !freeText.isEmpty()) {
for(FreeText freeTextInst : freeText) {
nodeWriter.write("FTX");
nodeWriter.write(delimiters.getField());
freeTextInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup17 != null) {
segmentGroup17.write(nodeWriter, delimiters);
}
if(placeLocationIdentification != null && !placeLocationIdentification.isEmpty()) {
for(PlaceLocationIdentification placeLocationIdentificationInst : placeLocationIdentification) {
nodeWriter.write("LOC");
nodeWriter.write(delimiters.getField());
placeLocationIdentificationInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup18 != null) {
segmentGroup18.write(nodeWriter, delimiters);
}
}
public Status getStatus() {
return status;
}
public SegmentGroup13 setStatus(Status status) {
this.status = status; return this;
}
public List getAdditionalProductId() {
return additionalProductId;
}
public SegmentGroup13 setAdditionalProductId(List additionalProductId) {
this.additionalProductId = additionalProductId; return this;
}
public List getItemDescription() {
return itemDescription;
}
public SegmentGroup13 setItemDescription(List itemDescription) {
this.itemDescription = itemDescription; return this;
}
public List getHandlingInstructions() {
return handlingInstructions;
}
public SegmentGroup13 setHandlingInstructions(List handlingInstructions) {
this.handlingInstructions = handlingInstructions; return this;
}
public List getChargeRateCalculations() {
return chargeRateCalculations;
}
public SegmentGroup13 setChargeRateCalculations(List chargeRateCalculations) {
this.chargeRateCalculations = chargeRateCalculations; return this;
}
public List getSegmentGroup14() {
return segmentGroup14;
}
public SegmentGroup13 setSegmentGroup14(List segmentGroup14) {
this.segmentGroup14 = segmentGroup14; return this;
}
public List getMeasurements() {
return measurements;
}
public SegmentGroup13 setMeasurements(List measurements) {
this.measurements = measurements; return this;
}
public List getQuantity() {
return quantity;
}
public SegmentGroup13 setQuantity(List quantity) {
this.quantity = quantity; return this;
}
public List getGoodsIdentityNumber() {
return goodsIdentityNumber;
}
public SegmentGroup13 setGoodsIdentityNumber(List goodsIdentityNumber) {
this.goodsIdentityNumber = goodsIdentityNumber; return this;
}
public List getRelatedIdentificationNumbers() {
return relatedIdentificationNumbers;
}
public SegmentGroup13 setRelatedIdentificationNumbers(List relatedIdentificationNumbers) {
this.relatedIdentificationNumbers = relatedIdentificationNumbers; return this;
}
public SegmentGroup16 getSegmentGroup16() {
return segmentGroup16;
}
public SegmentGroup13 setSegmentGroup16(SegmentGroup16 segmentGroup16) {
this.segmentGroup16 = segmentGroup16; return this;
}
public List getFreeText() {
return freeText;
}
public SegmentGroup13 setFreeText(List freeText) {
this.freeText = freeText; return this;
}
public SegmentGroup17 getSegmentGroup17() {
return segmentGroup17;
}
public SegmentGroup13 setSegmentGroup17(SegmentGroup17 segmentGroup17) {
this.segmentGroup17 = segmentGroup17; return this;
}
public List getPlaceLocationIdentification() {
return placeLocationIdentification;
}
public SegmentGroup13 setPlaceLocationIdentification(List placeLocationIdentification) {
this.placeLocationIdentification = placeLocationIdentification; return this;
}
public SegmentGroup18 getSegmentGroup18() {
return segmentGroup18;
}
public SegmentGroup13 setSegmentGroup18(SegmentGroup18 segmentGroup18) {
this.segmentGroup18 = segmentGroup18; return this;
}
}