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

org.milyn.edi.unedifact.d05a.DEBREC.SegmentGroup18 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.DEBREC;

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.edi.unedifact.d05a.common.RFFReference;    
import org.milyn.edi.unedifact.d05a.common.PIAAdditionalProductId;    
import java.util.List;    
import org.milyn.edi.unedifact.d05a.common.LOCPlaceLocationIdentification;    
import org.milyn.edi.unedifact.d05a.common.DTMDateTimePeriod;    
import org.milyn.edi.unedifact.d05a.common.MEAMeasurements;    
import org.milyn.edi.unedifact.d05a.common.ATTAttribute;    
import org.milyn.edi.unedifact.d05a.common.FTXFreeText;    
import java.io.Writer;    
import org.milyn.edisax.model.internal.Delimiters;    
import java.io.IOException;    

public class SegmentGroup18 implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private RFFReference rFFReference;
    private PIAAdditionalProductId pIAAdditionalProductId;
    private List lOCPlaceLocationIdentification;
    private List dTMDateTimePeriod;
    private List mEAMeasurements;
    private List aTTAttribute;
    private FTXFreeText fTXFreeText;

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

        if(rFFReference != null) {
            nodeWriter.write("RFF");
            nodeWriter.write(delimiters.getField());
            rFFReference.write(nodeWriter, delimiters);
        }
        if(pIAAdditionalProductId != null) {
            nodeWriter.write("PIA");
            nodeWriter.write(delimiters.getField());
            pIAAdditionalProductId.write(nodeWriter, delimiters);
        }
        if(lOCPlaceLocationIdentification != null && !lOCPlaceLocationIdentification.isEmpty()) {
            for(LOCPlaceLocationIdentification lOCPlaceLocationIdentificationInst : lOCPlaceLocationIdentification) {
                nodeWriter.write("LOC");
                nodeWriter.write(delimiters.getField());
                lOCPlaceLocationIdentificationInst.write(nodeWriter, delimiters);
            }
        }
        if(dTMDateTimePeriod != null && !dTMDateTimePeriod.isEmpty()) {
            for(DTMDateTimePeriod dTMDateTimePeriodInst : dTMDateTimePeriod) {
                nodeWriter.write("DTM");
                nodeWriter.write(delimiters.getField());
                dTMDateTimePeriodInst.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(fTXFreeText != null) {
            nodeWriter.write("FTX");
            nodeWriter.write(delimiters.getField());
            fTXFreeText.write(nodeWriter, delimiters);
        }
    }

    public RFFReference getRFFReference() {
        return rFFReference;
    }

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

    public PIAAdditionalProductId getPIAAdditionalProductId() {
        return pIAAdditionalProductId;
    }

    public SegmentGroup18 setPIAAdditionalProductId(PIAAdditionalProductId pIAAdditionalProductId) {
        this.pIAAdditionalProductId = pIAAdditionalProductId;  return this;
    }

    public List getLOCPlaceLocationIdentification() {
        return lOCPlaceLocationIdentification;
    }

    public SegmentGroup18 setLOCPlaceLocationIdentification(List lOCPlaceLocationIdentification) {
        this.lOCPlaceLocationIdentification = lOCPlaceLocationIdentification;  return this;
    }

    public List getDTMDateTimePeriod() {
        return dTMDateTimePeriod;
    }

    public SegmentGroup18 setDTMDateTimePeriod(List dTMDateTimePeriod) {
        this.dTMDateTimePeriod = dTMDateTimePeriod;  return this;
    }

    public List getMEAMeasurements() {
        return mEAMeasurements;
    }

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

    public List getATTAttribute() {
        return aTTAttribute;
    }

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

    public FTXFreeText getFTXFreeText() {
        return fTXFreeText;
    }

    public SegmentGroup18 setFTXFreeText(FTXFreeText fTXFreeText) {
        this.fTXFreeText = fTXFreeText;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy