All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.milyn.edi.unedifact.d06b.CONITT.Conitt Maven / Gradle / Ivy

There is a newer version: 1.7.1.0
Show newest version
/**
 * This class was generated by Smooks EJC (http://www.smooks.org).
 */
package org.milyn.edi.unedifact.d06b.CONITT;

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.smooks.edi.EDIMessage;    
import org.milyn.edi.unedifact.d06b.common.BGMBeginningOfMessage;    
import org.milyn.edi.unedifact.d06b.common.RFFReference;    
import org.milyn.edi.unedifact.d06b.common.DTMDateTimePeriod;    
import java.util.List;    
import org.milyn.edi.unedifact.d06b.common.AUTAuthenticationResult;    
import org.milyn.edi.unedifact.d06b.common.AGRAgreementIdentification;    
import org.milyn.edi.unedifact.d06b.common.Uns;    
import org.milyn.edi.unedifact.d06b.common.CNTControlTotal;    
import java.io.Writer;    
import org.milyn.edisax.model.internal.Delimiters;    
import java.io.IOException;    

@EDIMessage    
public class Conitt 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 Conitt setBGMBeginningOfMessage(BGMBeginningOfMessage bGMBeginningOfMessage) {
        this.bGMBeginningOfMessage = bGMBeginningOfMessage;  return this;
    }

    public RFFReference getRFFReference() {
        return rFFReference;
    }

    public Conitt setRFFReference(RFFReference rFFReference) {
        this.rFFReference = rFFReference;  return this;
    }

    public DTMDateTimePeriod getDTMDateTimePeriod() {
        return dTMDateTimePeriod;
    }

    public Conitt setDTMDateTimePeriod(DTMDateTimePeriod dTMDateTimePeriod) {
        this.dTMDateTimePeriod = dTMDateTimePeriod;  return this;
    }

    public List getAUTAuthenticationResult() {
        return aUTAuthenticationResult;
    }

    public Conitt setAUTAuthenticationResult(List aUTAuthenticationResult) {
        this.aUTAuthenticationResult = aUTAuthenticationResult;  return this;
    }

    public List getAGRAgreementIdentification() {
        return aGRAgreementIdentification;
    }

    public Conitt setAGRAgreementIdentification(List aGRAgreementIdentification) {
        this.aGRAgreementIdentification = aGRAgreementIdentification;  return this;
    }

    public List getSegmentGroup1() {
        return segmentGroup1;
    }

    public Conitt setSegmentGroup1(List segmentGroup1) {
        this.segmentGroup1 = segmentGroup1;  return this;
    }

    public List getSegmentGroup4() {
        return segmentGroup4;
    }

    public Conitt setSegmentGroup4(List segmentGroup4) {
        this.segmentGroup4 = segmentGroup4;  return this;
    }

    public Uns getUNSSectionControl() {
        return uNSSectionControl;
    }

    public Conitt setUNSSectionControl(Uns uNSSectionControl) {
        this.uNSSectionControl = uNSSectionControl;  return this;
    }

    public List getSegmentGroup22() {
        return segmentGroup22;
    }

    public Conitt setSegmentGroup22(List segmentGroup22) {
        this.segmentGroup22 = segmentGroup22;  return this;
    }

    public List getCNTControlTotal() {
        return cNTControlTotal;
    }

    public Conitt setCNTControlTotal(List cNTControlTotal) {
        this.cNTControlTotal = cNTControlTotal;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy