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

org.milyn.edi.unedifact.d02a.MEDRUC.SegmentGroup20 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.MEDRUC;

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.edi.unedifact.d02a.common.DetailsOfTransport;    
import org.milyn.edi.unedifact.d02a.common.GeneralIndicator;    
import java.util.List;    
import org.milyn.edi.unedifact.d02a.common.ItemDescription;    
import org.milyn.edi.unedifact.d02a.common.PartyIdentification;    
import org.milyn.edi.unedifact.d02a.common.Reference;    
import org.milyn.edi.unedifact.d02a.common.FreeText;    
import org.milyn.edi.unedifact.d02a.common.ClinicalInformation;    
import org.milyn.edi.unedifact.d02a.common.Quantity;    
import java.io.Writer;    
import org.milyn.edisax.model.internal.Delimiters;    
import java.io.IOException;    

public class SegmentGroup20 implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private DetailsOfTransport detailsOfTransport;
    private GeneralIndicator generalIndicator;
    private List itemDescription;
    private List partyIdentification;
    private List reference;
    private List freeText;
    private List clinicalInformation;
    private List quantity;
    private List segmentGroup21;
    private List segmentGroup22;
    private List segmentGroup23;

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

        if(detailsOfTransport != null) {
            nodeWriter.write("TDT");
            nodeWriter.write(delimiters.getField());
            detailsOfTransport.write(nodeWriter, delimiters);
        }
        if(generalIndicator != null) {
            nodeWriter.write("GIS");
            nodeWriter.write(delimiters.getField());
            generalIndicator.write(nodeWriter, delimiters);
        }
        if(itemDescription != null && !itemDescription.isEmpty()) {
            for(ItemDescription itemDescriptionInst : itemDescription) {
                nodeWriter.write("IMD");
                nodeWriter.write(delimiters.getField());
                itemDescriptionInst.write(nodeWriter, delimiters);
            }
        }
        if(partyIdentification != null && !partyIdentification.isEmpty()) {
            for(PartyIdentification partyIdentificationInst : partyIdentification) {
                nodeWriter.write("PNA");
                nodeWriter.write(delimiters.getField());
                partyIdentificationInst.write(nodeWriter, delimiters);
            }
        }
        if(reference != null && !reference.isEmpty()) {
            for(Reference referenceInst : reference) {
                nodeWriter.write("RFF");
                nodeWriter.write(delimiters.getField());
                referenceInst.write(nodeWriter, delimiters);
            }
        }
        if(freeText != null && !freeText.isEmpty()) {
            for(FreeText freeTextInst : freeText) {
                nodeWriter.write("FTX");
                nodeWriter.write(delimiters.getField());
                freeTextInst.write(nodeWriter, delimiters);
            }
        }
        if(clinicalInformation != null && !clinicalInformation.isEmpty()) {
            for(ClinicalInformation clinicalInformationInst : clinicalInformation) {
                nodeWriter.write("CIN");
                nodeWriter.write(delimiters.getField());
                clinicalInformationInst.write(nodeWriter, delimiters);
            }
        }
        if(quantity != null && !quantity.isEmpty()) {
            for(Quantity quantityInst : quantity) {
                nodeWriter.write("QTY");
                nodeWriter.write(delimiters.getField());
                quantityInst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup21 != null && !segmentGroup21.isEmpty()) {
            for(SegmentGroup21 segmentGroup21Inst : segmentGroup21) {
                segmentGroup21Inst.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);
            }
        }
    }

    public DetailsOfTransport getDetailsOfTransport() {
        return detailsOfTransport;
    }

    public SegmentGroup20 setDetailsOfTransport(DetailsOfTransport detailsOfTransport) {
        this.detailsOfTransport = detailsOfTransport;  return this;
    }

    public GeneralIndicator getGeneralIndicator() {
        return generalIndicator;
    }

    public SegmentGroup20 setGeneralIndicator(GeneralIndicator generalIndicator) {
        this.generalIndicator = generalIndicator;  return this;
    }

    public List getItemDescription() {
        return itemDescription;
    }

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

    public List getPartyIdentification() {
        return partyIdentification;
    }

    public SegmentGroup20 setPartyIdentification(List partyIdentification) {
        this.partyIdentification = partyIdentification;  return this;
    }

    public List getReference() {
        return reference;
    }

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

    public List getFreeText() {
        return freeText;
    }

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

    public List getClinicalInformation() {
        return clinicalInformation;
    }

    public SegmentGroup20 setClinicalInformation(List clinicalInformation) {
        this.clinicalInformation = clinicalInformation;  return this;
    }

    public List getQuantity() {
        return quantity;
    }

    public SegmentGroup20 setQuantity(List quantity) {
        this.quantity = quantity;  return this;
    }

    public List getSegmentGroup21() {
        return segmentGroup21;
    }

    public SegmentGroup20 setSegmentGroup21(List segmentGroup21) {
        this.segmentGroup21 = segmentGroup21;  return this;
    }

    public List getSegmentGroup22() {
        return segmentGroup22;
    }

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

    public List getSegmentGroup23() {
        return segmentGroup23;
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy