org.milyn.edi.unedifact.d98a.SSREGW.Ssregw Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d98a.SSREGW;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.smooks.edi.EDIMessage;
import org.milyn.edi.unedifact.d98a.common.BeginningOfMessage;
import org.milyn.edi.unedifact.d98a.common.DateTimePeriod;
import org.milyn.edi.unedifact.d98a.common.GeneralIndicator;
import java.util.List;
import org.milyn.edi.unedifact.d98a.common.FreeText;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
@EDIMessage
public class Ssregw implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private BeginningOfMessage beginningOfMessage;
private DateTimePeriod dateTimePeriod;
private GeneralIndicator generalIndicator;
private SegmentGroup1 segmentGroup1;
private List segmentGroup2;
private FreeText freeText;
private SegmentGroup5 segmentGroup5;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(beginningOfMessage != null) {
nodeWriter.write("BGM");
nodeWriter.write(delimiters.getField());
beginningOfMessage.write(nodeWriter, delimiters);
}
if(dateTimePeriod != null) {
nodeWriter.write("DTM");
nodeWriter.write(delimiters.getField());
dateTimePeriod.write(nodeWriter, delimiters);
}
if(generalIndicator != null) {
nodeWriter.write("GIS");
nodeWriter.write(delimiters.getField());
generalIndicator.write(nodeWriter, delimiters);
}
if(segmentGroup1 != null) {
segmentGroup1.write(nodeWriter, delimiters);
}
if(segmentGroup2 != null && !segmentGroup2.isEmpty()) {
for(SegmentGroup2 segmentGroup2Inst : segmentGroup2) {
segmentGroup2Inst.write(nodeWriter, delimiters);
}
}
if(freeText != null) {
nodeWriter.write("FTX");
nodeWriter.write(delimiters.getField());
freeText.write(nodeWriter, delimiters);
}
if(segmentGroup5 != null) {
segmentGroup5.write(nodeWriter, delimiters);
}
}
public BeginningOfMessage getBeginningOfMessage() {
return beginningOfMessage;
}
public Ssregw setBeginningOfMessage(BeginningOfMessage beginningOfMessage) {
this.beginningOfMessage = beginningOfMessage; return this;
}
public DateTimePeriod getDateTimePeriod() {
return dateTimePeriod;
}
public Ssregw setDateTimePeriod(DateTimePeriod dateTimePeriod) {
this.dateTimePeriod = dateTimePeriod; return this;
}
public GeneralIndicator getGeneralIndicator() {
return generalIndicator;
}
public Ssregw setGeneralIndicator(GeneralIndicator generalIndicator) {
this.generalIndicator = generalIndicator; return this;
}
public SegmentGroup1 getSegmentGroup1() {
return segmentGroup1;
}
public Ssregw setSegmentGroup1(SegmentGroup1 segmentGroup1) {
this.segmentGroup1 = segmentGroup1; return this;
}
public List getSegmentGroup2() {
return segmentGroup2;
}
public Ssregw setSegmentGroup2(List segmentGroup2) {
this.segmentGroup2 = segmentGroup2; return this;
}
public FreeText getFreeText() {
return freeText;
}
public Ssregw setFreeText(FreeText freeText) {
this.freeText = freeText; return this;
}
public SegmentGroup5 getSegmentGroup5() {
return segmentGroup5;
}
public Ssregw setSegmentGroup5(SegmentGroup5 segmentGroup5) {
this.segmentGroup5 = segmentGroup5; return this;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy