org.milyn.edi.unedifact.d11b.IMPDEF.Impdef Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d11b.IMPDEF;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.smooks.edi.EDIMessage;
import org.milyn.edi.unedifact.d11b.common.BGMBeginningOfMessage;
import org.milyn.edi.unedifact.d11b.common.MSGMessageTypeIdentification;
import org.milyn.edi.unedifact.d11b.common.RCSRequirementsAndConditions;
import org.milyn.edi.unedifact.d11b.common.DIIDirectoryIdentification;
import java.util.List;
import org.milyn.edi.unedifact.d11b.common.RFFReference;
import org.milyn.edi.unedifact.d11b.common.DTMDateTimePeriod;
import org.milyn.edi.unedifact.d11b.common.FTXFreeText;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
@EDIMessage
public class Impdef implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private BGMBeginningOfMessage bGMBeginningOfMessage;
private MSGMessageTypeIdentification mSGMessageTypeIdentification;
private RCSRequirementsAndConditions rCSRequirementsAndConditions;
private DIIDirectoryIdentification dIIDirectoryIdentification;
private List rFFReference;
private List dTMDateTimePeriod;
private List fTXFreeText;
private List segmentGroup1;
private List segmentGroup3;
private SegmentGroup13 segmentGroup13;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(bGMBeginningOfMessage != null) {
nodeWriter.write("BGM");
nodeWriter.write(delimiters.getField());
bGMBeginningOfMessage.write(nodeWriter, delimiters);
}
if(mSGMessageTypeIdentification != null) {
nodeWriter.write("MSG");
nodeWriter.write(delimiters.getField());
mSGMessageTypeIdentification.write(nodeWriter, delimiters);
}
if(rCSRequirementsAndConditions != null) {
nodeWriter.write("RCS");
nodeWriter.write(delimiters.getField());
rCSRequirementsAndConditions.write(nodeWriter, delimiters);
}
if(dIIDirectoryIdentification != null) {
nodeWriter.write("DII");
nodeWriter.write(delimiters.getField());
dIIDirectoryIdentification.write(nodeWriter, delimiters);
}
if(rFFReference != null && !rFFReference.isEmpty()) {
for(RFFReference rFFReferenceInst : rFFReference) {
nodeWriter.write("RFF");
nodeWriter.write(delimiters.getField());
rFFReferenceInst.write(nodeWriter, delimiters);
}
}
if(dTMDateTimePeriod != null && !dTMDateTimePeriod.isEmpty()) {
for(DTMDateTimePeriod dTMDateTimePeriodInst : dTMDateTimePeriod) {
nodeWriter.write("DTM");
nodeWriter.write(delimiters.getField());
dTMDateTimePeriodInst.write(nodeWriter, delimiters);
}
}
if(fTXFreeText != null && !fTXFreeText.isEmpty()) {
for(FTXFreeText fTXFreeTextInst : fTXFreeText) {
nodeWriter.write("FTX");
nodeWriter.write(delimiters.getField());
fTXFreeTextInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup1 != null && !segmentGroup1.isEmpty()) {
for(SegmentGroup1 segmentGroup1Inst : segmentGroup1) {
segmentGroup1Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup3 != null && !segmentGroup3.isEmpty()) {
for(SegmentGroup3 segmentGroup3Inst : segmentGroup3) {
segmentGroup3Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup13 != null) {
segmentGroup13.write(nodeWriter, delimiters);
}
}
public BGMBeginningOfMessage getBGMBeginningOfMessage() {
return bGMBeginningOfMessage;
}
public Impdef setBGMBeginningOfMessage(BGMBeginningOfMessage bGMBeginningOfMessage) {
this.bGMBeginningOfMessage = bGMBeginningOfMessage; return this;
}
public MSGMessageTypeIdentification getMSGMessageTypeIdentification() {
return mSGMessageTypeIdentification;
}
public Impdef setMSGMessageTypeIdentification(MSGMessageTypeIdentification mSGMessageTypeIdentification) {
this.mSGMessageTypeIdentification = mSGMessageTypeIdentification; return this;
}
public RCSRequirementsAndConditions getRCSRequirementsAndConditions() {
return rCSRequirementsAndConditions;
}
public Impdef setRCSRequirementsAndConditions(RCSRequirementsAndConditions rCSRequirementsAndConditions) {
this.rCSRequirementsAndConditions = rCSRequirementsAndConditions; return this;
}
public DIIDirectoryIdentification getDIIDirectoryIdentification() {
return dIIDirectoryIdentification;
}
public Impdef setDIIDirectoryIdentification(DIIDirectoryIdentification dIIDirectoryIdentification) {
this.dIIDirectoryIdentification = dIIDirectoryIdentification; return this;
}
public List getRFFReference() {
return rFFReference;
}
public Impdef setRFFReference(List rFFReference) {
this.rFFReference = rFFReference; return this;
}
public List getDTMDateTimePeriod() {
return dTMDateTimePeriod;
}
public Impdef setDTMDateTimePeriod(List dTMDateTimePeriod) {
this.dTMDateTimePeriod = dTMDateTimePeriod; return this;
}
public List getFTXFreeText() {
return fTXFreeText;
}
public Impdef setFTXFreeText(List fTXFreeText) {
this.fTXFreeText = fTXFreeText; return this;
}
public List getSegmentGroup1() {
return segmentGroup1;
}
public Impdef setSegmentGroup1(List segmentGroup1) {
this.segmentGroup1 = segmentGroup1; return this;
}
public List getSegmentGroup3() {
return segmentGroup3;
}
public Impdef setSegmentGroup3(List segmentGroup3) {
this.segmentGroup3 = segmentGroup3; return this;
}
public SegmentGroup13 getSegmentGroup13() {
return segmentGroup13;
}
public Impdef setSegmentGroup13(SegmentGroup13 segmentGroup13) {
this.segmentGroup13 = segmentGroup13; return this;
}
}