org.milyn.edi.unedifact.d01a.DEBREC.SegmentGroup7 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d01a.DEBREC;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d01a.common.EVTEvent;
import java.util.List;
import org.milyn.edi.unedifact.d01a.common.DTMDateTimePeriod;
import org.milyn.edi.unedifact.d01a.common.IRQInformationRequired;
import org.milyn.edi.unedifact.d01a.common.FTXFreeText;
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 EVTEvent eVTEvent;
private List dTMDateTimePeriod;
private List iRQInformationRequired;
private List fTXFreeText;
private List segmentGroup8;
private List segmentGroup9;
private List segmentGroup15;
private List segmentGroup17;
private List segmentGroup22;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(eVTEvent != null) {
nodeWriter.write("EVT");
nodeWriter.write(delimiters.getField());
eVTEvent.write(nodeWriter, delimiters);
}
if(dTMDateTimePeriod != null && !dTMDateTimePeriod.isEmpty()) {
for(DTMDateTimePeriod dTMDateTimePeriodInst : dTMDateTimePeriod) {
nodeWriter.write("DTM");
nodeWriter.write(delimiters.getField());
dTMDateTimePeriodInst.write(nodeWriter, delimiters);
}
}
if(iRQInformationRequired != null && !iRQInformationRequired.isEmpty()) {
for(IRQInformationRequired iRQInformationRequiredInst : iRQInformationRequired) {
nodeWriter.write("IRQ");
nodeWriter.write(delimiters.getField());
iRQInformationRequiredInst.write(nodeWriter, delimiters);
}
}
if(fTXFreeText != null && !fTXFreeText.isEmpty()) {
for(FTXFreeText fTXFreeTextInst : fTXFreeText) {
nodeWriter.write("FTX");
nodeWriter.write(delimiters.getField());
fTXFreeTextInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup8 != null && !segmentGroup8.isEmpty()) {
for(SegmentGroup8 segmentGroup8Inst : segmentGroup8) {
segmentGroup8Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup9 != null && !segmentGroup9.isEmpty()) {
for(SegmentGroup9 segmentGroup9Inst : segmentGroup9) {
segmentGroup9Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup15 != null && !segmentGroup15.isEmpty()) {
for(SegmentGroup15 segmentGroup15Inst : segmentGroup15) {
segmentGroup15Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup17 != null && !segmentGroup17.isEmpty()) {
for(SegmentGroup17 segmentGroup17Inst : segmentGroup17) {
segmentGroup17Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup22 != null && !segmentGroup22.isEmpty()) {
for(SegmentGroup22 segmentGroup22Inst : segmentGroup22) {
segmentGroup22Inst.write(nodeWriter, delimiters);
}
}
}
public EVTEvent getEVTEvent() {
return eVTEvent;
}
public SegmentGroup7 setEVTEvent(EVTEvent eVTEvent) {
this.eVTEvent = eVTEvent; return this;
}
public List getDTMDateTimePeriod() {
return dTMDateTimePeriod;
}
public SegmentGroup7 setDTMDateTimePeriod(List dTMDateTimePeriod) {
this.dTMDateTimePeriod = dTMDateTimePeriod; return this;
}
public List getIRQInformationRequired() {
return iRQInformationRequired;
}
public SegmentGroup7 setIRQInformationRequired(List iRQInformationRequired) {
this.iRQInformationRequired = iRQInformationRequired; return this;
}
public List getFTXFreeText() {
return fTXFreeText;
}
public SegmentGroup7 setFTXFreeText(List fTXFreeText) {
this.fTXFreeText = fTXFreeText; return this;
}
public List getSegmentGroup8() {
return segmentGroup8;
}
public SegmentGroup7 setSegmentGroup8(List segmentGroup8) {
this.segmentGroup8 = segmentGroup8; return this;
}
public List getSegmentGroup9() {
return segmentGroup9;
}
public SegmentGroup7 setSegmentGroup9(List segmentGroup9) {
this.segmentGroup9 = segmentGroup9; return this;
}
public List getSegmentGroup15() {
return segmentGroup15;
}
public SegmentGroup7 setSegmentGroup15(List segmentGroup15) {
this.segmentGroup15 = segmentGroup15; return this;
}
public List getSegmentGroup17() {
return segmentGroup17;
}
public SegmentGroup7 setSegmentGroup17(List segmentGroup17) {
this.segmentGroup17 = segmentGroup17; return this;
}
public List getSegmentGroup22() {
return segmentGroup22;
}
public SegmentGroup7 setSegmentGroup22(List segmentGroup22) {
this.segmentGroup22 = segmentGroup22; return this;
}
}