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

org.milyn.edi.unedifact.d02a.PROTAP.SegmentGroup21 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.d02a.PROTAP;

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.edi.unedifact.d02a.common.RelatedIdentificationNumbers;    
import org.milyn.edi.unedifact.d02a.common.Relationship;    
import org.milyn.edi.unedifact.d02a.common.RequirementsAndConditions;    
import java.util.List;    
import org.milyn.edi.unedifact.d02a.common.StructureIdentification;    
import org.milyn.edi.unedifact.d02a.common.Reference;    
import org.milyn.edi.unedifact.d02a.common.ItemDescription;    
import org.milyn.edi.unedifact.d02a.common.DateTimePeriod;    
import java.io.Writer;    
import org.milyn.edisax.model.internal.Delimiters;    
import java.io.IOException;    

public class SegmentGroup21 implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private RelatedIdentificationNumbers relatedIdentificationNumbers;
    private Relationship relationship;
    private RequirementsAndConditions requirementsAndConditions;
    private List structureIdentification;
    private List reference;
    private List itemDescription;
    private List dateTimePeriod;
    private List segmentGroup22;
    private List segmentGroup23;
    private List segmentGroup24;
    private List segmentGroup25;

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

        if(relatedIdentificationNumbers != null) {
            nodeWriter.write("GIR");
            nodeWriter.write(delimiters.getField());
            relatedIdentificationNumbers.write(nodeWriter, delimiters);
        }
        if(relationship != null) {
            nodeWriter.write("REL");
            nodeWriter.write(delimiters.getField());
            relationship.write(nodeWriter, delimiters);
        }
        if(requirementsAndConditions != null) {
            nodeWriter.write("RCS");
            nodeWriter.write(delimiters.getField());
            requirementsAndConditions.write(nodeWriter, delimiters);
        }
        if(structureIdentification != null && !structureIdentification.isEmpty()) {
            for(StructureIdentification structureIdentificationInst : structureIdentification) {
                nodeWriter.write("BII");
                nodeWriter.write(delimiters.getField());
                structureIdentificationInst.write(nodeWriter, delimiters);
            }
        }
        if(reference != null && !reference.isEmpty()) {
            for(Reference referenceInst : reference) {
                nodeWriter.write("RFF");
                nodeWriter.write(delimiters.getField());
                referenceInst.write(nodeWriter, delimiters);
            }
        }
        if(itemDescription != null && !itemDescription.isEmpty()) {
            for(ItemDescription itemDescriptionInst : itemDescription) {
                nodeWriter.write("IMD");
                nodeWriter.write(delimiters.getField());
                itemDescriptionInst.write(nodeWriter, delimiters);
            }
        }
        if(dateTimePeriod != null && !dateTimePeriod.isEmpty()) {
            for(DateTimePeriod dateTimePeriodInst : dateTimePeriod) {
                nodeWriter.write("DTM");
                nodeWriter.write(delimiters.getField());
                dateTimePeriodInst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup22 != null && !segmentGroup22.isEmpty()) {
            for(SegmentGroup22 segmentGroup22Inst : segmentGroup22) {
                segmentGroup22Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup23 != null && !segmentGroup23.isEmpty()) {
            for(SegmentGroup23 segmentGroup23Inst : segmentGroup23) {
                segmentGroup23Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup24 != null && !segmentGroup24.isEmpty()) {
            for(SegmentGroup24 segmentGroup24Inst : segmentGroup24) {
                segmentGroup24Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup25 != null && !segmentGroup25.isEmpty()) {
            for(SegmentGroup25 segmentGroup25Inst : segmentGroup25) {
                segmentGroup25Inst.write(nodeWriter, delimiters);
            }
        }
    }

    public RelatedIdentificationNumbers getRelatedIdentificationNumbers() {
        return relatedIdentificationNumbers;
    }

    public SegmentGroup21 setRelatedIdentificationNumbers(RelatedIdentificationNumbers relatedIdentificationNumbers) {
        this.relatedIdentificationNumbers = relatedIdentificationNumbers;  return this;
    }

    public Relationship getRelationship() {
        return relationship;
    }

    public SegmentGroup21 setRelationship(Relationship relationship) {
        this.relationship = relationship;  return this;
    }

    public RequirementsAndConditions getRequirementsAndConditions() {
        return requirementsAndConditions;
    }

    public SegmentGroup21 setRequirementsAndConditions(RequirementsAndConditions requirementsAndConditions) {
        this.requirementsAndConditions = requirementsAndConditions;  return this;
    }

    public List getStructureIdentification() {
        return structureIdentification;
    }

    public SegmentGroup21 setStructureIdentification(List structureIdentification) {
        this.structureIdentification = structureIdentification;  return this;
    }

    public List getReference() {
        return reference;
    }

    public SegmentGroup21 setReference(List reference) {
        this.reference = reference;  return this;
    }

    public List getItemDescription() {
        return itemDescription;
    }

    public SegmentGroup21 setItemDescription(List itemDescription) {
        this.itemDescription = itemDescription;  return this;
    }

    public List getDateTimePeriod() {
        return dateTimePeriod;
    }

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

    public List getSegmentGroup22() {
        return segmentGroup22;
    }

    public SegmentGroup21 setSegmentGroup22(List segmentGroup22) {
        this.segmentGroup22 = segmentGroup22;  return this;
    }

    public List getSegmentGroup23() {
        return segmentGroup23;
    }

    public SegmentGroup21 setSegmentGroup23(List segmentGroup23) {
        this.segmentGroup23 = segmentGroup23;  return this;
    }

    public List getSegmentGroup24() {
        return segmentGroup24;
    }

    public SegmentGroup21 setSegmentGroup24(List segmentGroup24) {
        this.segmentGroup24 = segmentGroup24;  return this;
    }

    public List getSegmentGroup25() {
        return segmentGroup25;
    }

    public SegmentGroup21 setSegmentGroup25(List segmentGroup25) {
        this.segmentGroup25 = segmentGroup25;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy