org.milyn.edi.unedifact.d95b.CUSCAR.Cuscar Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d95b.CUSCAR;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.smooks.edi.EDIMessage;
import org.milyn.edi.unedifact.d95b.common.BGMBeginningOfMessage;
import java.util.List;
import org.milyn.edi.unedifact.d95b.common.DTMDateTimePeriod;
import org.milyn.edi.unedifact.d95b.common.RFFReference;
import org.milyn.edi.unedifact.d95b.common.NADNameAndAddress;
import org.milyn.edi.unedifact.d95b.common.FTXFreeText;
import org.milyn.edi.unedifact.d95b.common.GISGeneralIndicator;
import org.milyn.edi.unedifact.d95b.common.CNTControlTotal;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
@EDIMessage
public class Cuscar implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private BGMBeginningOfMessage bGMBeginningOfMessage;
private List dTMDateTimePeriod;
private List rFFReference;
private List nADNameAndAddress;
private List fTXFreeText;
private List segmentGroup1;
private List gISGeneralIndicator;
private List segmentGroup2;
private List cNTControlTotal;
private List segmentGroup4;
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(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(nADNameAndAddress != null && !nADNameAndAddress.isEmpty()) {
for(NADNameAndAddress nADNameAndAddressInst : nADNameAndAddress) {
nodeWriter.write("NAD");
nodeWriter.write(delimiters.getField());
nADNameAndAddressInst.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(gISGeneralIndicator != null && !gISGeneralIndicator.isEmpty()) {
for(GISGeneralIndicator gISGeneralIndicatorInst : gISGeneralIndicator) {
nodeWriter.write("GIS");
nodeWriter.write(delimiters.getField());
gISGeneralIndicatorInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup2 != null && !segmentGroup2.isEmpty()) {
for(SegmentGroup2 segmentGroup2Inst : segmentGroup2) {
segmentGroup2Inst.write(nodeWriter, delimiters);
}
}
if(cNTControlTotal != null && !cNTControlTotal.isEmpty()) {
for(CNTControlTotal cNTControlTotalInst : cNTControlTotal) {
nodeWriter.write("CNT");
nodeWriter.write(delimiters.getField());
cNTControlTotalInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup4 != null && !segmentGroup4.isEmpty()) {
for(SegmentGroup4 segmentGroup4Inst : segmentGroup4) {
segmentGroup4Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup13 != null) {
segmentGroup13.write(nodeWriter, delimiters);
}
}
public BGMBeginningOfMessage getBGMBeginningOfMessage() {
return bGMBeginningOfMessage;
}
public Cuscar setBGMBeginningOfMessage(BGMBeginningOfMessage bGMBeginningOfMessage) {
this.bGMBeginningOfMessage = bGMBeginningOfMessage; return this;
}
public List getDTMDateTimePeriod() {
return dTMDateTimePeriod;
}
public Cuscar setDTMDateTimePeriod(List dTMDateTimePeriod) {
this.dTMDateTimePeriod = dTMDateTimePeriod; return this;
}
public List getRFFReference() {
return rFFReference;
}
public Cuscar setRFFReference(List rFFReference) {
this.rFFReference = rFFReference; return this;
}
public List getNADNameAndAddress() {
return nADNameAndAddress;
}
public Cuscar setNADNameAndAddress(List nADNameAndAddress) {
this.nADNameAndAddress = nADNameAndAddress; return this;
}
public List getFTXFreeText() {
return fTXFreeText;
}
public Cuscar setFTXFreeText(List fTXFreeText) {
this.fTXFreeText = fTXFreeText; return this;
}
public List getSegmentGroup1() {
return segmentGroup1;
}
public Cuscar setSegmentGroup1(List segmentGroup1) {
this.segmentGroup1 = segmentGroup1; return this;
}
public List getGISGeneralIndicator() {
return gISGeneralIndicator;
}
public Cuscar setGISGeneralIndicator(List gISGeneralIndicator) {
this.gISGeneralIndicator = gISGeneralIndicator; return this;
}
public List getSegmentGroup2() {
return segmentGroup2;
}
public Cuscar setSegmentGroup2(List segmentGroup2) {
this.segmentGroup2 = segmentGroup2; return this;
}
public List getCNTControlTotal() {
return cNTControlTotal;
}
public Cuscar setCNTControlTotal(List cNTControlTotal) {
this.cNTControlTotal = cNTControlTotal; return this;
}
public List getSegmentGroup4() {
return segmentGroup4;
}
public Cuscar setSegmentGroup4(List segmentGroup4) {
this.segmentGroup4 = segmentGroup4; return this;
}
public SegmentGroup13 getSegmentGroup13() {
return segmentGroup13;
}
public Cuscar setSegmentGroup13(SegmentGroup13 segmentGroup13) {
this.segmentGroup13 = segmentGroup13; return this;
}
}