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

org.milyn.edi.unedifact.d11b.CUSDEC.SegmentGroup10 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.d11b.CUSDEC;

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.edi.unedifact.d11b.common.EFIExternalFileLinkIdentification;    
import java.util.List;    
import org.milyn.edi.unedifact.d11b.common.CEDComputerEnvironmentDetails;    
import org.milyn.edi.unedifact.d11b.common.COMCommunicationContact;    
import org.milyn.edi.unedifact.d11b.common.RFFReference;    
import org.milyn.edi.unedifact.d11b.common.DTMDateTimePeriod;    
import org.milyn.edi.unedifact.d11b.common.QTYQuantity;    
import java.io.Writer;    
import org.milyn.edisax.model.internal.Delimiters;    
import java.io.IOException;    

public class SegmentGroup10 implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private EFIExternalFileLinkIdentification eFIExternalFileLinkIdentification;
    private List cEDComputerEnvironmentDetails;
    private List cOMCommunicationContact;
    private List rFFReference;
    private List dTMDateTimePeriod;
    private List qTYQuantity;

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

        if(eFIExternalFileLinkIdentification != null) {
            nodeWriter.write("EFI");
            nodeWriter.write(delimiters.getField());
            eFIExternalFileLinkIdentification.write(nodeWriter, delimiters);
        }
        if(cEDComputerEnvironmentDetails != null && !cEDComputerEnvironmentDetails.isEmpty()) {
            for(CEDComputerEnvironmentDetails cEDComputerEnvironmentDetailsInst : cEDComputerEnvironmentDetails) {
                nodeWriter.write("CED");
                nodeWriter.write(delimiters.getField());
                cEDComputerEnvironmentDetailsInst.write(nodeWriter, delimiters);
            }
        }
        if(cOMCommunicationContact != null && !cOMCommunicationContact.isEmpty()) {
            for(COMCommunicationContact cOMCommunicationContactInst : cOMCommunicationContact) {
                nodeWriter.write("COM");
                nodeWriter.write(delimiters.getField());
                cOMCommunicationContactInst.write(nodeWriter, delimiters);
            }
        }
        if(rFFReference != null && !rFFReference.isEmpty()) {
            for(RFFReference rFFReferenceInst : rFFReference) {
                nodeWriter.write("RFF");
                nodeWriter.write(delimiters.getField());
                rFFReferenceInst.write(nodeWriter, delimiters);
            }
        }
        if(dTMDateTimePeriod != null && !dTMDateTimePeriod.isEmpty()) {
            for(DTMDateTimePeriod dTMDateTimePeriodInst : dTMDateTimePeriod) {
                nodeWriter.write("DTM");
                nodeWriter.write(delimiters.getField());
                dTMDateTimePeriodInst.write(nodeWriter, delimiters);
            }
        }
        if(qTYQuantity != null && !qTYQuantity.isEmpty()) {
            for(QTYQuantity qTYQuantityInst : qTYQuantity) {
                nodeWriter.write("QTY");
                nodeWriter.write(delimiters.getField());
                qTYQuantityInst.write(nodeWriter, delimiters);
            }
        }
    }

    public EFIExternalFileLinkIdentification getEFIExternalFileLinkIdentification() {
        return eFIExternalFileLinkIdentification;
    }

    public SegmentGroup10 setEFIExternalFileLinkIdentification(EFIExternalFileLinkIdentification eFIExternalFileLinkIdentification) {
        this.eFIExternalFileLinkIdentification = eFIExternalFileLinkIdentification;  return this;
    }

    public List getCEDComputerEnvironmentDetails() {
        return cEDComputerEnvironmentDetails;
    }

    public SegmentGroup10 setCEDComputerEnvironmentDetails(List cEDComputerEnvironmentDetails) {
        this.cEDComputerEnvironmentDetails = cEDComputerEnvironmentDetails;  return this;
    }

    public List getCOMCommunicationContact() {
        return cOMCommunicationContact;
    }

    public SegmentGroup10 setCOMCommunicationContact(List cOMCommunicationContact) {
        this.cOMCommunicationContact = cOMCommunicationContact;  return this;
    }

    public List getRFFReference() {
        return rFFReference;
    }

    public SegmentGroup10 setRFFReference(List rFFReference) {
        this.rFFReference = rFFReference;  return this;
    }

    public List getDTMDateTimePeriod() {
        return dTMDateTimePeriod;
    }

    public SegmentGroup10 setDTMDateTimePeriod(List dTMDateTimePeriod) {
        this.dTMDateTimePeriod = dTMDateTimePeriod;  return this;
    }

    public List getQTYQuantity() {
        return qTYQuantity;
    }

    public SegmentGroup10 setQTYQuantity(List qTYQuantity) {
        this.qTYQuantity = qTYQuantity;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy