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

org.milyn.edi.unedifact.d99b.CLASET.SegmentGroup11 Maven / Gradle / Ivy

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

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

public class SegmentGroup11 implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private SCDStructureComponentDefinition sCDStructureComponentDefinition;
    private List dTMDateTimePeriod;
    private EQNNumberOfUnits eQNNumberOfUnits;
    private List segmentGroup12;
    private List segmentGroup13;
    private List segmentGroup16;

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

        if(sCDStructureComponentDefinition != null) {
            nodeWriter.write("SCD");
            nodeWriter.write(delimiters.getField());
            sCDStructureComponentDefinition.write(nodeWriter, delimiters);
        }
        if(dTMDateTimePeriod != null && !dTMDateTimePeriod.isEmpty()) {
            for(DTMDateTimePeriod dTMDateTimePeriodInst : dTMDateTimePeriod) {
                nodeWriter.write("DTM");
                nodeWriter.write(delimiters.getField());
                dTMDateTimePeriodInst.write(nodeWriter, delimiters);
            }
        }
        if(eQNNumberOfUnits != null) {
            nodeWriter.write("EQN");
            nodeWriter.write(delimiters.getField());
            eQNNumberOfUnits.write(nodeWriter, delimiters);
        }
        if(segmentGroup12 != null && !segmentGroup12.isEmpty()) {
            for(SegmentGroup12 segmentGroup12Inst : segmentGroup12) {
                segmentGroup12Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup13 != null && !segmentGroup13.isEmpty()) {
            for(SegmentGroup13 segmentGroup13Inst : segmentGroup13) {
                segmentGroup13Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup16 != null && !segmentGroup16.isEmpty()) {
            for(SegmentGroup16 segmentGroup16Inst : segmentGroup16) {
                segmentGroup16Inst.write(nodeWriter, delimiters);
            }
        }
    }

    public SCDStructureComponentDefinition getSCDStructureComponentDefinition() {
        return sCDStructureComponentDefinition;
    }

    public SegmentGroup11 setSCDStructureComponentDefinition(SCDStructureComponentDefinition sCDStructureComponentDefinition) {
        this.sCDStructureComponentDefinition = sCDStructureComponentDefinition;  return this;
    }

    public List getDTMDateTimePeriod() {
        return dTMDateTimePeriod;
    }

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

    public EQNNumberOfUnits getEQNNumberOfUnits() {
        return eQNNumberOfUnits;
    }

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

    public List getSegmentGroup12() {
        return segmentGroup12;
    }

    public SegmentGroup11 setSegmentGroup12(List segmentGroup12) {
        this.segmentGroup12 = segmentGroup12;  return this;
    }

    public List getSegmentGroup13() {
        return segmentGroup13;
    }

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

    public List getSegmentGroup16() {
        return segmentGroup16;
    }

    public SegmentGroup11 setSegmentGroup16(List segmentGroup16) {
        this.segmentGroup16 = segmentGroup16;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy