org.milyn.edi.unedifact.d96a.INVRPT.SegmentGroup11 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d96a.INVRPT;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d96a.common.Quantity;
import org.milyn.edi.unedifact.d96a.common.InventoryManagementRelatedDetails;
import java.util.List;
import org.milyn.edi.unedifact.d96a.common.GoodsIdentityNumber;
import org.milyn.edi.unedifact.d96a.common.PlaceLocationIdentification;
import org.milyn.edi.unedifact.d96a.common.DateTimePeriod;
import org.milyn.edi.unedifact.d96a.common.Status;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup11 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private Quantity quantity;
private InventoryManagementRelatedDetails inventoryManagementRelatedDetails;
private List goodsIdentityNumber;
private List placeLocationIdentification;
private List dateTimePeriod;
private List status;
private List segmentGroup12;
private List segmentGroup13;
private List segmentGroup14;
private List segmentGroup15;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(quantity != null) {
nodeWriter.write("QTY");
nodeWriter.write(delimiters.getField());
quantity.write(nodeWriter, delimiters);
}
if(inventoryManagementRelatedDetails != null) {
nodeWriter.write("INV");
nodeWriter.write(delimiters.getField());
inventoryManagementRelatedDetails.write(nodeWriter, delimiters);
}
if(goodsIdentityNumber != null && !goodsIdentityNumber.isEmpty()) {
for(GoodsIdentityNumber goodsIdentityNumberInst : goodsIdentityNumber) {
nodeWriter.write("GIN");
nodeWriter.write(delimiters.getField());
goodsIdentityNumberInst.write(nodeWriter, delimiters);
}
}
if(placeLocationIdentification != null && !placeLocationIdentification.isEmpty()) {
for(PlaceLocationIdentification placeLocationIdentificationInst : placeLocationIdentification) {
nodeWriter.write("LOC");
nodeWriter.write(delimiters.getField());
placeLocationIdentificationInst.write(nodeWriter, delimiters);
}
}
if(dateTimePeriod != null && !dateTimePeriod.isEmpty()) {
for(DateTimePeriod dateTimePeriodInst : dateTimePeriod) {
nodeWriter.write("DTM");
nodeWriter.write(delimiters.getField());
dateTimePeriodInst.write(nodeWriter, delimiters);
}
}
if(status != null && !status.isEmpty()) {
for(Status statusInst : status) {
nodeWriter.write("STS");
nodeWriter.write(delimiters.getField());
statusInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup12 != null && !segmentGroup12.isEmpty()) {
for(SegmentGroup12 segmentGroup12Inst : segmentGroup12) {
segmentGroup12Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup13 != null && !segmentGroup13.isEmpty()) {
for(SegmentGroup13 segmentGroup13Inst : segmentGroup13) {
segmentGroup13Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup14 != null && !segmentGroup14.isEmpty()) {
for(SegmentGroup14 segmentGroup14Inst : segmentGroup14) {
segmentGroup14Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup15 != null && !segmentGroup15.isEmpty()) {
for(SegmentGroup15 segmentGroup15Inst : segmentGroup15) {
segmentGroup15Inst.write(nodeWriter, delimiters);
}
}
}
public Quantity getQuantity() {
return quantity;
}
public SegmentGroup11 setQuantity(Quantity quantity) {
this.quantity = quantity; return this;
}
public InventoryManagementRelatedDetails getInventoryManagementRelatedDetails() {
return inventoryManagementRelatedDetails;
}
public SegmentGroup11 setInventoryManagementRelatedDetails(InventoryManagementRelatedDetails inventoryManagementRelatedDetails) {
this.inventoryManagementRelatedDetails = inventoryManagementRelatedDetails; return this;
}
public List getGoodsIdentityNumber() {
return goodsIdentityNumber;
}
public SegmentGroup11 setGoodsIdentityNumber(List goodsIdentityNumber) {
this.goodsIdentityNumber = goodsIdentityNumber; return this;
}
public List getPlaceLocationIdentification() {
return placeLocationIdentification;
}
public SegmentGroup11 setPlaceLocationIdentification(List placeLocationIdentification) {
this.placeLocationIdentification = placeLocationIdentification; return this;
}
public List getDateTimePeriod() {
return dateTimePeriod;
}
public SegmentGroup11 setDateTimePeriod(List dateTimePeriod) {
this.dateTimePeriod = dateTimePeriod; return this;
}
public List getStatus() {
return status;
}
public SegmentGroup11 setStatus(List status) {
this.status = status; return this;
}
public List getSegmentGroup12() {
return segmentGroup12;
}
public SegmentGroup11 setSegmentGroup12(List segmentGroup12) {
this.segmentGroup12 = segmentGroup12; return this;
}
public List getSegmentGroup13() {
return segmentGroup13;
}
public SegmentGroup11 setSegmentGroup13(List segmentGroup13) {
this.segmentGroup13 = segmentGroup13; return this;
}
public List getSegmentGroup14() {
return segmentGroup14;
}
public SegmentGroup11 setSegmentGroup14(List segmentGroup14) {
this.segmentGroup14 = segmentGroup14; return this;
}
public List getSegmentGroup15() {
return segmentGroup15;
}
public SegmentGroup11 setSegmentGroup15(List segmentGroup15) {
this.segmentGroup15 = segmentGroup15; return this;
}
}