org.milyn.edi.unedifact.d95b.PRICAT.SegmentGroup16 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d95b.PRICAT;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d95b.common.PGIProductGroupInformation;
import java.util.List;
import org.milyn.edi.unedifact.d95b.common.DTMDateTimePeriod;
import org.milyn.edi.unedifact.d95b.common.QTYQuantity;
import org.milyn.edi.unedifact.d95b.common.ALIAdditionalInformation;
import org.milyn.edi.unedifact.d95b.common.FTXFreeText;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup16 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private PGIProductGroupInformation pGIProductGroupInformation;
private List dTMDateTimePeriod;
private List qTYQuantity;
private List aLIAdditionalInformation;
private List fTXFreeText;
private List segmentGroup17;
private List segmentGroup18;
private List segmentGroup19;
private List segmentGroup25;
private List segmentGroup28;
private List segmentGroup29;
private List segmentGroup30;
private List segmentGroup31;
private List segmentGroup32;
private List segmentGroup33;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(pGIProductGroupInformation != null) {
nodeWriter.write("PGI");
nodeWriter.write(delimiters.getField());
pGIProductGroupInformation.write(nodeWriter, delimiters);
}
if(dTMDateTimePeriod != null && !dTMDateTimePeriod.isEmpty()) {
for(DTMDateTimePeriod dTMDateTimePeriodInst : dTMDateTimePeriod) {
nodeWriter.write("DTM");
nodeWriter.write(delimiters.getField());
dTMDateTimePeriodInst.write(nodeWriter, delimiters);
}
}
if(qTYQuantity != null && !qTYQuantity.isEmpty()) {
for(QTYQuantity qTYQuantityInst : qTYQuantity) {
nodeWriter.write("QTY");
nodeWriter.write(delimiters.getField());
qTYQuantityInst.write(nodeWriter, delimiters);
}
}
if(aLIAdditionalInformation != null && !aLIAdditionalInformation.isEmpty()) {
for(ALIAdditionalInformation aLIAdditionalInformationInst : aLIAdditionalInformation) {
nodeWriter.write("ALI");
nodeWriter.write(delimiters.getField());
aLIAdditionalInformationInst.write(nodeWriter, delimiters);
}
}
if(fTXFreeText != null && !fTXFreeText.isEmpty()) {
for(FTXFreeText fTXFreeTextInst : fTXFreeText) {
nodeWriter.write("FTX");
nodeWriter.write(delimiters.getField());
fTXFreeTextInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup17 != null && !segmentGroup17.isEmpty()) {
for(SegmentGroup17 segmentGroup17Inst : segmentGroup17) {
segmentGroup17Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup18 != null && !segmentGroup18.isEmpty()) {
for(SegmentGroup18 segmentGroup18Inst : segmentGroup18) {
segmentGroup18Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup19 != null && !segmentGroup19.isEmpty()) {
for(SegmentGroup19 segmentGroup19Inst : segmentGroup19) {
segmentGroup19Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup25 != null && !segmentGroup25.isEmpty()) {
for(SegmentGroup25 segmentGroup25Inst : segmentGroup25) {
segmentGroup25Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup28 != null && !segmentGroup28.isEmpty()) {
for(SegmentGroup28 segmentGroup28Inst : segmentGroup28) {
segmentGroup28Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup29 != null && !segmentGroup29.isEmpty()) {
for(SegmentGroup29 segmentGroup29Inst : segmentGroup29) {
segmentGroup29Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup30 != null && !segmentGroup30.isEmpty()) {
for(SegmentGroup30 segmentGroup30Inst : segmentGroup30) {
segmentGroup30Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup31 != null && !segmentGroup31.isEmpty()) {
for(SegmentGroup31 segmentGroup31Inst : segmentGroup31) {
segmentGroup31Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup32 != null && !segmentGroup32.isEmpty()) {
for(SegmentGroup32 segmentGroup32Inst : segmentGroup32) {
segmentGroup32Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup33 != null && !segmentGroup33.isEmpty()) {
for(SegmentGroup33 segmentGroup33Inst : segmentGroup33) {
segmentGroup33Inst.write(nodeWriter, delimiters);
}
}
}
public PGIProductGroupInformation getPGIProductGroupInformation() {
return pGIProductGroupInformation;
}
public SegmentGroup16 setPGIProductGroupInformation(PGIProductGroupInformation pGIProductGroupInformation) {
this.pGIProductGroupInformation = pGIProductGroupInformation; return this;
}
public List getDTMDateTimePeriod() {
return dTMDateTimePeriod;
}
public SegmentGroup16 setDTMDateTimePeriod(List dTMDateTimePeriod) {
this.dTMDateTimePeriod = dTMDateTimePeriod; return this;
}
public List getQTYQuantity() {
return qTYQuantity;
}
public SegmentGroup16 setQTYQuantity(List qTYQuantity) {
this.qTYQuantity = qTYQuantity; return this;
}
public List getALIAdditionalInformation() {
return aLIAdditionalInformation;
}
public SegmentGroup16 setALIAdditionalInformation(List aLIAdditionalInformation) {
this.aLIAdditionalInformation = aLIAdditionalInformation; return this;
}
public List getFTXFreeText() {
return fTXFreeText;
}
public SegmentGroup16 setFTXFreeText(List fTXFreeText) {
this.fTXFreeText = fTXFreeText; return this;
}
public List getSegmentGroup17() {
return segmentGroup17;
}
public SegmentGroup16 setSegmentGroup17(List segmentGroup17) {
this.segmentGroup17 = segmentGroup17; return this;
}
public List getSegmentGroup18() {
return segmentGroup18;
}
public SegmentGroup16 setSegmentGroup18(List segmentGroup18) {
this.segmentGroup18 = segmentGroup18; return this;
}
public List getSegmentGroup19() {
return segmentGroup19;
}
public SegmentGroup16 setSegmentGroup19(List segmentGroup19) {
this.segmentGroup19 = segmentGroup19; return this;
}
public List getSegmentGroup25() {
return segmentGroup25;
}
public SegmentGroup16 setSegmentGroup25(List segmentGroup25) {
this.segmentGroup25 = segmentGroup25; return this;
}
public List getSegmentGroup28() {
return segmentGroup28;
}
public SegmentGroup16 setSegmentGroup28(List segmentGroup28) {
this.segmentGroup28 = segmentGroup28; return this;
}
public List getSegmentGroup29() {
return segmentGroup29;
}
public SegmentGroup16 setSegmentGroup29(List segmentGroup29) {
this.segmentGroup29 = segmentGroup29; return this;
}
public List getSegmentGroup30() {
return segmentGroup30;
}
public SegmentGroup16 setSegmentGroup30(List segmentGroup30) {
this.segmentGroup30 = segmentGroup30; return this;
}
public List getSegmentGroup31() {
return segmentGroup31;
}
public SegmentGroup16 setSegmentGroup31(List segmentGroup31) {
this.segmentGroup31 = segmentGroup31; return this;
}
public List getSegmentGroup32() {
return segmentGroup32;
}
public SegmentGroup16 setSegmentGroup32(List segmentGroup32) {
this.segmentGroup32 = segmentGroup32; return this;
}
public List getSegmentGroup33() {
return segmentGroup33;
}
public SegmentGroup16 setSegmentGroup33(List segmentGroup33) {
this.segmentGroup33 = segmentGroup33; return this;
}
}