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

org.milyn.edi.unedifact.d05a.BUSCRD.SegmentGroup8 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.d05a.BUSCRD;

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.edi.unedifact.d05a.common.RCSRequirementsAndConditions;    
import java.util.List;    
import org.milyn.edi.unedifact.d05a.common.IFDInformationDetail;    
import org.milyn.edi.unedifact.d05a.common.MEAMeasurements;    
import org.milyn.edi.unedifact.d05a.common.ATTAttribute;    
import java.io.Writer;    
import org.milyn.edisax.model.internal.Delimiters;    
import java.io.IOException;    

public class SegmentGroup8 implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private RCSRequirementsAndConditions rCSRequirementsAndConditions;
    private List iFDInformationDetail;
    private List mEAMeasurements;
    private List aTTAttribute;
    private List segmentGroup9;

    public void write(Writer writer, Delimiters delimiters) throws IOException {
        
        Writer nodeWriter = writer;

        if(rCSRequirementsAndConditions != null) {
            nodeWriter.write("RCS");
            nodeWriter.write(delimiters.getField());
            rCSRequirementsAndConditions.write(nodeWriter, delimiters);
        }
        if(iFDInformationDetail != null && !iFDInformationDetail.isEmpty()) {
            for(IFDInformationDetail iFDInformationDetailInst : iFDInformationDetail) {
                nodeWriter.write("IFD");
                nodeWriter.write(delimiters.getField());
                iFDInformationDetailInst.write(nodeWriter, delimiters);
            }
        }
        if(mEAMeasurements != null && !mEAMeasurements.isEmpty()) {
            for(MEAMeasurements mEAMeasurementsInst : mEAMeasurements) {
                nodeWriter.write("MEA");
                nodeWriter.write(delimiters.getField());
                mEAMeasurementsInst.write(nodeWriter, delimiters);
            }
        }
        if(aTTAttribute != null && !aTTAttribute.isEmpty()) {
            for(ATTAttribute aTTAttributeInst : aTTAttribute) {
                nodeWriter.write("ATT");
                nodeWriter.write(delimiters.getField());
                aTTAttributeInst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup9 != null && !segmentGroup9.isEmpty()) {
            for(SegmentGroup9 segmentGroup9Inst : segmentGroup9) {
                segmentGroup9Inst.write(nodeWriter, delimiters);
            }
        }
    }

    public RCSRequirementsAndConditions getRCSRequirementsAndConditions() {
        return rCSRequirementsAndConditions;
    }

    public SegmentGroup8 setRCSRequirementsAndConditions(RCSRequirementsAndConditions rCSRequirementsAndConditions) {
        this.rCSRequirementsAndConditions = rCSRequirementsAndConditions;  return this;
    }

    public List getIFDInformationDetail() {
        return iFDInformationDetail;
    }

    public SegmentGroup8 setIFDInformationDetail(List iFDInformationDetail) {
        this.iFDInformationDetail = iFDInformationDetail;  return this;
    }

    public List getMEAMeasurements() {
        return mEAMeasurements;
    }

    public SegmentGroup8 setMEAMeasurements(List mEAMeasurements) {
        this.mEAMeasurements = mEAMeasurements;  return this;
    }

    public List getATTAttribute() {
        return aTTAttribute;
    }

    public SegmentGroup8 setATTAttribute(List aTTAttribute) {
        this.aTTAttribute = aTTAttribute;  return this;
    }

    public List getSegmentGroup9() {
        return segmentGroup9;
    }

    public SegmentGroup8 setSegmentGroup9(List segmentGroup9) {
        this.segmentGroup9 = segmentGroup9;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy