/*
 * Created on Aug 25, 2005
 *
 * TODO To change the template for this generated file go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
package gov.va.med.esr.common.ui.form;

import gov.va.med.fw.util.StringUtils;
//import org.apache.commons.lang.StringUtils;
import java.io.Serializable;

/**
 * RelationFinancialInfoBean
 * Created Sep 8, 2006 3:49:06 PM
 * @author DNS   MANSOG
 */
public class RelationFinancialInfoBean implements Serializable {
    private static final long serialVersionUID = -7241880797481118231L;

    private String identifier;
	private String financialsId;
	private String name;
	private String firstName = "";
	private String middleName;
	private String lastName = "";
	private String displayName;
	private String displaySSN;
	private String suffix;
	private String prefix;
    private String genderCode;
    private String gender;
    private String relationshipCode;
    private String relationship;
	private String ssn;
	private String pseudoSsn;
	private String pseudoSsnReason;
	private String dateOfBirth;
	private String livedWithVeteran;

    private String effectiveDate;
    private String effectiveDateStatus;
    private String validDependent;
    private String inactiveDate;
    private boolean isActive;
    private String contributedToSupport;

    private String ssnSourceOfChange;
	private String ssaVerificationStatus;
	private String ssaVerificationDate;
	private String ssaMessage;

	private String dependencyFactors;

	private String totalEmploymentIncome;
	private String netIncomeFromFarmRanchOrBusiness;
	private String otherIncome;
	private String educationExpense;
	private String cashAndBankAccountAsset;
	private String realPropertyAsset;
	private String otherPropertyAsset;
	private String stocksAsset;
    private String USCivilServiceIncome;
    private String interestDividentAnuityIncome;
    private String unemploymentIncome;
    private String socialSecurityIncome;
    private String militaryRetirementIncome;
    private String railroadRetirementIncome;
    private String otherRetirementIncome;
    private String workersCompIncome;
    
    private String contributedToSpouseInd;

	public RelationFinancialInfoBean()
	{
    	super();
	}

	/**
	 * @return Returns the cashAndBankAccountAsset.
	 */
	public String getCashAndBankAccountAsset() {
		return cashAndBankAccountAsset;
	}
	/**
	 * @param cashAndBankAccountAsset The cashAndBankAccountAsset to set.
	 */
	public void setCashAndBankAccountAsset(String cashAndBankAccountAsset) {
		this.cashAndBankAccountAsset = org.apache.commons.lang.StringUtils.stripToNull(cashAndBankAccountAsset);
	}
	/**
	 * @return Returns the contributedToSupport.
	 */
	public String getContributedToSupport() {
		return contributedToSupport;
	}
	/**
	 * @return Returns the interestDividentAnuityIncome.
	 */
	public String getInterestDividentAnuityIncome() {
		return interestDividentAnuityIncome;
	}
	/**
	 * @param interestDividentAnuityIncome The interestDividentAnuityIncome to set.
	 */
	public void setInterestDividentAnuityIncome(
			String interestDividentAnuityIncome) {
		this.interestDividentAnuityIncome = interestDividentAnuityIncome;
	}
	/**
	 * @return Returns the militaryRetirementIncome.
	 */
	public String getMilitaryRetirementIncome() {
		return militaryRetirementIncome;
	}
	/**
	 * @param militaryRetirementIncome The militaryRetirementIncome to set.
	 */
	public void setMilitaryRetirementIncome(String militaryRetirementIncome) {
		this.militaryRetirementIncome = org.apache.commons.lang.StringUtils.stripToNull(militaryRetirementIncome);
	}
	/**
	 * @return Returns the otherRetirementIncome.
	 */
	public String getOtherRetirementIncome() {
		return otherRetirementIncome;
	}
	/**
	 * @param otherRetirementIncome The otherRetirementIncome to set.
	 */
	public void setOtherRetirementIncome(String otherRetirementIncome) {
		this.otherRetirementIncome = org.apache.commons.lang.StringUtils.stripToNull(otherRetirementIncome);
	}
	/**
	 * @return Returns the railroadRetirementIncome.
	 */
	public String getRailroadRetirementIncome() {
		return railroadRetirementIncome;
	}
	/**
	 * @param railroadRetirementIncome The railroadRetirementIncome to set.
	 */
	public void setRailroadRetirementIncome(String railroadRetirementIncome) {
		this.railroadRetirementIncome = org.apache.commons.lang.StringUtils.stripToNull(railroadRetirementIncome);
	}
	/**
	 * @return Returns the socialSecurityIncome.
	 */
	public String getSocialSecurityIncome() {
		return socialSecurityIncome;
	}
	/**
	 * @param socialSecurityIncome The socialSecurityIncome to set.
	 */
	public void setSocialSecurityIncome(String socialSecurityIncome) {
		this.socialSecurityIncome = org.apache.commons.lang.StringUtils.stripToNull(socialSecurityIncome);
	}
	/**
	 * @return Returns the unemploymentIncome.
	 */
	public String getUnemploymentIncome() {
		return unemploymentIncome;
	}
	/**
	 * @param unemploymentIncome The unemploymentIncome to set.
	 */
	public void setUnemploymentIncome(String unemploymentIncome) {
		this.unemploymentIncome = org.apache.commons.lang.StringUtils.stripToNull(unemploymentIncome);
	}
	/**
	 * @return Returns the uSCivilServiceIncome.
	 */
	public String getUSCivilServiceIncome() {
		return USCivilServiceIncome;
	}
	/**
	 * @param civilServiceIncome The uSCivilServiceIncome to set.
	 */
	public void setUSCivilServiceIncome(String civilServiceIncome) {
		USCivilServiceIncome = org.apache.commons.lang.StringUtils.stripToNull(civilServiceIncome);
	}
	/**
	 * @return Returns the workersCompIncome.
	 */
	public String getWorkersCompIncome() {
		return workersCompIncome;
	}
	/**
	 * @param workersCompIncome The workersCompIncome to set.
	 */
	public void setWorkersCompIncome(String workersCompIncome) {
		this.workersCompIncome = org.apache.commons.lang.StringUtils.stripToNull(workersCompIncome);
	}
	/**
	 * @param contributedToSupport The contributedToSupport to set.
	 */
	public void setContributedToSupport(String contributedToSupport) {
		this.contributedToSupport = org.apache.commons.lang.StringUtils.stripToNull(contributedToSupport);
	}
	/**
	 * @return Returns the educationExpense.
	 */
	public String getEducationExpense() {
		return educationExpense;
	}
	/**
	 * @param educationExpense The educationExpense to set.
	 */
	public void setEducationExpense(String educationExpense) {
		this.educationExpense = org.apache.commons.lang.StringUtils.stripToNull(educationExpense);
	}

    /**
     * @return Returns the effectiveDate.
     */
    public String getEffectiveDate() {
        return effectiveDate;
    }

    /**
     * @param effectiveDate The effectiveDate to set.
     */
    public void setEffectiveDate(String effectiveDate) {
        this.effectiveDate = org.apache.commons.lang.StringUtils.stripToNull(effectiveDate);
    }

	/**
	 * @return Returns the effectiveDateStatus.
	 */
	public String getEffectiveDateStatus() {
		return effectiveDateStatus;
	}
	/**
	 * @param effectiveDateStatus The effectiveDateStatus to set.
	 */
	public void setEffectiveDateStatus(String effectiveDateStatus) {
		this.effectiveDateStatus = effectiveDateStatus;
	}
	/**
	 * @return Returns the inactiveDate.
	 */
	public String getInactiveDate() {
		return inactiveDate;
	}
	/**
	 * @param inactiveDate The inactiveDate to set.
	 */
	public void setInactiveDate(String inactiveDate) {
		this.inactiveDate = org.apache.commons.lang.StringUtils.stripToNull(inactiveDate);
	}

    public boolean isActive() {
        return isActive;
    }

    public void setActive(boolean isActive) {
        this.isActive = isActive;
    }

	/**
	 * @return Returns the livedWithVeteran.
	 */
	public String getLivedWithVeteran() {
		return livedWithVeteran;
	}
	/**
	 * @param livedWithVeteran The livedWithVeteran to set.
	 */
	public void setLivedWithVeteran(String livedWithVeteran) {
		this.livedWithVeteran = livedWithVeteran;
	}

	/**
	 * @return Returns the name.
	 */
	public String getName() {
		if(name == null)
		{
			StringBuffer tname = new StringBuffer("");
			if (StringUtils.isNotEmpty(this.firstName)) {
				tname.append(this.firstName);
				tname.append(" ");
			}
			if (StringUtils.isNotEmpty(this.lastName)) {
				tname.append(this.lastName);
			}

			name = tname.toString();
		}
		return name;
	}
	/**
	 * @param name The name to set.
	 */
	public void setName(String name) {
		this.name = org.apache.commons.lang.StringUtils.stripToNull(name);
	}
	/**
	 * @return Returns the netIncomeFromFarmRanchOrBusiness.
	 */
	public String getNetIncomeFromFarmRanchOrBusiness() {
		return netIncomeFromFarmRanchOrBusiness;
	}
	/**
	 * @param netIncomeFromFarmRanchOrBusiness The netIncomeFromFarmRanchOrBusiness to set.
	 */
	public void setNetIncomeFromFarmRanchOrBusiness(
			String netIncomeFromFarmRanchOrBusiness) {
		this.netIncomeFromFarmRanchOrBusiness = org.apache.commons.lang.StringUtils.stripToNull(netIncomeFromFarmRanchOrBusiness);
	}
	/**
	 * @return Returns the otherIncome.
	 */
	public String getOtherIncome() {
		return otherIncome;
	}
	/**
	 * @param otherIncome The otherIncome to set.
	 */
	public void setOtherIncome(String otherIncome) {
		this.otherIncome = org.apache.commons.lang.StringUtils.stripToNull(otherIncome);
	}
	/**
	 * @return Returns the otherPropertyAsset.
	 */
	public String getOtherPropertyAsset() {
		return otherPropertyAsset;
	}
	/**
	 * @param otherPropertyAsset The otherPropertyAsset to set.
	 */
	public void setOtherPropertyAsset(String otherPropertyAsset) {
		this.otherPropertyAsset = org.apache.commons.lang.StringUtils.stripToNull(otherPropertyAsset);
	}
	/**
	 * @return Returns the realPropertyAsset.
	 */
	public String getRealPropertyAsset() {
		return realPropertyAsset;
	}
	/**
	 * @param realPropertyAsset The realPropertyAsset to set.
	 */
	public void setRealPropertyAsset(String realPropertyAsset) {
		this.realPropertyAsset = org.apache.commons.lang.StringUtils.stripToNull(realPropertyAsset);
	}
    /**
     * @return Returns the relationshipCode.
     */
    public String getRelationshipCode() {
        return relationshipCode;
    }
    /**
     * @param relationshipCode The relationshipCode to set.
     */
    public void setRelationshipCode(String relationshipCode) {
        this.relationshipCode = relationshipCode;
    }

    /**
	 * @return Returns the relationship.
	 */
	public String getRelationship() {
		return relationship;
	}
	/**
	 * @param relationship The relationship to set.
	 */
	public void setRelationship(String relationship) {
		this.relationship = relationship;
	}
	/**
	 * @return Returns the ssn.
	 */
	public String getSsn() {
		return ssn;
	}
	/**
	 * @param ssn The ssn to set.
	 */
	public void setSsn(String ssn) {
		this.ssn = ssn;
	}
	/**
	 * @return Returns the totalIncome.
	 */
	public String getTotalEmploymentIncome() {
		return totalEmploymentIncome;
	}
	/**
	 * @param totalIncome The totalIncome to set.
	 */
	public void setTotalEmploymentIncome(String totalIncome) {
		this.totalEmploymentIncome = org.apache.commons.lang.StringUtils.stripToNull(totalIncome);
	}
	/**
	 * @return Returns the validDependent.
	 */
	public String getValidDependent() {
		return validDependent;
	}
	/**
	 * @param validDependent The validDependent to set.
	 */
	public void setValidDependent(String validDependent) {
		this.validDependent = validDependent;
	}
	/**
	 * @return Returns the dateOfBirth.
	 */
	public String getDateOfBirth() {
		return dateOfBirth;
	}
	/**
	 * @param dateOfBirth The dateOfBirth to set.
	 */
	public void setDateOfBirth(String dateOfBirth) {
		this.dateOfBirth = org.apache.commons.lang.StringUtils.stripToNull(dateOfBirth);
	}
	/**
	 * @return Returns the firstName.
	 */
	public String getFirstName() {
		return firstName;
	}
	/**
	 * @param firstName The firstName to set.
	 */
	public void setFirstName(String firstName) {
		this.firstName = org.apache.commons.lang.StringUtils.stripToNull(firstName);
	}
	/**
	 * @return Returns the gender.
	 */
	public String getGender() {
		return gender;
	}
	/**
	 * @param gender The gender to set.
	 */
	public void setGender(String gender) {
		this.gender = org.apache.commons.lang.StringUtils.stripToNull(gender);
	}
    /**
     * @return Returns the genderCode.
     */
    public String getGenderCode() {
        return genderCode;
    }
    /**
     * @param genderCode The genderCode to set.
     */
    public void setGenderCode(String genderCode) {
        this.genderCode = genderCode;
    }
    /**
	 * @return Returns the lastName.
	 */
	public String getLastName() {
		return lastName;
	}
	/**
	 * @param lastName The lastName to set.
	 */
	public void setLastName(String lastName) {
		this.lastName = org.apache.commons.lang.StringUtils.stripToNull(lastName);
	}
	/**
	 * @return Returns the middleName.
	 */
	public String getMiddleName() {
		return middleName;
	}
	/**
	 * @param middleName The middleName to set.
	 */
	public void setMiddleName(String middleName) {
		this.middleName = org.apache.commons.lang.StringUtils.stripToNull(middleName);
	}
	/**
	 * @return Returns the prefix.
	 */
	public String getPrefix() {
		return prefix;
	}
	/**
	 * @param prefix The prefix to set.
	 */
	public void setPrefix(String prefix) {
		this.prefix = org.apache.commons.lang.StringUtils.stripToNull(prefix);
	}
	/**
	 * @return Returns the pseudoSsn.
	 */
	public String getPseudoSsn() {
		return pseudoSsn;
	}
	/**
	 * @param pseudoSsn The pseudoSsn to set.
	 */
	public void setPseudoSsn(String pseudoSsn) {
		this.pseudoSsn = org.apache.commons.lang.StringUtils.stripToNull(pseudoSsn);
	}
	/**
	 * @return Returns the ssaMessage.
	 */
	public String getSsaMessage() {
		return ssaMessage;
	}
	/**
	 * @param ssaMessage The ssaMessage to set.
	 */
	public void setSsaMessage(String ssaMessage) {
		this.ssaMessage = ssaMessage;
	}
	/**
	 * @return Returns the ssaVerificationDate.
	 */
	public String getSsaVerificationDate() {
		return ssaVerificationDate;
	}
	/**
	 * @param ssaVerificationDate The ssaVerificationDate to set.
	 */
	public void setSsaVerificationDate(String ssaVerificationDate) {
		this.ssaVerificationDate = org.apache.commons.lang.StringUtils.stripToNull(ssaVerificationDate);
	}
	/**
	 * @return Returns the ssaVerificationStatus.
	 */
	public String getSsaVerificationStatus() {
		return ssaVerificationStatus;
	}
	/**
	 * @param ssaVerificationStatus The ssaVerificationStatus to set.
	 */
	public void setSsaVerificationStatus(String ssaVerificationStatus) {
		this.ssaVerificationStatus = ssaVerificationStatus;
	}
	/**
	 * @return Returns the ssnSourceOfChange.
	 */
	public String getSsnSourceOfChange() {
		return ssnSourceOfChange;
	}
	/**
	 * @param ssnSourceOfChange The ssnSourceOfChange to set.
	 */
	public void setSsnSourceOfChange(String ssnSourceOfChange) {
		this.ssnSourceOfChange = ssnSourceOfChange;
	}
	/**
	 * @return Returns the suffix.
	 */
	public String getSuffix() {
		return suffix;
	}
	/**
	 * @param suffix The suffix to set.
	 */
	public void setSuffix(String suffix) {
		this.suffix = org.apache.commons.lang.StringUtils.stripToNull(suffix);
	}
	/**
	 * @return Returns the displayName.
	 */
	public String getDisplayName() {
		if(displayName == null)
		{
			StringBuffer tname = new StringBuffer(getName());
			tname.append(" (Spouse)");
			displayName = tname.toString();
		}
		return displayName;
	}
	/**
	 * @param displayName The displayName to set.
	 */
	public void setDisplayName(String displayName) {
		this.displayName = org.apache.commons.lang.StringUtils.stripToNull(displayName);
	}
	/**
	 * @return Returns the identifier.
	 */
	public String getIdentifier() {
		return identifier;
	}
	/**
	 * @param identifier The identifier to set.
	 */
	public void setIdentifier(String identifier) {
		this.identifier = org.apache.commons.lang.StringUtils.stripToNull(identifier);
	}
	/**
	 * @return Returns the financialsId.
	 */
	public String getFinancialsId() {
		return financialsId;
	}
	/**
	 * @param financialsId The financialsId to set.
	 */
	public void setFinancialsId(String financialsId) {
		this.financialsId = financialsId;
	}
	/**
	 * @return Returns the pseudoSsnReason.
	 */
	public String getPseudoSsnReason() {
		return pseudoSsnReason;
	}
	/**
	 * @param pseudoSsnReason The pseudoSsnReason to set.
	 */
	public void setPseudoSsnReason(String pseudoSsnReason) {
		this.pseudoSsnReason = pseudoSsnReason;
	}
	/**
	 * @return Returns the dependencyFactors.
	 */
	public String getDependencyFactors() {
		return dependencyFactors;
	}
	/**
	 * @param dependencyFactors The dependencyFactors to set.
	 */
	public void setDependencyFactors(String dependencyFactors) {
		this.dependencyFactors = dependencyFactors;
	}
	/**
	 * @return Returns the displaySSN.
	 */
	public String getDisplaySSN() {
		return displaySSN;
	}
	/**
	 * @param displaySSN The displaySSN to set.
	 */
	public void setDisplaySSN(String displaySSN) {
		this.displaySSN = displaySSN;
	}
	/**
	 * @return Returns the stocksAsset.
	 */
	public String getStocksAsset() {
		return stocksAsset;
	}
	/**
	 * @param stocksAsset The stocksAsset to set.
	 */
	public void setStocksAsset(String stocksAsset) {
		this.stocksAsset = org.apache.commons.lang.StringUtils.stripToNull(stocksAsset);
	}

	
	 /**
     * @return the contributedToSpouseInd
     */
    public String getContributedToSpouseInd() {
        return contributedToSpouseInd;
    }

    /**
     * @param contributedToSpouseInd the contributedToSpouseInd to set
     */
    public void setContributedToSpouseInd(String contributedToSpouseInd) {
        this.contributedToSpouseInd = contributedToSpouseInd;
    }
   
	
    public boolean isAnyNameFieldFilled()
    {
        if (StringUtils.isNotEmpty(getPrefix()) || StringUtils.isNotEmpty(getLastName()) ||
            StringUtils.isNotEmpty(getFirstName()) || StringUtils.isNotEmpty(getMiddleName()) ||
            StringUtils.isNotEmpty(getSuffix()))
        {
            return true;
        }
        else
        {
            return false;
        }
    }

   

    

}