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

org.milyn.edi.unedifact.d02a.MEDPRE.SegmentGroup3 Maven / Gradle / Ivy

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

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.edi.unedifact.d02a.common.ATTAttribute;    
import java.util.List;    
import org.milyn.edi.unedifact.d02a.common.PNAPartyIdentification;    
import org.milyn.edi.unedifact.d02a.common.PDIPersonDemographicInformation;    
import org.milyn.edi.unedifact.d02a.common.IDEIdentity;    
import org.milyn.edi.unedifact.d02a.common.DTMDateTimePeriod;    
import org.milyn.edi.unedifact.d02a.common.NATNationality;    
import org.milyn.edi.unedifact.d02a.common.AGRAgreementIdentification;    
import org.milyn.edi.unedifact.d02a.common.CCICharacteristicClassId;    
import org.milyn.edi.unedifact.d02a.common.STSStatus;    
import org.milyn.edi.unedifact.d02a.common.FTXFreeText;    
import org.milyn.edi.unedifact.d02a.common.LANLanguage;    
import org.milyn.edi.unedifact.d02a.common.CAVCharacteristicValue;    
import java.io.Writer;    
import org.milyn.edisax.model.internal.Delimiters;    
import java.io.IOException;    

public class SegmentGroup3 implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private ATTAttribute aTTAttribute;
    private List pNAPartyIdentification;
    private PDIPersonDemographicInformation pDIPersonDemographicInformation;
    private List iDEIdentity;
    private List dTMDateTimePeriod;
    private NATNationality nATNationality;
    private List aGRAgreementIdentification;
    private List cCICharacteristicClassId;
    private STSStatus sTSStatus;
    private List fTXFreeText;
    private LANLanguage lANLanguage;
    private CAVCharacteristicValue cAVCharacteristicValue;
    private List segmentGroup4;
    private List segmentGroup5;
    private List segmentGroup6;
    private List segmentGroup7;

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

        if(aTTAttribute != null) {
            nodeWriter.write("ATT");
            nodeWriter.write(delimiters.getField());
            aTTAttribute.write(nodeWriter, delimiters);
        }
        if(pNAPartyIdentification != null && !pNAPartyIdentification.isEmpty()) {
            for(PNAPartyIdentification pNAPartyIdentificationInst : pNAPartyIdentification) {
                nodeWriter.write("PNA");
                nodeWriter.write(delimiters.getField());
                pNAPartyIdentificationInst.write(nodeWriter, delimiters);
            }
        }
        if(pDIPersonDemographicInformation != null) {
            nodeWriter.write("PDI");
            nodeWriter.write(delimiters.getField());
            pDIPersonDemographicInformation.write(nodeWriter, delimiters);
        }
        if(iDEIdentity != null && !iDEIdentity.isEmpty()) {
            for(IDEIdentity iDEIdentityInst : iDEIdentity) {
                nodeWriter.write("IDE");
                nodeWriter.write(delimiters.getField());
                iDEIdentityInst.write(nodeWriter, delimiters);
            }
        }
        if(dTMDateTimePeriod != null && !dTMDateTimePeriod.isEmpty()) {
            for(DTMDateTimePeriod dTMDateTimePeriodInst : dTMDateTimePeriod) {
                nodeWriter.write("DTM");
                nodeWriter.write(delimiters.getField());
                dTMDateTimePeriodInst.write(nodeWriter, delimiters);
            }
        }
        if(nATNationality != null) {
            nodeWriter.write("NAT");
            nodeWriter.write(delimiters.getField());
            nATNationality.write(nodeWriter, delimiters);
        }
        if(aGRAgreementIdentification != null && !aGRAgreementIdentification.isEmpty()) {
            for(AGRAgreementIdentification aGRAgreementIdentificationInst : aGRAgreementIdentification) {
                nodeWriter.write("AGR");
                nodeWriter.write(delimiters.getField());
                aGRAgreementIdentificationInst.write(nodeWriter, delimiters);
            }
        }
        if(cCICharacteristicClassId != null && !cCICharacteristicClassId.isEmpty()) {
            for(CCICharacteristicClassId cCICharacteristicClassIdInst : cCICharacteristicClassId) {
                nodeWriter.write("CCI");
                nodeWriter.write(delimiters.getField());
                cCICharacteristicClassIdInst.write(nodeWriter, delimiters);
            }
        }
        if(sTSStatus != null) {
            nodeWriter.write("STS");
            nodeWriter.write(delimiters.getField());
            sTSStatus.write(nodeWriter, delimiters);
        }
        if(fTXFreeText != null && !fTXFreeText.isEmpty()) {
            for(FTXFreeText fTXFreeTextInst : fTXFreeText) {
                nodeWriter.write("FTX");
                nodeWriter.write(delimiters.getField());
                fTXFreeTextInst.write(nodeWriter, delimiters);
            }
        }
        if(lANLanguage != null) {
            nodeWriter.write("LAN");
            nodeWriter.write(delimiters.getField());
            lANLanguage.write(nodeWriter, delimiters);
        }
        if(cAVCharacteristicValue != null) {
            nodeWriter.write("CAV");
            nodeWriter.write(delimiters.getField());
            cAVCharacteristicValue.write(nodeWriter, delimiters);
        }
        if(segmentGroup4 != null && !segmentGroup4.isEmpty()) {
            for(SegmentGroup4 segmentGroup4Inst : segmentGroup4) {
                segmentGroup4Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup5 != null && !segmentGroup5.isEmpty()) {
            for(SegmentGroup5 segmentGroup5Inst : segmentGroup5) {
                segmentGroup5Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup6 != null && !segmentGroup6.isEmpty()) {
            for(SegmentGroup6 segmentGroup6Inst : segmentGroup6) {
                segmentGroup6Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup7 != null && !segmentGroup7.isEmpty()) {
            for(SegmentGroup7 segmentGroup7Inst : segmentGroup7) {
                segmentGroup7Inst.write(nodeWriter, delimiters);
            }
        }
    }

    public ATTAttribute getATTAttribute() {
        return aTTAttribute;
    }

    public SegmentGroup3 setATTAttribute(ATTAttribute aTTAttribute) {
        this.aTTAttribute = aTTAttribute;  return this;
    }

    public List getPNAPartyIdentification() {
        return pNAPartyIdentification;
    }

    public SegmentGroup3 setPNAPartyIdentification(List pNAPartyIdentification) {
        this.pNAPartyIdentification = pNAPartyIdentification;  return this;
    }

    public PDIPersonDemographicInformation getPDIPersonDemographicInformation() {
        return pDIPersonDemographicInformation;
    }

    public SegmentGroup3 setPDIPersonDemographicInformation(PDIPersonDemographicInformation pDIPersonDemographicInformation) {
        this.pDIPersonDemographicInformation = pDIPersonDemographicInformation;  return this;
    }

    public List getIDEIdentity() {
        return iDEIdentity;
    }

    public SegmentGroup3 setIDEIdentity(List iDEIdentity) {
        this.iDEIdentity = iDEIdentity;  return this;
    }

    public List getDTMDateTimePeriod() {
        return dTMDateTimePeriod;
    }

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

    public NATNationality getNATNationality() {
        return nATNationality;
    }

    public SegmentGroup3 setNATNationality(NATNationality nATNationality) {
        this.nATNationality = nATNationality;  return this;
    }

    public List getAGRAgreementIdentification() {
        return aGRAgreementIdentification;
    }

    public SegmentGroup3 setAGRAgreementIdentification(List aGRAgreementIdentification) {
        this.aGRAgreementIdentification = aGRAgreementIdentification;  return this;
    }

    public List getCCICharacteristicClassId() {
        return cCICharacteristicClassId;
    }

    public SegmentGroup3 setCCICharacteristicClassId(List cCICharacteristicClassId) {
        this.cCICharacteristicClassId = cCICharacteristicClassId;  return this;
    }

    public STSStatus getSTSStatus() {
        return sTSStatus;
    }

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

    public List getFTXFreeText() {
        return fTXFreeText;
    }

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

    public LANLanguage getLANLanguage() {
        return lANLanguage;
    }

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

    public CAVCharacteristicValue getCAVCharacteristicValue() {
        return cAVCharacteristicValue;
    }

    public SegmentGroup3 setCAVCharacteristicValue(CAVCharacteristicValue cAVCharacteristicValue) {
        this.cAVCharacteristicValue = cAVCharacteristicValue;  return this;
    }

    public List getSegmentGroup4() {
        return segmentGroup4;
    }

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

    public List getSegmentGroup5() {
        return segmentGroup5;
    }

    public SegmentGroup3 setSegmentGroup5(List segmentGroup5) {
        this.segmentGroup5 = segmentGroup5;  return this;
    }

    public List getSegmentGroup6() {
        return segmentGroup6;
    }

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

    public List getSegmentGroup7() {
        return segmentGroup7;
    }

    public SegmentGroup3 setSegmentGroup7(List segmentGroup7) {
        this.segmentGroup7 = segmentGroup7;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy