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

org.milyn.edi.unedifact.d98a.HANMOV.SegmentGroup16 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.d98a.HANMOV;

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.edi.unedifact.d98a.common.EQDEquipmentDetails;    
import org.milyn.edi.unedifact.d98a.common.EQNNumberOfUnits;    
import org.milyn.edi.unedifact.d98a.common.SELSealNumber;    
import java.util.List;    
import org.milyn.edi.unedifact.d98a.common.EQAAttachedEquipment;    
import org.milyn.edi.unedifact.d98a.common.RFFReference;    
import java.io.Writer;    
import org.milyn.edisax.model.internal.Delimiters;    
import java.io.IOException;    

public class SegmentGroup16 implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private EQDEquipmentDetails eQDEquipmentDetails;
    private EQNNumberOfUnits eQNNumberOfUnits;
    private SELSealNumber sELSealNumber;
    private List eQAAttachedEquipment;
    private List rFFReference;

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

        if(eQDEquipmentDetails != null) {
            nodeWriter.write("EQD");
            nodeWriter.write(delimiters.getField());
            eQDEquipmentDetails.write(nodeWriter, delimiters);
        }
        if(eQNNumberOfUnits != null) {
            nodeWriter.write("EQN");
            nodeWriter.write(delimiters.getField());
            eQNNumberOfUnits.write(nodeWriter, delimiters);
        }
        if(sELSealNumber != null) {
            nodeWriter.write("SEL");
            nodeWriter.write(delimiters.getField());
            sELSealNumber.write(nodeWriter, delimiters);
        }
        if(eQAAttachedEquipment != null && !eQAAttachedEquipment.isEmpty()) {
            for(EQAAttachedEquipment eQAAttachedEquipmentInst : eQAAttachedEquipment) {
                nodeWriter.write("EQA");
                nodeWriter.write(delimiters.getField());
                eQAAttachedEquipmentInst.write(nodeWriter, delimiters);
            }
        }
        if(rFFReference != null && !rFFReference.isEmpty()) {
            for(RFFReference rFFReferenceInst : rFFReference) {
                nodeWriter.write("RFF");
                nodeWriter.write(delimiters.getField());
                rFFReferenceInst.write(nodeWriter, delimiters);
            }
        }
    }

    public EQDEquipmentDetails getEQDEquipmentDetails() {
        return eQDEquipmentDetails;
    }

    public SegmentGroup16 setEQDEquipmentDetails(EQDEquipmentDetails eQDEquipmentDetails) {
        this.eQDEquipmentDetails = eQDEquipmentDetails;  return this;
    }

    public EQNNumberOfUnits getEQNNumberOfUnits() {
        return eQNNumberOfUnits;
    }

    public SegmentGroup16 setEQNNumberOfUnits(EQNNumberOfUnits eQNNumberOfUnits) {
        this.eQNNumberOfUnits = eQNNumberOfUnits;  return this;
    }

    public SELSealNumber getSELSealNumber() {
        return sELSealNumber;
    }

    public SegmentGroup16 setSELSealNumber(SELSealNumber sELSealNumber) {
        this.sELSealNumber = sELSealNumber;  return this;
    }

    public List getEQAAttachedEquipment() {
        return eQAAttachedEquipment;
    }

    public SegmentGroup16 setEQAAttachedEquipment(List eQAAttachedEquipment) {
        this.eQAAttachedEquipment = eQAAttachedEquipment;  return this;
    }

    public List getRFFReference() {
        return rFFReference;
    }

    public SegmentGroup16 setRFFReference(List rFFReference) {
        this.rFFReference = rFFReference;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy