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

org.milyn.edi.unedifact.d98a.MEDRUC.SegmentGroup17 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.d98a.MEDRUC;

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

public class SegmentGroup17 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 segmentGroup18;
    private List segmentGroup19;
    private List segmentGroup20;

    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(segmentGroup18 != null && !segmentGroup18.isEmpty()) {
            for(SegmentGroup18 segmentGroup18Inst : segmentGroup18) {
                segmentGroup18Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup19 != null && !segmentGroup19.isEmpty()) {
            for(SegmentGroup19 segmentGroup19Inst : segmentGroup19) {
                segmentGroup19Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup20 != null && !segmentGroup20.isEmpty()) {
            for(SegmentGroup20 segmentGroup20Inst : segmentGroup20) {
                segmentGroup20Inst.write(nodeWriter, delimiters);
            }
        }
    }

    public DetailsOfTransport getDetailsOfTransport() {
        return detailsOfTransport;
    }

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

    public GeneralIndicator getGeneralIndicator() {
        return generalIndicator;
    }

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

    public List getItemDescription() {
        return itemDescription;
    }

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

    public List getPartyIdentification() {
        return partyIdentification;
    }

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

    public List getReference() {
        return reference;
    }

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

    public List getFreeText() {
        return freeText;
    }

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

    public List getClinicalInformation() {
        return clinicalInformation;
    }

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

    public List getQuantity() {
        return quantity;
    }

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

    public List getSegmentGroup18() {
        return segmentGroup18;
    }

    public SegmentGroup17 setSegmentGroup18(List segmentGroup18) {
        this.segmentGroup18 = segmentGroup18;  return this;
    }

    public List getSegmentGroup19() {
        return segmentGroup19;
    }

    public SegmentGroup17 setSegmentGroup19(List segmentGroup19) {
        this.segmentGroup19 = segmentGroup19;  return this;
    }

    public List getSegmentGroup20() {
        return segmentGroup20;
    }

    public SegmentGroup17 setSegmentGroup20(List segmentGroup20) {
        this.segmentGroup20 = segmentGroup20;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy