/********************************************************************
 * Copyright © 2005 VHA. All rights reserved
 ********************************************************************/


package gov.va.med.esr.service.external.demographics;

import gov.va.med.esr.service.external.ExternalComponent;

/**
 * Initial javadoc for class DemographicsChangeType.
 * TODO - Add content here
 * 
 * Created Dec 23, 2005 10:55:04 AM
 * @author DNS   BOHMEG
 */
public class DemographicsChangeType extends ExternalComponent {
	/**
	 * 
	 */
	private static final long serialVersionUID = -5712459260300333852L;
	public static final DemographicsChangeType ADDRESS_CHANGE = 
		new DemographicsChangeType("ADDRESS_CHANGE");
	public static final DemographicsChangeType DATE_OF_DEATH_CHANGE = 
		new DemographicsChangeType("DATE_OF_DEATH_CHANGE");
	public static final DemographicsChangeType DATE_OF_DEATH_ADD = 
		new DemographicsChangeType("DATE_OF_DEATH_ADD");	
	public static final DemographicsChangeType GUARDIAN_INFO_CHANGE = 
		new DemographicsChangeType("GUARDIAN_INFO_CHANGE");
	public static final DemographicsChangeType PHONE_CHANGE = 
		new DemographicsChangeType("PHONE_CHANGE");
	public static final DemographicsChangeType EMAIL_CHANGE = 
		new DemographicsChangeType("EMAIL_CHANGE");
	public static final DemographicsChangeType PERSON_RELATION_SSN_VALIDATION_INFO_CHANGE = 
		new DemographicsChangeType("PERSON_RELATION_SSN_VALIDATION_INFO_CHANGE");
	public static final DemographicsChangeType OTHER_CHANGE = 
		new DemographicsChangeType("OTHER_CHANGE");
	
	private String code;
	
	private DemographicsChangeType(String code) {
		this.code = code;
	}		
	
	public boolean equals(Object o) {
		return (o instanceof DemographicsChangeType) && 
			((DemographicsChangeType) o).code.equals(code);
	}
	
	public int hashCode() {
		return code.hashCode();
	}
}
