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

org.milyn.edi.unedifact.d99b.MEDRPT.SegmentGroup2 Maven / Gradle / Ivy

The newest version!
/**
 * This class was generated by Smooks EJC (http://www.smooks.org).
 */
package org.milyn.edi.unedifact.d99b.MEDRPT;

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.edi.unedifact.d99b.common.IRQInformationRequired;    
import org.milyn.edi.unedifact.d99b.common.GISGeneralIndicator;    
import java.util.List;    
import org.milyn.edi.unedifact.d99b.common.RFFReference;    
import org.milyn.edi.unedifact.d99b.common.DTMDateTimePeriod;    
import org.milyn.edi.unedifact.d99b.common.STSStatus;    
import org.milyn.edi.unedifact.d99b.common.PTYPriority;    
import org.milyn.edi.unedifact.d99b.common.LANLanguage;    
import org.milyn.edi.unedifact.d99b.common.FTXFreeText;    
import org.milyn.edi.unedifact.d99b.common.TEMTestMethod;    
import java.io.Writer;    
import org.milyn.edisax.model.internal.Delimiters;    
import java.io.IOException;    

public class SegmentGroup2 implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private IRQInformationRequired iRQInformationRequired;
    private GISGeneralIndicator gISGeneralIndicator;
    private List rFFReference;
    private DTMDateTimePeriod dTMDateTimePeriod;
    private STSStatus sTSStatus;
    private PTYPriority pTYPriority;
    private LANLanguage lANLanguage;
    private List fTXFreeText;
    private TEMTestMethod tEMTestMethod;
    private List segmentGroup3;
    private List segmentGroup4;
    private List segmentGroup6;

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

        if(iRQInformationRequired != null) {
            nodeWriter.write("IRQ");
            nodeWriter.write(delimiters.getField());
            iRQInformationRequired.write(nodeWriter, delimiters);
        }
        if(gISGeneralIndicator != null) {
            nodeWriter.write("GIS");
            nodeWriter.write(delimiters.getField());
            gISGeneralIndicator.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) {
            nodeWriter.write("DTM");
            nodeWriter.write(delimiters.getField());
            dTMDateTimePeriod.write(nodeWriter, delimiters);
        }
        if(sTSStatus != null) {
            nodeWriter.write("STS");
            nodeWriter.write(delimiters.getField());
            sTSStatus.write(nodeWriter, delimiters);
        }
        if(pTYPriority != null) {
            nodeWriter.write("PTY");
            nodeWriter.write(delimiters.getField());
            pTYPriority.write(nodeWriter, delimiters);
        }
        if(lANLanguage != null) {
            nodeWriter.write("LAN");
            nodeWriter.write(delimiters.getField());
            lANLanguage.write(nodeWriter, delimiters);
        }
        if(fTXFreeText != null && !fTXFreeText.isEmpty()) {
            for(FTXFreeText fTXFreeTextInst : fTXFreeText) {
                nodeWriter.write("FTX");
                nodeWriter.write(delimiters.getField());
                fTXFreeTextInst.write(nodeWriter, delimiters);
            }
        }
        if(tEMTestMethod != null) {
            nodeWriter.write("TEM");
            nodeWriter.write(delimiters.getField());
            tEMTestMethod.write(nodeWriter, delimiters);
        }
        if(segmentGroup3 != null && !segmentGroup3.isEmpty()) {
            for(SegmentGroup3 segmentGroup3Inst : segmentGroup3) {
                segmentGroup3Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup4 != null && !segmentGroup4.isEmpty()) {
            for(SegmentGroup4 segmentGroup4Inst : segmentGroup4) {
                segmentGroup4Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup6 != null && !segmentGroup6.isEmpty()) {
            for(SegmentGroup6 segmentGroup6Inst : segmentGroup6) {
                segmentGroup6Inst.write(nodeWriter, delimiters);
            }
        }
    }

    public IRQInformationRequired getIRQInformationRequired() {
        return iRQInformationRequired;
    }

    public SegmentGroup2 setIRQInformationRequired(IRQInformationRequired iRQInformationRequired) {
        this.iRQInformationRequired = iRQInformationRequired;  return this;
    }

    public GISGeneralIndicator getGISGeneralIndicator() {
        return gISGeneralIndicator;
    }

    public SegmentGroup2 setGISGeneralIndicator(GISGeneralIndicator gISGeneralIndicator) {
        this.gISGeneralIndicator = gISGeneralIndicator;  return this;
    }

    public List getRFFReference() {
        return rFFReference;
    }

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

    public DTMDateTimePeriod getDTMDateTimePeriod() {
        return dTMDateTimePeriod;
    }

    public SegmentGroup2 setDTMDateTimePeriod(DTMDateTimePeriod dTMDateTimePeriod) {
        this.dTMDateTimePeriod = dTMDateTimePeriod;  return this;
    }

    public STSStatus getSTSStatus() {
        return sTSStatus;
    }

    public SegmentGroup2 setSTSStatus(STSStatus sTSStatus) {
        this.sTSStatus = sTSStatus;  return this;
    }

    public PTYPriority getPTYPriority() {
        return pTYPriority;
    }

    public SegmentGroup2 setPTYPriority(PTYPriority pTYPriority) {
        this.pTYPriority = pTYPriority;  return this;
    }

    public LANLanguage getLANLanguage() {
        return lANLanguage;
    }

    public SegmentGroup2 setLANLanguage(LANLanguage lANLanguage) {
        this.lANLanguage = lANLanguage;  return this;
    }

    public List getFTXFreeText() {
        return fTXFreeText;
    }

    public SegmentGroup2 setFTXFreeText(List fTXFreeText) {
        this.fTXFreeText = fTXFreeText;  return this;
    }

    public TEMTestMethod getTEMTestMethod() {
        return tEMTestMethod;
    }

    public SegmentGroup2 setTEMTestMethod(TEMTestMethod tEMTestMethod) {
        this.tEMTestMethod = tEMTestMethod;  return this;
    }

    public List getSegmentGroup3() {
        return segmentGroup3;
    }

    public SegmentGroup2 setSegmentGroup3(List segmentGroup3) {
        this.segmentGroup3 = segmentGroup3;  return this;
    }

    public List getSegmentGroup4() {
        return segmentGroup4;
    }

    public SegmentGroup2 setSegmentGroup4(List segmentGroup4) {
        this.segmentGroup4 = segmentGroup4;  return this;
    }

    public List getSegmentGroup6() {
        return segmentGroup6;
    }

    public SegmentGroup2 setSegmentGroup6(List segmentGroup6) {
        this.segmentGroup6 = segmentGroup6;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy