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

org.milyn.edi.unedifact.d94a.CONTEN.Conten 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.d94a.CONTEN;

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.smooks.edi.EDIMessage;    
import org.milyn.edi.unedifact.d94a.common.BeginningOfMessage;    
import org.milyn.edi.unedifact.d94a.common.Reference;    
import org.milyn.edi.unedifact.d94a.common.DateTimePeriod;    
import java.util.List;    
import org.milyn.edi.unedifact.d94a.common.AuthenticationResult;    
import org.milyn.edi.unedifact.d94a.common.AgreementIdentification;    
import org.milyn.edi.unedifact.d94a.common.SectionControl;    
import org.milyn.edi.unedifact.d94a.common.ControlTotal;    
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 BeginningOfMessage beginningOfMessage;
    private Reference reference;
    private DateTimePeriod dateTimePeriod;
    private List authenticationResult;
    private List agreementIdentification;
    private List segmentGroup1;
    private List segmentGroup4;
    private SectionControl sectionControl;
    private List segmentGroup22;
    private List controlTotal;

    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(reference != null) {
            nodeWriter.write("RFF");
            nodeWriter.write(delimiters.getField());
            reference.write(nodeWriter, delimiters);
        }
        if(dateTimePeriod != null) {
            nodeWriter.write("DTM");
            nodeWriter.write(delimiters.getField());
            dateTimePeriod.write(nodeWriter, delimiters);
        }
        if(authenticationResult != null && !authenticationResult.isEmpty()) {
            for(AuthenticationResult authenticationResultInst : authenticationResult) {
                nodeWriter.write("AUT");
                nodeWriter.write(delimiters.getField());
                authenticationResultInst.write(nodeWriter, delimiters);
            }
        }
        if(agreementIdentification != null && !agreementIdentification.isEmpty()) {
            for(AgreementIdentification agreementIdentificationInst : agreementIdentification) {
                nodeWriter.write("AGR");
                nodeWriter.write(delimiters.getField());
                agreementIdentificationInst.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(sectionControl != null) {
            nodeWriter.write("UNS");
            nodeWriter.write(delimiters.getField());
            sectionControl.write(nodeWriter, delimiters);
        }
        if(segmentGroup22 != null && !segmentGroup22.isEmpty()) {
            for(SegmentGroup22 segmentGroup22Inst : segmentGroup22) {
                segmentGroup22Inst.write(nodeWriter, delimiters);
            }
        }
        if(controlTotal != null && !controlTotal.isEmpty()) {
            for(ControlTotal controlTotalInst : controlTotal) {
                nodeWriter.write("CNT");
                nodeWriter.write(delimiters.getField());
                controlTotalInst.write(nodeWriter, delimiters);
            }
        }
    }

    public BeginningOfMessage getBeginningOfMessage() {
        return beginningOfMessage;
    }

    public Conten setBeginningOfMessage(BeginningOfMessage beginningOfMessage) {
        this.beginningOfMessage = beginningOfMessage;  return this;
    }

    public Reference getReference() {
        return reference;
    }

    public Conten setReference(Reference reference) {
        this.reference = reference;  return this;
    }

    public DateTimePeriod getDateTimePeriod() {
        return dateTimePeriod;
    }

    public Conten setDateTimePeriod(DateTimePeriod dateTimePeriod) {
        this.dateTimePeriod = dateTimePeriod;  return this;
    }

    public List getAuthenticationResult() {
        return authenticationResult;
    }

    public Conten setAuthenticationResult(List authenticationResult) {
        this.authenticationResult = authenticationResult;  return this;
    }

    public List getAgreementIdentification() {
        return agreementIdentification;
    }

    public Conten setAgreementIdentification(List agreementIdentification) {
        this.agreementIdentification = agreementIdentification;  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 SectionControl getSectionControl() {
        return sectionControl;
    }

    public Conten setSectionControl(SectionControl sectionControl) {
        this.sectionControl = sectionControl;  return this;
    }

    public List getSegmentGroup22() {
        return segmentGroup22;
    }

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

    public List getControlTotal() {
        return controlTotal;
    }

    public Conten setControlTotal(List controlTotal) {
        this.controlTotal = controlTotal;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy