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

org.milyn.edi.unedifact.d99b.IFTSTA.SegmentGroup9 Maven / Gradle / Ivy

The newest version!
/**
 * This class was generated by Smooks EJC (http://www.smooks.org).
 */
package org.milyn.edi.unedifact.d99b.IFTSTA;

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

public class SegmentGroup9 implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private EQAAttachedEquipment eQAAttachedEquipment;
    private List sELSealNumber;

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

        if(eQAAttachedEquipment != null) {
            nodeWriter.write("EQA");
            nodeWriter.write(delimiters.getField());
            eQAAttachedEquipment.write(nodeWriter, delimiters);
        }
        if(sELSealNumber != null && !sELSealNumber.isEmpty()) {
            for(SELSealNumber sELSealNumberInst : sELSealNumber) {
                nodeWriter.write("SEL");
                nodeWriter.write(delimiters.getField());
                sELSealNumberInst.write(nodeWriter, delimiters);
            }
        }
    }

    public EQAAttachedEquipment getEQAAttachedEquipment() {
        return eQAAttachedEquipment;
    }

    public SegmentGroup9 setEQAAttachedEquipment(EQAAttachedEquipment eQAAttachedEquipment) {
        this.eQAAttachedEquipment = eQAAttachedEquipment;  return this;
    }

    public List getSELSealNumber() {
        return sELSealNumber;
    }

    public SegmentGroup9 setSELSealNumber(List sELSealNumber) {
        this.sELSealNumber = sELSealNumber;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy