org.milyn.edi.unedifact.d02a.ICASRP.Icasrp Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d02a.ICASRP;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.smooks.edi.EDIMessage;
import org.milyn.edi.unedifact.d02a.common.BeginningOfMessage;
import java.util.List;
import org.milyn.edi.unedifact.d02a.common.Attribute;
import org.milyn.edi.unedifact.d02a.common.Currencies;
import org.milyn.edi.unedifact.d02a.common.DateTimePeriod;
import org.milyn.edi.unedifact.d02a.common.QueryAndResponse;
import org.milyn.edi.unedifact.d02a.common.FreeText;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
@EDIMessage
public class Icasrp implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private BeginningOfMessage beginningOfMessage;
private List attribute;
private Currencies currencies;
private List dateTimePeriod;
private List queryAndResponse;
private List freeText;
private List segmentGroup1;
private List segmentGroup3;
private List segmentGroup10;
private List segmentGroup11;
private List segmentGroup12;
private List segmentGroup14;
private List segmentGroup23;
private List segmentGroup24;
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(attribute != null && !attribute.isEmpty()) {
for(Attribute attributeInst : attribute) {
nodeWriter.write("ATT");
nodeWriter.write(delimiters.getField());
attributeInst.write(nodeWriter, delimiters);
}
}
if(currencies != null) {
nodeWriter.write("CUX");
nodeWriter.write(delimiters.getField());
currencies.write(nodeWriter, delimiters);
}
if(dateTimePeriod != null && !dateTimePeriod.isEmpty()) {
for(DateTimePeriod dateTimePeriodInst : dateTimePeriod) {
nodeWriter.write("DTM");
nodeWriter.write(delimiters.getField());
dateTimePeriodInst.write(nodeWriter, delimiters);
}
}
if(queryAndResponse != null && !queryAndResponse.isEmpty()) {
for(QueryAndResponse queryAndResponseInst : queryAndResponse) {
nodeWriter.write("QRS");
nodeWriter.write(delimiters.getField());
queryAndResponseInst.write(nodeWriter, delimiters);
}
}
if(freeText != null && !freeText.isEmpty()) {
for(FreeText freeTextInst : freeText) {
nodeWriter.write("FTX");
nodeWriter.write(delimiters.getField());
freeTextInst.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(segmentGroup10 != null && !segmentGroup10.isEmpty()) {
for(SegmentGroup10 segmentGroup10Inst : segmentGroup10) {
segmentGroup10Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup11 != null && !segmentGroup11.isEmpty()) {
for(SegmentGroup11 segmentGroup11Inst : segmentGroup11) {
segmentGroup11Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup12 != null && !segmentGroup12.isEmpty()) {
for(SegmentGroup12 segmentGroup12Inst : segmentGroup12) {
segmentGroup12Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup14 != null && !segmentGroup14.isEmpty()) {
for(SegmentGroup14 segmentGroup14Inst : segmentGroup14) {
segmentGroup14Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup23 != null && !segmentGroup23.isEmpty()) {
for(SegmentGroup23 segmentGroup23Inst : segmentGroup23) {
segmentGroup23Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup24 != null && !segmentGroup24.isEmpty()) {
for(SegmentGroup24 segmentGroup24Inst : segmentGroup24) {
segmentGroup24Inst.write(nodeWriter, delimiters);
}
}
}
public BeginningOfMessage getBeginningOfMessage() {
return beginningOfMessage;
}
public Icasrp setBeginningOfMessage(BeginningOfMessage beginningOfMessage) {
this.beginningOfMessage = beginningOfMessage; return this;
}
public List getAttribute() {
return attribute;
}
public Icasrp setAttribute(List attribute) {
this.attribute = attribute; return this;
}
public Currencies getCurrencies() {
return currencies;
}
public Icasrp setCurrencies(Currencies currencies) {
this.currencies = currencies; return this;
}
public List getDateTimePeriod() {
return dateTimePeriod;
}
public Icasrp setDateTimePeriod(List dateTimePeriod) {
this.dateTimePeriod = dateTimePeriod; return this;
}
public List getQueryAndResponse() {
return queryAndResponse;
}
public Icasrp setQueryAndResponse(List queryAndResponse) {
this.queryAndResponse = queryAndResponse; return this;
}
public List getFreeText() {
return freeText;
}
public Icasrp setFreeText(List freeText) {
this.freeText = freeText; return this;
}
public List getSegmentGroup1() {
return segmentGroup1;
}
public Icasrp setSegmentGroup1(List segmentGroup1) {
this.segmentGroup1 = segmentGroup1; return this;
}
public List getSegmentGroup3() {
return segmentGroup3;
}
public Icasrp setSegmentGroup3(List segmentGroup3) {
this.segmentGroup3 = segmentGroup3; return this;
}
public List getSegmentGroup10() {
return segmentGroup10;
}
public Icasrp setSegmentGroup10(List segmentGroup10) {
this.segmentGroup10 = segmentGroup10; return this;
}
public List getSegmentGroup11() {
return segmentGroup11;
}
public Icasrp setSegmentGroup11(List segmentGroup11) {
this.segmentGroup11 = segmentGroup11; return this;
}
public List getSegmentGroup12() {
return segmentGroup12;
}
public Icasrp setSegmentGroup12(List segmentGroup12) {
this.segmentGroup12 = segmentGroup12; return this;
}
public List getSegmentGroup14() {
return segmentGroup14;
}
public Icasrp setSegmentGroup14(List segmentGroup14) {
this.segmentGroup14 = segmentGroup14; return this;
}
public List getSegmentGroup23() {
return segmentGroup23;
}
public Icasrp setSegmentGroup23(List segmentGroup23) {
this.segmentGroup23 = segmentGroup23; return this;
}
public List getSegmentGroup24() {
return segmentGroup24;
}
public Icasrp setSegmentGroup24(List segmentGroup24) {
this.segmentGroup24 = segmentGroup24; return this;
}
}