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

org.milyn.edi.unedifact.d09b.GOVCBR.SegmentGroup30 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.d09b.GOVCBR;

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.edi.unedifact.d09b.common.PACPackage;    
import java.util.List;    
import org.milyn.edi.unedifact.d09b.common.PCIPackageIdentification;    
import org.milyn.edi.unedifact.d09b.common.FTXFreeText;    
import org.milyn.edi.unedifact.d09b.common.GEIProcessingInformation;    
import org.milyn.edi.unedifact.d09b.common.DIMDimensions;    
import org.milyn.edi.unedifact.d09b.common.MEAMeasurements;    
import java.io.Writer;    
import org.milyn.edisax.model.internal.Delimiters;    
import java.io.IOException;    

public class SegmentGroup30 implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private PACPackage pACPackage;
    private List pCIPackageIdentification;
    private FTXFreeText fTXFreeText;
    private GEIProcessingInformation gEIProcessingInformation;
    private DIMDimensions dIMDimensions;
    private MEAMeasurements mEAMeasurements;

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

        if(pACPackage != null) {
            nodeWriter.write("PAC");
            nodeWriter.write(delimiters.getField());
            pACPackage.write(nodeWriter, delimiters);
        }
        if(pCIPackageIdentification != null && !pCIPackageIdentification.isEmpty()) {
            for(PCIPackageIdentification pCIPackageIdentificationInst : pCIPackageIdentification) {
                nodeWriter.write("PCI");
                nodeWriter.write(delimiters.getField());
                pCIPackageIdentificationInst.write(nodeWriter, delimiters);
            }
        }
        if(fTXFreeText != null) {
            nodeWriter.write("FTX");
            nodeWriter.write(delimiters.getField());
            fTXFreeText.write(nodeWriter, delimiters);
        }
        if(gEIProcessingInformation != null) {
            nodeWriter.write("GEI");
            nodeWriter.write(delimiters.getField());
            gEIProcessingInformation.write(nodeWriter, delimiters);
        }
        if(dIMDimensions != null) {
            nodeWriter.write("DIM");
            nodeWriter.write(delimiters.getField());
            dIMDimensions.write(nodeWriter, delimiters);
        }
        if(mEAMeasurements != null) {
            nodeWriter.write("MEA");
            nodeWriter.write(delimiters.getField());
            mEAMeasurements.write(nodeWriter, delimiters);
        }
    }

    public PACPackage getPACPackage() {
        return pACPackage;
    }

    public SegmentGroup30 setPACPackage(PACPackage pACPackage) {
        this.pACPackage = pACPackage;  return this;
    }

    public List getPCIPackageIdentification() {
        return pCIPackageIdentification;
    }

    public SegmentGroup30 setPCIPackageIdentification(List pCIPackageIdentification) {
        this.pCIPackageIdentification = pCIPackageIdentification;  return this;
    }

    public FTXFreeText getFTXFreeText() {
        return fTXFreeText;
    }

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

    public GEIProcessingInformation getGEIProcessingInformation() {
        return gEIProcessingInformation;
    }

    public SegmentGroup30 setGEIProcessingInformation(GEIProcessingInformation gEIProcessingInformation) {
        this.gEIProcessingInformation = gEIProcessingInformation;  return this;
    }

    public DIMDimensions getDIMDimensions() {
        return dIMDimensions;
    }

    public SegmentGroup30 setDIMDimensions(DIMDimensions dIMDimensions) {
        this.dIMDimensions = dIMDimensions;  return this;
    }

    public MEAMeasurements getMEAMeasurements() {
        return mEAMeasurements;
    }

    public SegmentGroup30 setMEAMeasurements(MEAMeasurements mEAMeasurements) {
        this.mEAMeasurements = mEAMeasurements;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy