org.milyn.edi.unedifact.d95b.CONTEN.Conten Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d95b.CONTEN;
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 org.milyn.edi.unedifact.d95b.common.RFFReference;
import org.milyn.edi.unedifact.d95b.common.DTMDateTimePeriod;
import java.util.List;
import org.milyn.edi.unedifact.d95b.common.AUTAuthenticationResult;
import org.milyn.edi.unedifact.d95b.common.AGRAgreementIdentification;
import org.milyn.edi.unedifact.d95b.common.Uns;
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 Conten implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private BGMBeginningOfMessage bGMBeginningOfMessage;
private RFFReference rFFReference;
private DTMDateTimePeriod dTMDateTimePeriod;
private List aUTAuthenticationResult;
private List aGRAgreementIdentification;
private List segmentGroup1;
private List segmentGroup4;
private Uns uNSSectionControl;
private List segmentGroup22;
private List cNTControlTotal;
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(rFFReference != null) {
nodeWriter.write("RFF");
nodeWriter.write(delimiters.getField());
rFFReference.write(nodeWriter, delimiters);
}
if(dTMDateTimePeriod != null) {
nodeWriter.write("DTM");
nodeWriter.write(delimiters.getField());
dTMDateTimePeriod.write(nodeWriter, delimiters);
}
if(aUTAuthenticationResult != null && !aUTAuthenticationResult.isEmpty()) {
for(AUTAuthenticationResult aUTAuthenticationResultInst : aUTAuthenticationResult) {
nodeWriter.write("AUT");
nodeWriter.write(delimiters.getField());
aUTAuthenticationResultInst.write(nodeWriter, delimiters);
}
}
if(aGRAgreementIdentification != null && !aGRAgreementIdentification.isEmpty()) {
for(AGRAgreementIdentification aGRAgreementIdentificationInst : aGRAgreementIdentification) {
nodeWriter.write("AGR");
nodeWriter.write(delimiters.getField());
aGRAgreementIdentificationInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup1 != null && !segmentGroup1.isEmpty()) {
for(SegmentGroup1 segmentGroup1Inst : segmentGroup1) {
segmentGroup1Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup4 != null && !segmentGroup4.isEmpty()) {
for(SegmentGroup4 segmentGroup4Inst : segmentGroup4) {
segmentGroup4Inst.write(nodeWriter, delimiters);
}
}
if(uNSSectionControl != null) {
nodeWriter.write("UNS");
nodeWriter.write(delimiters.getField());
uNSSectionControl.write(nodeWriter, delimiters);
}
if(segmentGroup22 != null && !segmentGroup22.isEmpty()) {
for(SegmentGroup22 segmentGroup22Inst : segmentGroup22) {
segmentGroup22Inst.write(nodeWriter, delimiters);
}
}
if(cNTControlTotal != null && !cNTControlTotal.isEmpty()) {
for(CNTControlTotal cNTControlTotalInst : cNTControlTotal) {
nodeWriter.write("CNT");
nodeWriter.write(delimiters.getField());
cNTControlTotalInst.write(nodeWriter, delimiters);
}
}
}
public BGMBeginningOfMessage getBGMBeginningOfMessage() {
return bGMBeginningOfMessage;
}
public Conten setBGMBeginningOfMessage(BGMBeginningOfMessage bGMBeginningOfMessage) {
this.bGMBeginningOfMessage = bGMBeginningOfMessage; return this;
}
public RFFReference getRFFReference() {
return rFFReference;
}
public Conten setRFFReference(RFFReference rFFReference) {
this.rFFReference = rFFReference; return this;
}
public DTMDateTimePeriod getDTMDateTimePeriod() {
return dTMDateTimePeriod;
}
public Conten setDTMDateTimePeriod(DTMDateTimePeriod dTMDateTimePeriod) {
this.dTMDateTimePeriod = dTMDateTimePeriod; return this;
}
public List getAUTAuthenticationResult() {
return aUTAuthenticationResult;
}
public Conten setAUTAuthenticationResult(List aUTAuthenticationResult) {
this.aUTAuthenticationResult = aUTAuthenticationResult; return this;
}
public List getAGRAgreementIdentification() {
return aGRAgreementIdentification;
}
public Conten setAGRAgreementIdentification(List aGRAgreementIdentification) {
this.aGRAgreementIdentification = aGRAgreementIdentification; return this;
}
public List getSegmentGroup1() {
return segmentGroup1;
}
public Conten setSegmentGroup1(List segmentGroup1) {
this.segmentGroup1 = segmentGroup1; return this;
}
public List getSegmentGroup4() {
return segmentGroup4;
}
public Conten setSegmentGroup4(List segmentGroup4) {
this.segmentGroup4 = segmentGroup4; return this;
}
public Uns getUNSSectionControl() {
return uNSSectionControl;
}
public Conten setUNSSectionControl(Uns uNSSectionControl) {
this.uNSSectionControl = uNSSectionControl; return this;
}
public List getSegmentGroup22() {
return segmentGroup22;
}
public Conten setSegmentGroup22(List segmentGroup22) {
this.segmentGroup22 = segmentGroup22; return this;
}
public List getCNTControlTotal() {
return cNTControlTotal;
}
public Conten setCNTControlTotal(List cNTControlTotal) {
this.cNTControlTotal = cNTControlTotal; return this;
}
}