org.milyn.edi.unedifact.d99a.SOCADE.Socade Maven / Gradle / Ivy
The newest version!
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d99a.SOCADE;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.smooks.edi.EDIMessage;
import org.milyn.edi.unedifact.d99a.common.BGMBeginningOfMessage;
import java.util.List;
import org.milyn.edi.unedifact.d99a.common.DTMDateTimePeriod;
import org.milyn.edi.unedifact.d99a.common.RFFReference;
import org.milyn.edi.unedifact.d99a.common.Uns;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
@EDIMessage
public class Socade implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private BGMBeginningOfMessage bGMBeginningOfMessage;
private List dTMDateTimePeriod;
private List rFFReference;
private List segmentGroup1;
private Uns uNSSectionControl;
private List segmentGroup3;
private SegmentGroup12 segmentGroup12;
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(dTMDateTimePeriod != null && !dTMDateTimePeriod.isEmpty()) {
for(DTMDateTimePeriod dTMDateTimePeriodInst : dTMDateTimePeriod) {
nodeWriter.write("DTM");
nodeWriter.write(delimiters.getField());
dTMDateTimePeriodInst.write(nodeWriter, delimiters);
}
}
if(rFFReference != null && !rFFReference.isEmpty()) {
for(RFFReference rFFReferenceInst : rFFReference) {
nodeWriter.write("RFF");
nodeWriter.write(delimiters.getField());
rFFReferenceInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup1 != null && !segmentGroup1.isEmpty()) {
for(SegmentGroup1 segmentGroup1Inst : segmentGroup1) {
segmentGroup1Inst.write(nodeWriter, delimiters);
}
}
if(uNSSectionControl != null) {
nodeWriter.write("UNS");
nodeWriter.write(delimiters.getField());
uNSSectionControl.write(nodeWriter, delimiters);
}
if(segmentGroup3 != null && !segmentGroup3.isEmpty()) {
for(SegmentGroup3 segmentGroup3Inst : segmentGroup3) {
segmentGroup3Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup12 != null) {
segmentGroup12.write(nodeWriter, delimiters);
}
}
public BGMBeginningOfMessage getBGMBeginningOfMessage() {
return bGMBeginningOfMessage;
}
public Socade setBGMBeginningOfMessage(BGMBeginningOfMessage bGMBeginningOfMessage) {
this.bGMBeginningOfMessage = bGMBeginningOfMessage; return this;
}
public List getDTMDateTimePeriod() {
return dTMDateTimePeriod;
}
public Socade setDTMDateTimePeriod(List dTMDateTimePeriod) {
this.dTMDateTimePeriod = dTMDateTimePeriod; return this;
}
public List getRFFReference() {
return rFFReference;
}
public Socade setRFFReference(List rFFReference) {
this.rFFReference = rFFReference; return this;
}
public List getSegmentGroup1() {
return segmentGroup1;
}
public Socade setSegmentGroup1(List segmentGroup1) {
this.segmentGroup1 = segmentGroup1; return this;
}
public Uns getUNSSectionControl() {
return uNSSectionControl;
}
public Socade setUNSSectionControl(Uns uNSSectionControl) {
this.uNSSectionControl = uNSSectionControl; return this;
}
public List getSegmentGroup3() {
return segmentGroup3;
}
public Socade setSegmentGroup3(List segmentGroup3) {
this.segmentGroup3 = segmentGroup3; return this;
}
public SegmentGroup12 getSegmentGroup12() {
return segmentGroup12;
}
public Socade setSegmentGroup12(SegmentGroup12 segmentGroup12) {
this.segmentGroup12 = segmentGroup12; return this;
}
}