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

org.milyn.edi.unedifact.d06b.GESMES.SegmentGroup16 Maven / Gradle / Ivy

/**
 * This class was generated by Smooks EJC (http://www.smooks.org).
 */
package org.milyn.edi.unedifact.d06b.GESMES;

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.edi.unedifact.d06b.common.StructureComponentDefinition;    
import java.util.List;    
import org.milyn.edi.unedifact.d06b.common.Attribute;    
import org.milyn.edi.unedifact.d06b.common.DateTimePeriod;    
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 StructureComponentDefinition structureComponentDefinition;
    private List attribute;
    private List dateTimePeriod;
    private List segmentGroup17;

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

        if(structureComponentDefinition != null) {
            nodeWriter.write("SCD");
            nodeWriter.write(delimiters.getField());
            structureComponentDefinition.write(nodeWriter, delimiters);
        }
        if(attribute != null && !attribute.isEmpty()) {
            for(Attribute attributeInst : attribute) {
                nodeWriter.write("ATT");
                nodeWriter.write(delimiters.getField());
                attributeInst.write(nodeWriter, delimiters);
            }
        }
        if(dateTimePeriod != null && !dateTimePeriod.isEmpty()) {
            for(DateTimePeriod dateTimePeriodInst : dateTimePeriod) {
                nodeWriter.write("DTM");
                nodeWriter.write(delimiters.getField());
                dateTimePeriodInst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup17 != null && !segmentGroup17.isEmpty()) {
            for(SegmentGroup17 segmentGroup17Inst : segmentGroup17) {
                segmentGroup17Inst.write(nodeWriter, delimiters);
            }
        }
    }

    public StructureComponentDefinition getStructureComponentDefinition() {
        return structureComponentDefinition;
    }

    public SegmentGroup16 setStructureComponentDefinition(StructureComponentDefinition structureComponentDefinition) {
        this.structureComponentDefinition = structureComponentDefinition;  return this;
    }

    public List getAttribute() {
        return attribute;
    }

    public SegmentGroup16 setAttribute(List attribute) {
        this.attribute = attribute;  return this;
    }

    public List getDateTimePeriod() {
        return dateTimePeriod;
    }

    public SegmentGroup16 setDateTimePeriod(List dateTimePeriod) {
        this.dateTimePeriod = dateTimePeriod;  return this;
    }

    public List getSegmentGroup17() {
        return segmentGroup17;
    }

    public SegmentGroup16 setSegmentGroup17(List segmentGroup17) {
        this.segmentGroup17 = segmentGroup17;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy