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

org.milyn.edi.unedifact.d05a.DEBREC.SegmentGroup9 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.d05a.DEBREC;

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.edi.unedifact.d05a.common.PartyIdentification;    
import java.util.List;    
import org.milyn.edi.unedifact.d05a.common.Reference;    
import org.milyn.edi.unedifact.d05a.common.Attribute;    
import org.milyn.edi.unedifact.d05a.common.EmploymentDetails;    
import org.milyn.edi.unedifact.d05a.common.PersonDemographicInformation;    
import org.milyn.edi.unedifact.d05a.common.FinancialInstitutionInformation;    
import org.milyn.edi.unedifact.d05a.common.DateTimePeriod;    
import org.milyn.edi.unedifact.d05a.common.MonetaryAmount;    
import org.milyn.edi.unedifact.d05a.common.Quantity;    
import org.milyn.edi.unedifact.d05a.common.PercentageDetails;    
import org.milyn.edi.unedifact.d05a.common.CommunicationContact;    
import java.io.Writer;    
import org.milyn.edisax.model.internal.Delimiters;    
import java.io.IOException;    

public class SegmentGroup9 implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private PartyIdentification partyIdentification;
    private List reference;
    private List attribute;
    private EmploymentDetails employmentDetails;
    private PersonDemographicInformation personDemographicInformation;
    private List financialInstitutionInformation;
    private List dateTimePeriod;
    private List monetaryAmount;
    private List quantity;
    private PercentageDetails percentageDetails;
    private CommunicationContact communicationContact;
    private List segmentGroup10;
    private List segmentGroup12;
    private SegmentGroup14 segmentGroup14;

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

        if(partyIdentification != null) {
            nodeWriter.write("PNA");
            nodeWriter.write(delimiters.getField());
            partyIdentification.write(nodeWriter, delimiters);
        }
        if(reference != null && !reference.isEmpty()) {
            for(Reference referenceInst : reference) {
                nodeWriter.write("RFF");
                nodeWriter.write(delimiters.getField());
                referenceInst.write(nodeWriter, delimiters);
            }
        }
        if(attribute != null && !attribute.isEmpty()) {
            for(Attribute attributeInst : attribute) {
                nodeWriter.write("ATT");
                nodeWriter.write(delimiters.getField());
                attributeInst.write(nodeWriter, delimiters);
            }
        }
        if(employmentDetails != null) {
            nodeWriter.write("EMP");
            nodeWriter.write(delimiters.getField());
            employmentDetails.write(nodeWriter, delimiters);
        }
        if(personDemographicInformation != null) {
            nodeWriter.write("PDI");
            nodeWriter.write(delimiters.getField());
            personDemographicInformation.write(nodeWriter, delimiters);
        }
        if(financialInstitutionInformation != null && !financialInstitutionInformation.isEmpty()) {
            for(FinancialInstitutionInformation financialInstitutionInformationInst : financialInstitutionInformation) {
                nodeWriter.write("FII");
                nodeWriter.write(delimiters.getField());
                financialInstitutionInformationInst.write(nodeWriter, delimiters);
            }
        }
        if(dateTimePeriod != null && !dateTimePeriod.isEmpty()) {
            for(DateTimePeriod dateTimePeriodInst : dateTimePeriod) {
                nodeWriter.write("DTM");
                nodeWriter.write(delimiters.getField());
                dateTimePeriodInst.write(nodeWriter, delimiters);
            }
        }
        if(monetaryAmount != null && !monetaryAmount.isEmpty()) {
            for(MonetaryAmount monetaryAmountInst : monetaryAmount) {
                nodeWriter.write("MOA");
                nodeWriter.write(delimiters.getField());
                monetaryAmountInst.write(nodeWriter, delimiters);
            }
        }
        if(quantity != null && !quantity.isEmpty()) {
            for(Quantity quantityInst : quantity) {
                nodeWriter.write("QTY");
                nodeWriter.write(delimiters.getField());
                quantityInst.write(nodeWriter, delimiters);
            }
        }
        if(percentageDetails != null) {
            nodeWriter.write("PCD");
            nodeWriter.write(delimiters.getField());
            percentageDetails.write(nodeWriter, delimiters);
        }
        if(communicationContact != null) {
            nodeWriter.write("COM");
            nodeWriter.write(delimiters.getField());
            communicationContact.write(nodeWriter, delimiters);
        }
        if(segmentGroup10 != null && !segmentGroup10.isEmpty()) {
            for(SegmentGroup10 segmentGroup10Inst : segmentGroup10) {
                segmentGroup10Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup12 != null && !segmentGroup12.isEmpty()) {
            for(SegmentGroup12 segmentGroup12Inst : segmentGroup12) {
                segmentGroup12Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup14 != null) {
            segmentGroup14.write(nodeWriter, delimiters);
        }
    }

    public PartyIdentification getPartyIdentification() {
        return partyIdentification;
    }

    public SegmentGroup9 setPartyIdentification(PartyIdentification partyIdentification) {
        this.partyIdentification = partyIdentification;  return this;
    }

    public List getReference() {
        return reference;
    }

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

    public List getAttribute() {
        return attribute;
    }

    public SegmentGroup9 setAttribute(List attribute) {
        this.attribute = attribute;  return this;
    }

    public EmploymentDetails getEmploymentDetails() {
        return employmentDetails;
    }

    public SegmentGroup9 setEmploymentDetails(EmploymentDetails employmentDetails) {
        this.employmentDetails = employmentDetails;  return this;
    }

    public PersonDemographicInformation getPersonDemographicInformation() {
        return personDemographicInformation;
    }

    public SegmentGroup9 setPersonDemographicInformation(PersonDemographicInformation personDemographicInformation) {
        this.personDemographicInformation = personDemographicInformation;  return this;
    }

    public List getFinancialInstitutionInformation() {
        return financialInstitutionInformation;
    }

    public SegmentGroup9 setFinancialInstitutionInformation(List financialInstitutionInformation) {
        this.financialInstitutionInformation = financialInstitutionInformation;  return this;
    }

    public List getDateTimePeriod() {
        return dateTimePeriod;
    }

    public SegmentGroup9 setDateTimePeriod(List dateTimePeriod) {
        this.dateTimePeriod = dateTimePeriod;  return this;
    }

    public List getMonetaryAmount() {
        return monetaryAmount;
    }

    public SegmentGroup9 setMonetaryAmount(List monetaryAmount) {
        this.monetaryAmount = monetaryAmount;  return this;
    }

    public List getQuantity() {
        return quantity;
    }

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

    public PercentageDetails getPercentageDetails() {
        return percentageDetails;
    }

    public SegmentGroup9 setPercentageDetails(PercentageDetails percentageDetails) {
        this.percentageDetails = percentageDetails;  return this;
    }

    public CommunicationContact getCommunicationContact() {
        return communicationContact;
    }

    public SegmentGroup9 setCommunicationContact(CommunicationContact communicationContact) {
        this.communicationContact = communicationContact;  return this;
    }

    public List getSegmentGroup10() {
        return segmentGroup10;
    }

    public SegmentGroup9 setSegmentGroup10(List segmentGroup10) {
        this.segmentGroup10 = segmentGroup10;  return this;
    }

    public List getSegmentGroup12() {
        return segmentGroup12;
    }

    public SegmentGroup9 setSegmentGroup12(List segmentGroup12) {
        this.segmentGroup12 = segmentGroup12;  return this;
    }

    public SegmentGroup14 getSegmentGroup14() {
        return segmentGroup14;
    }

    public SegmentGroup9 setSegmentGroup14(SegmentGroup14 segmentGroup14) {
        this.segmentGroup14 = segmentGroup14;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy