org.milyn.edi.unedifact.d06b.PROSRV.SegmentGroup14 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d06b.PROSRV;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d06b.common.HierarchyInformation;
import java.util.List;
import org.milyn.edi.unedifact.d06b.common.AdditionalProductId;
import org.milyn.edi.unedifact.d06b.common.ItemDescription;
import org.milyn.edi.unedifact.d06b.common.Quantity;
import org.milyn.edi.unedifact.d06b.common.AdditionalInformation;
import org.milyn.edi.unedifact.d06b.common.PriceDetails;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup14 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private HierarchyInformation hierarchyInformation;
private List additionalProductId;
private List itemDescription;
private List quantity;
private List additionalInformation;
private List priceDetails;
private List segmentGroup15;
private List segmentGroup16;
private List segmentGroup18;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(hierarchyInformation != null) {
nodeWriter.write("HYN");
nodeWriter.write(delimiters.getField());
hierarchyInformation.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(quantity != null && !quantity.isEmpty()) {
for(Quantity quantityInst : quantity) {
nodeWriter.write("QTY");
nodeWriter.write(delimiters.getField());
quantityInst.write(nodeWriter, delimiters);
}
}
if(additionalInformation != null && !additionalInformation.isEmpty()) {
for(AdditionalInformation additionalInformationInst : additionalInformation) {
nodeWriter.write("ALI");
nodeWriter.write(delimiters.getField());
additionalInformationInst.write(nodeWriter, delimiters);
}
}
if(priceDetails != null && !priceDetails.isEmpty()) {
for(PriceDetails priceDetailsInst : priceDetails) {
nodeWriter.write("PRI");
nodeWriter.write(delimiters.getField());
priceDetailsInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup15 != null && !segmentGroup15.isEmpty()) {
for(SegmentGroup15 segmentGroup15Inst : segmentGroup15) {
segmentGroup15Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup16 != null && !segmentGroup16.isEmpty()) {
for(SegmentGroup16 segmentGroup16Inst : segmentGroup16) {
segmentGroup16Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup18 != null && !segmentGroup18.isEmpty()) {
for(SegmentGroup18 segmentGroup18Inst : segmentGroup18) {
segmentGroup18Inst.write(nodeWriter, delimiters);
}
}
}
public HierarchyInformation getHierarchyInformation() {
return hierarchyInformation;
}
public SegmentGroup14 setHierarchyInformation(HierarchyInformation hierarchyInformation) {
this.hierarchyInformation = hierarchyInformation; return this;
}
public List getAdditionalProductId() {
return additionalProductId;
}
public SegmentGroup14 setAdditionalProductId(List additionalProductId) {
this.additionalProductId = additionalProductId; return this;
}
public List getItemDescription() {
return itemDescription;
}
public SegmentGroup14 setItemDescription(List itemDescription) {
this.itemDescription = itemDescription; return this;
}
public List getQuantity() {
return quantity;
}
public SegmentGroup14 setQuantity(List quantity) {
this.quantity = quantity; return this;
}
public List getAdditionalInformation() {
return additionalInformation;
}
public SegmentGroup14 setAdditionalInformation(List additionalInformation) {
this.additionalInformation = additionalInformation; return this;
}
public List getPriceDetails() {
return priceDetails;
}
public SegmentGroup14 setPriceDetails(List priceDetails) {
this.priceDetails = priceDetails; return this;
}
public List getSegmentGroup15() {
return segmentGroup15;
}
public SegmentGroup14 setSegmentGroup15(List segmentGroup15) {
this.segmentGroup15 = segmentGroup15; return this;
}
public List getSegmentGroup16() {
return segmentGroup16;
}
public SegmentGroup14 setSegmentGroup16(List segmentGroup16) {
this.segmentGroup16 = segmentGroup16; return this;
}
public List getSegmentGroup18() {
return segmentGroup18;
}
public SegmentGroup14 setSegmentGroup18(List segmentGroup18) {
this.segmentGroup18 = segmentGroup18; return this;
}
}