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

org.milyn.edi.unedifact.d96a.SAFHAZ.SegmentGroup6 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.d96a.SAFHAZ;

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.edi.unedifact.d96a.common.SafetyInformation;    
import java.util.List;    
import org.milyn.edi.unedifact.d96a.common.AdditionalProductId;    
import org.milyn.edi.unedifact.d96a.common.EquipmentDetails;    
import org.milyn.edi.unedifact.d96a.common.FreeText;    
import java.io.Writer;    
import org.milyn.edisax.model.internal.Delimiters;    
import java.io.IOException;    

public class SegmentGroup6 implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private SafetyInformation safetyInformation;
    private List additionalProductId;
    private List equipmentDetails;
    private List freeText;
    private List segmentGroup7;
    private List segmentGroup9;
    private List segmentGroup10;
    private List segmentGroup11;
    private List segmentGroup13;

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

        if(safetyInformation != null) {
            nodeWriter.write("SFI");
            nodeWriter.write(delimiters.getField());
            safetyInformation.write(nodeWriter, delimiters);
        }
        if(additionalProductId != null && !additionalProductId.isEmpty()) {
            for(AdditionalProductId additionalProductIdInst : additionalProductId) {
                nodeWriter.write("PIA");
                nodeWriter.write(delimiters.getField());
                additionalProductIdInst.write(nodeWriter, delimiters);
            }
        }
        if(equipmentDetails != null && !equipmentDetails.isEmpty()) {
            for(EquipmentDetails equipmentDetailsInst : equipmentDetails) {
                nodeWriter.write("EQD");
                nodeWriter.write(delimiters.getField());
                equipmentDetailsInst.write(nodeWriter, delimiters);
            }
        }
        if(freeText != null && !freeText.isEmpty()) {
            for(FreeText freeTextInst : freeText) {
                nodeWriter.write("FTX");
                nodeWriter.write(delimiters.getField());
                freeTextInst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup7 != null && !segmentGroup7.isEmpty()) {
            for(SegmentGroup7 segmentGroup7Inst : segmentGroup7) {
                segmentGroup7Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup9 != null && !segmentGroup9.isEmpty()) {
            for(SegmentGroup9 segmentGroup9Inst : segmentGroup9) {
                segmentGroup9Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup10 != null && !segmentGroup10.isEmpty()) {
            for(SegmentGroup10 segmentGroup10Inst : segmentGroup10) {
                segmentGroup10Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup11 != null && !segmentGroup11.isEmpty()) {
            for(SegmentGroup11 segmentGroup11Inst : segmentGroup11) {
                segmentGroup11Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup13 != null && !segmentGroup13.isEmpty()) {
            for(SegmentGroup13 segmentGroup13Inst : segmentGroup13) {
                segmentGroup13Inst.write(nodeWriter, delimiters);
            }
        }
    }

    public SafetyInformation getSafetyInformation() {
        return safetyInformation;
    }

    public SegmentGroup6 setSafetyInformation(SafetyInformation safetyInformation) {
        this.safetyInformation = safetyInformation;  return this;
    }

    public List getAdditionalProductId() {
        return additionalProductId;
    }

    public SegmentGroup6 setAdditionalProductId(List additionalProductId) {
        this.additionalProductId = additionalProductId;  return this;
    }

    public List getEquipmentDetails() {
        return equipmentDetails;
    }

    public SegmentGroup6 setEquipmentDetails(List equipmentDetails) {
        this.equipmentDetails = equipmentDetails;  return this;
    }

    public List getFreeText() {
        return freeText;
    }

    public SegmentGroup6 setFreeText(List freeText) {
        this.freeText = freeText;  return this;
    }

    public List getSegmentGroup7() {
        return segmentGroup7;
    }

    public SegmentGroup6 setSegmentGroup7(List segmentGroup7) {
        this.segmentGroup7 = segmentGroup7;  return this;
    }

    public List getSegmentGroup9() {
        return segmentGroup9;
    }

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

    public List getSegmentGroup10() {
        return segmentGroup10;
    }

    public SegmentGroup6 setSegmentGroup10(List segmentGroup10) {
        this.segmentGroup10 = segmentGroup10;  return this;
    }

    public List getSegmentGroup11() {
        return segmentGroup11;
    }

    public SegmentGroup6 setSegmentGroup11(List segmentGroup11) {
        this.segmentGroup11 = segmentGroup11;  return this;
    }

    public List getSegmentGroup13() {
        return segmentGroup13;
    }

    public SegmentGroup6 setSegmentGroup13(List segmentGroup13) {
        this.segmentGroup13 = segmentGroup13;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy