org.milyn.edi.unedifact.d99b.LREACT.Lreact Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d99b.LREACT;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.smooks.edi.EDIMessage;
import org.milyn.edi.unedifact.d99b.common.BeginningOfMessage;
import org.milyn.edi.unedifact.d99b.common.DateTimePeriod;
import org.milyn.edi.unedifact.d99b.common.Currencies;
import java.util.List;
import org.milyn.edi.unedifact.d99b.common.ContactInformation;
import org.milyn.edi.unedifact.d99b.common.FreeText;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
@EDIMessage
public class Lreact implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private BeginningOfMessage beginningOfMessage;
private DateTimePeriod dateTimePeriod;
private Currencies currencies;
private List contactInformation;
private FreeText freeText;
private List segmentGroup1;
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(currencies != null) {
nodeWriter.write("CUX");
nodeWriter.write(delimiters.getField());
currencies.write(nodeWriter, delimiters);
}
if(contactInformation != null && !contactInformation.isEmpty()) {
for(ContactInformation contactInformationInst : contactInformation) {
nodeWriter.write("CTA");
nodeWriter.write(delimiters.getField());
contactInformationInst.write(nodeWriter, delimiters);
}
}
if(freeText != null) {
nodeWriter.write("FTX");
nodeWriter.write(delimiters.getField());
freeText.write(nodeWriter, delimiters);
}
if(segmentGroup1 != null && !segmentGroup1.isEmpty()) {
for(SegmentGroup1 segmentGroup1Inst : segmentGroup1) {
segmentGroup1Inst.write(nodeWriter, delimiters);
}
}
}
public BeginningOfMessage getBeginningOfMessage() {
return beginningOfMessage;
}
public Lreact setBeginningOfMessage(BeginningOfMessage beginningOfMessage) {
this.beginningOfMessage = beginningOfMessage; return this;
}
public DateTimePeriod getDateTimePeriod() {
return dateTimePeriod;
}
public Lreact setDateTimePeriod(DateTimePeriod dateTimePeriod) {
this.dateTimePeriod = dateTimePeriod; return this;
}
public Currencies getCurrencies() {
return currencies;
}
public Lreact setCurrencies(Currencies currencies) {
this.currencies = currencies; return this;
}
public List getContactInformation() {
return contactInformation;
}
public Lreact setContactInformation(List contactInformation) {
this.contactInformation = contactInformation; return this;
}
public FreeText getFreeText() {
return freeText;
}
public Lreact setFreeText(FreeText freeText) {
this.freeText = freeText; return this;
}
public List getSegmentGroup1() {
return segmentGroup1;
}
public Lreact setSegmentGroup1(List segmentGroup1) {
this.segmentGroup1 = segmentGroup1; return this;
}
}