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

org.milyn.edi.unedifact.d02a.PROCST.SegmentGroup8 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.PROCST;

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

public class SegmentGroup8 implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private Identity identity;
    private Relationship relationship;
    private ItemDescription itemDescription;
    private List requirementsAndConditions;
    private List characteristicClassId;
    private List reference;
    private List dateTimePeriod;
    private List statistics;
    private List freeText;
    private List segmentGroup9;
    private List segmentGroup10;
    private List segmentGroup11;
    private List segmentGroup12;
    private List segmentGroup13;

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

        if(identity != null) {
            nodeWriter.write("IDE");
            nodeWriter.write(delimiters.getField());
            identity.write(nodeWriter, delimiters);
        }
        if(relationship != null) {
            nodeWriter.write("REL");
            nodeWriter.write(delimiters.getField());
            relationship.write(nodeWriter, delimiters);
        }
        if(itemDescription != null) {
            nodeWriter.write("IMD");
            nodeWriter.write(delimiters.getField());
            itemDescription.write(nodeWriter, delimiters);
        }
        if(requirementsAndConditions != null && !requirementsAndConditions.isEmpty()) {
            for(RequirementsAndConditions requirementsAndConditionsInst : requirementsAndConditions) {
                nodeWriter.write("RCS");
                nodeWriter.write(delimiters.getField());
                requirementsAndConditionsInst.write(nodeWriter, delimiters);
            }
        }
        if(characteristicClassId != null && !characteristicClassId.isEmpty()) {
            for(CharacteristicClassId characteristicClassIdInst : characteristicClassId) {
                nodeWriter.write("CCI");
                nodeWriter.write(delimiters.getField());
                characteristicClassIdInst.write(nodeWriter, delimiters);
            }
        }
        if(reference != null && !reference.isEmpty()) {
            for(Reference referenceInst : reference) {
                nodeWriter.write("RFF");
                nodeWriter.write(delimiters.getField());
                referenceInst.write(nodeWriter, delimiters);
            }
        }
        if(dateTimePeriod != null && !dateTimePeriod.isEmpty()) {
            for(DateTimePeriod dateTimePeriodInst : dateTimePeriod) {
                nodeWriter.write("DTM");
                nodeWriter.write(delimiters.getField());
                dateTimePeriodInst.write(nodeWriter, delimiters);
            }
        }
        if(statistics != null && !statistics.isEmpty()) {
            for(Statistics statisticsInst : statistics) {
                nodeWriter.write("STA");
                nodeWriter.write(delimiters.getField());
                statisticsInst.write(nodeWriter, delimiters);
            }
        }
        if(freeText != null && !freeText.isEmpty()) {
            for(FreeText freeTextInst : freeText) {
                nodeWriter.write("FTX");
                nodeWriter.write(delimiters.getField());
                freeTextInst.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(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);
            }
        }
    }

    public Identity getIdentity() {
        return identity;
    }

    public SegmentGroup8 setIdentity(Identity identity) {
        this.identity = identity;  return this;
    }

    public Relationship getRelationship() {
        return relationship;
    }

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

    public ItemDescription getItemDescription() {
        return itemDescription;
    }

    public SegmentGroup8 setItemDescription(ItemDescription itemDescription) {
        this.itemDescription = itemDescription;  return this;
    }

    public List getRequirementsAndConditions() {
        return requirementsAndConditions;
    }

    public SegmentGroup8 setRequirementsAndConditions(List requirementsAndConditions) {
        this.requirementsAndConditions = requirementsAndConditions;  return this;
    }

    public List getCharacteristicClassId() {
        return characteristicClassId;
    }

    public SegmentGroup8 setCharacteristicClassId(List characteristicClassId) {
        this.characteristicClassId = characteristicClassId;  return this;
    }

    public List getReference() {
        return reference;
    }

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

    public List getDateTimePeriod() {
        return dateTimePeriod;
    }

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

    public List getStatistics() {
        return statistics;
    }

    public SegmentGroup8 setStatistics(List statistics) {
        this.statistics = statistics;  return this;
    }

    public List getFreeText() {
        return freeText;
    }

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

    public List getSegmentGroup9() {
        return segmentGroup9;
    }

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

    public List getSegmentGroup10() {
        return segmentGroup10;
    }

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

    public List getSegmentGroup11() {
        return segmentGroup11;
    }

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

    public List getSegmentGroup12() {
        return segmentGroup12;
    }

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

    public List getSegmentGroup13() {
        return segmentGroup13;
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy