org.milyn.edi.unedifact.d96a.SUPRES.SegmentGroup7 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d96a.SUPRES;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d96a.common.ItemDescription;
import org.milyn.edi.unedifact.d96a.common.Quantity;
import org.milyn.edi.unedifact.d96a.common.Language;
import java.util.List;
import org.milyn.edi.unedifact.d96a.common.DateTimePeriod;
import org.milyn.edi.unedifact.d96a.common.Reference;
import org.milyn.edi.unedifact.d96a.common.PercentageDetails;
import org.milyn.edi.unedifact.d96a.common.Dimensions;
import org.milyn.edi.unedifact.d96a.common.FreeText;
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 ItemDescription itemDescription;
private Quantity quantity;
private Language language;
private List dateTimePeriod;
private List reference;
private PercentageDetails percentageDetails;
private List dimensions;
private List freeText;
private SegmentGroup8 segmentGroup8;
private List segmentGroup10;
private List segmentGroup13;
private SegmentGroup14 segmentGroup14;
private SegmentGroup15 segmentGroup15;
private List segmentGroup16;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(itemDescription != null) {
nodeWriter.write("IMD");
nodeWriter.write(delimiters.getField());
itemDescription.write(nodeWriter, delimiters);
}
if(quantity != null) {
nodeWriter.write("QTY");
nodeWriter.write(delimiters.getField());
quantity.write(nodeWriter, delimiters);
}
if(language != null) {
nodeWriter.write("LAN");
nodeWriter.write(delimiters.getField());
language.write(nodeWriter, delimiters);
}
if(dateTimePeriod != null && !dateTimePeriod.isEmpty()) {
for(DateTimePeriod dateTimePeriodInst : dateTimePeriod) {
nodeWriter.write("DTM");
nodeWriter.write(delimiters.getField());
dateTimePeriodInst.write(nodeWriter, delimiters);
}
}
if(reference != null && !reference.isEmpty()) {
for(Reference referenceInst : reference) {
nodeWriter.write("RFF");
nodeWriter.write(delimiters.getField());
referenceInst.write(nodeWriter, delimiters);
}
}
if(percentageDetails != null) {
nodeWriter.write("PCD");
nodeWriter.write(delimiters.getField());
percentageDetails.write(nodeWriter, delimiters);
}
if(dimensions != null && !dimensions.isEmpty()) {
for(Dimensions dimensionsInst : dimensions) {
nodeWriter.write("DIM");
nodeWriter.write(delimiters.getField());
dimensionsInst.write(nodeWriter, delimiters);
}
}
if(freeText != null && !freeText.isEmpty()) {
for(FreeText freeTextInst : freeText) {
nodeWriter.write("FTX");
nodeWriter.write(delimiters.getField());
freeTextInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup8 != null) {
segmentGroup8.write(nodeWriter, delimiters);
}
if(segmentGroup10 != null && !segmentGroup10.isEmpty()) {
for(SegmentGroup10 segmentGroup10Inst : segmentGroup10) {
segmentGroup10Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup13 != null && !segmentGroup13.isEmpty()) {
for(SegmentGroup13 segmentGroup13Inst : segmentGroup13) {
segmentGroup13Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup14 != null) {
segmentGroup14.write(nodeWriter, delimiters);
}
if(segmentGroup15 != null) {
segmentGroup15.write(nodeWriter, delimiters);
}
if(segmentGroup16 != null && !segmentGroup16.isEmpty()) {
for(SegmentGroup16 segmentGroup16Inst : segmentGroup16) {
segmentGroup16Inst.write(nodeWriter, delimiters);
}
}
}
public ItemDescription getItemDescription() {
return itemDescription;
}
public SegmentGroup7 setItemDescription(ItemDescription itemDescription) {
this.itemDescription = itemDescription; return this;
}
public Quantity getQuantity() {
return quantity;
}
public SegmentGroup7 setQuantity(Quantity quantity) {
this.quantity = quantity; return this;
}
public Language getLanguage() {
return language;
}
public SegmentGroup7 setLanguage(Language language) {
this.language = language; return this;
}
public List getDateTimePeriod() {
return dateTimePeriod;
}
public SegmentGroup7 setDateTimePeriod(List dateTimePeriod) {
this.dateTimePeriod = dateTimePeriod; return this;
}
public List getReference() {
return reference;
}
public SegmentGroup7 setReference(List reference) {
this.reference = reference; return this;
}
public PercentageDetails getPercentageDetails() {
return percentageDetails;
}
public SegmentGroup7 setPercentageDetails(PercentageDetails percentageDetails) {
this.percentageDetails = percentageDetails; return this;
}
public List getDimensions() {
return dimensions;
}
public SegmentGroup7 setDimensions(List dimensions) {
this.dimensions = dimensions; return this;
}
public List getFreeText() {
return freeText;
}
public SegmentGroup7 setFreeText(List freeText) {
this.freeText = freeText; return this;
}
public SegmentGroup8 getSegmentGroup8() {
return segmentGroup8;
}
public SegmentGroup7 setSegmentGroup8(SegmentGroup8 segmentGroup8) {
this.segmentGroup8 = segmentGroup8; return this;
}
public List getSegmentGroup10() {
return segmentGroup10;
}
public SegmentGroup7 setSegmentGroup10(List segmentGroup10) {
this.segmentGroup10 = segmentGroup10; return this;
}
public List getSegmentGroup13() {
return segmentGroup13;
}
public SegmentGroup7 setSegmentGroup13(List segmentGroup13) {
this.segmentGroup13 = segmentGroup13; return this;
}
public SegmentGroup14 getSegmentGroup14() {
return segmentGroup14;
}
public SegmentGroup7 setSegmentGroup14(SegmentGroup14 segmentGroup14) {
this.segmentGroup14 = segmentGroup14; return this;
}
public SegmentGroup15 getSegmentGroup15() {
return segmentGroup15;
}
public SegmentGroup7 setSegmentGroup15(SegmentGroup15 segmentGroup15) {
this.segmentGroup15 = segmentGroup15; return this;
}
public List getSegmentGroup16() {
return segmentGroup16;
}
public SegmentGroup7 setSegmentGroup16(List segmentGroup16) {
this.segmentGroup16 = segmentGroup16; return this;
}
}