org.milyn.edi.unedifact.d99b.HANMOV.SegmentGroup7 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d99b.HANMOV;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d99b.common.LineItem;
import java.util.List;
import org.milyn.edi.unedifact.d99b.common.AdditionalProductId;
import org.milyn.edi.unedifact.d99b.common.ItemDescription;
import org.milyn.edi.unedifact.d99b.common.HandlingInstructions;
import org.milyn.edi.unedifact.d99b.common.TransportChargeRateCalculations;
import org.milyn.edi.unedifact.d99b.common.Measurements;
import org.milyn.edi.unedifact.d99b.common.Quantity;
import org.milyn.edi.unedifact.d99b.common.GoodsIdentityNumber;
import org.milyn.edi.unedifact.d99b.common.RelatedIdentificationNumbers;
import org.milyn.edi.unedifact.d99b.common.DateTimePeriod;
import org.milyn.edi.unedifact.d99b.common.FreeText;
import org.milyn.edi.unedifact.d99b.common.PlaceLocationIdentification;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup7 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private LineItem lineItem;
private List additionalProductId;
private List itemDescription;
private List handlingInstructions;
private List transportChargeRateCalculations;
private List segmentGroup8;
private List measurements;
private List quantity;
private List goodsIdentityNumber;
private List relatedIdentificationNumbers;
private List dateTimePeriod;
private List freeText;
private List segmentGroup10;
private List placeLocationIdentification;
private List segmentGroup11;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(lineItem != null) {
nodeWriter.write("LIN");
nodeWriter.write(delimiters.getField());
lineItem.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(transportChargeRateCalculations != null && !transportChargeRateCalculations.isEmpty()) {
for(TransportChargeRateCalculations transportChargeRateCalculationsInst : transportChargeRateCalculations) {
nodeWriter.write("TCC");
nodeWriter.write(delimiters.getField());
transportChargeRateCalculationsInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup8 != null && !segmentGroup8.isEmpty()) {
for(SegmentGroup8 segmentGroup8Inst : segmentGroup8) {
segmentGroup8Inst.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(dateTimePeriod != null && !dateTimePeriod.isEmpty()) {
for(DateTimePeriod dateTimePeriodInst : dateTimePeriod) {
nodeWriter.write("DTM");
nodeWriter.write(delimiters.getField());
dateTimePeriodInst.write(nodeWriter, delimiters);
}
}
if(freeText != null && !freeText.isEmpty()) {
for(FreeText freeTextInst : freeText) {
nodeWriter.write("FTX");
nodeWriter.write(delimiters.getField());
freeTextInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup10 != null && !segmentGroup10.isEmpty()) {
for(SegmentGroup10 segmentGroup10Inst : segmentGroup10) {
segmentGroup10Inst.write(nodeWriter, delimiters);
}
}
if(placeLocationIdentification != null && !placeLocationIdentification.isEmpty()) {
for(PlaceLocationIdentification placeLocationIdentificationInst : placeLocationIdentification) {
nodeWriter.write("LOC");
nodeWriter.write(delimiters.getField());
placeLocationIdentificationInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup11 != null && !segmentGroup11.isEmpty()) {
for(SegmentGroup11 segmentGroup11Inst : segmentGroup11) {
segmentGroup11Inst.write(nodeWriter, delimiters);
}
}
}
public LineItem getLineItem() {
return lineItem;
}
public SegmentGroup7 setLineItem(LineItem lineItem) {
this.lineItem = lineItem; return this;
}
public List getAdditionalProductId() {
return additionalProductId;
}
public SegmentGroup7 setAdditionalProductId(List additionalProductId) {
this.additionalProductId = additionalProductId; return this;
}
public List getItemDescription() {
return itemDescription;
}
public SegmentGroup7 setItemDescription(List itemDescription) {
this.itemDescription = itemDescription; return this;
}
public List getHandlingInstructions() {
return handlingInstructions;
}
public SegmentGroup7 setHandlingInstructions(List handlingInstructions) {
this.handlingInstructions = handlingInstructions; return this;
}
public List getTransportChargeRateCalculations() {
return transportChargeRateCalculations;
}
public SegmentGroup7 setTransportChargeRateCalculations(List transportChargeRateCalculations) {
this.transportChargeRateCalculations = transportChargeRateCalculations; return this;
}
public List getSegmentGroup8() {
return segmentGroup8;
}
public SegmentGroup7 setSegmentGroup8(List segmentGroup8) {
this.segmentGroup8 = segmentGroup8; return this;
}
public List getMeasurements() {
return measurements;
}
public SegmentGroup7 setMeasurements(List measurements) {
this.measurements = measurements; return this;
}
public List getQuantity() {
return quantity;
}
public SegmentGroup7 setQuantity(List quantity) {
this.quantity = quantity; return this;
}
public List getGoodsIdentityNumber() {
return goodsIdentityNumber;
}
public SegmentGroup7 setGoodsIdentityNumber(List goodsIdentityNumber) {
this.goodsIdentityNumber = goodsIdentityNumber; return this;
}
public List getRelatedIdentificationNumbers() {
return relatedIdentificationNumbers;
}
public SegmentGroup7 setRelatedIdentificationNumbers(List relatedIdentificationNumbers) {
this.relatedIdentificationNumbers = relatedIdentificationNumbers; return this;
}
public List getDateTimePeriod() {
return dateTimePeriod;
}
public SegmentGroup7 setDateTimePeriod(List dateTimePeriod) {
this.dateTimePeriod = dateTimePeriod; return this;
}
public List getFreeText() {
return freeText;
}
public SegmentGroup7 setFreeText(List freeText) {
this.freeText = freeText; return this;
}
public List getSegmentGroup10() {
return segmentGroup10;
}
public SegmentGroup7 setSegmentGroup10(List segmentGroup10) {
this.segmentGroup10 = segmentGroup10; return this;
}
public List getPlaceLocationIdentification() {
return placeLocationIdentification;
}
public SegmentGroup7 setPlaceLocationIdentification(List placeLocationIdentification) {
this.placeLocationIdentification = placeLocationIdentification; return this;
}
public List getSegmentGroup11() {
return segmentGroup11;
}
public SegmentGroup7 setSegmentGroup11(List segmentGroup11) {
this.segmentGroup11 = segmentGroup11; return this;
}
}