/**
 * Capability.java
 *
 * This file was auto-generated from WSDL
 * by the Apache Axis 1.2alpha Dec 01, 2003 (04:33:24 EST) WSDL2Java emitter.
 */

package com.bah.jroc.ws.to;

public class Capability  implements java.io.Serializable {
    private java.lang.String controlNum;
    private java.lang.String title;
    private java.lang.String description;
    private java.lang.String capabilityNum;
    private java.util.Calendar dataCreatedDate;
    private com.bah.jroc.ws.to.Person poc;

    public Capability() {
    }


    /**
     * Gets the controlNum value for this Capability.
     * 
     * @return controlNum 
     */
    public java.lang.String getControlNum() {
        return controlNum;
    }


    /**
     * Sets the controlNum value for this Capability.
     * 
     * @param controlNum 
     */
    public void setControlNum(java.lang.String controlNum) {
        this.controlNum = controlNum;
    }


    /**
     * Gets the title value for this Capability.
     * 
     * @return title 
     */
    public java.lang.String getTitle() {
        return title;
    }


    /**
     * Sets the title value for this Capability.
     * 
     * @param title 
     */
    public void setTitle(java.lang.String title) {
        this.title = title;
    }


    /**
     * Gets the description value for this Capability.
     * 
     * @return description 
     */
    public java.lang.String getDescription() {
        return description;
    }


    /**
     * Sets the description value for this Capability.
     * 
     * @param description 
     */
    public void setDescription(java.lang.String description) {
        this.description = description;
    }


    /**
     * Gets the capabilityNum value for this Capability.
     * 
     * @return capabilityNum 
     */
    public java.lang.String getCapabilityNum() {
        return capabilityNum;
    }


    /**
     * Sets the capabilityNum value for this Capability.
     * 
     * @param capabilityNum 
     */
    public void setCapabilityNum(java.lang.String capabilityNum) {
        this.capabilityNum = capabilityNum;
    }


    /**
     * Gets the dataCreatedDate value for this Capability.
     * 
     * @return dataCreatedDate 
     */
    public java.util.Calendar getDataCreatedDate() {
        return dataCreatedDate;
    }


    /**
     * Sets the dataCreatedDate value for this Capability.
     * 
     * @param dataCreatedDate 
     */
    public void setDataCreatedDate(java.util.Calendar dataCreatedDate) {
        this.dataCreatedDate = dataCreatedDate;
    }


    /**
     * Gets the poc value for this Capability.
     * 
     * @return poc 
     */
    public com.bah.jroc.ws.to.Person getPoc() {
        return poc;
    }


    /**
     * Sets the poc value for this Capability.
     * 
     * @param poc 
     */
    public void setPoc(com.bah.jroc.ws.to.Person poc) {
        this.poc = poc;
    }

    private java.lang.Object __equalsCalc = null;
    public synchronized boolean equals(java.lang.Object obj) {
        if (!(obj instanceof Capability)) return false;
        Capability other = (Capability) obj;
        if (obj == null) return false;
        if (this == obj) return true;
        if (__equalsCalc != null) {
            return (__equalsCalc == obj);
        }
        __equalsCalc = obj;
        boolean _equals;
        _equals = true && 
            ((this.controlNum==null && other.getControlNum()==null) || 
             (this.controlNum!=null &&
              this.controlNum.equals(other.getControlNum()))) &&
            ((this.title==null && other.getTitle()==null) || 
             (this.title!=null &&
              this.title.equals(other.getTitle()))) &&
            ((this.description==null && other.getDescription()==null) || 
             (this.description!=null &&
              this.description.equals(other.getDescription()))) &&
            ((this.capabilityNum==null && other.getCapabilityNum()==null) || 
             (this.capabilityNum!=null &&
              this.capabilityNum.equals(other.getCapabilityNum()))) &&
            ((this.dataCreatedDate==null && other.getDataCreatedDate()==null) || 
             (this.dataCreatedDate!=null &&
              this.dataCreatedDate.equals(other.getDataCreatedDate()))) &&
            ((this.poc==null && other.getPoc()==null) || 
             (this.poc!=null &&
              this.poc.equals(other.getPoc())));
        __equalsCalc = null;
        return _equals;
    }

    private boolean __hashCodeCalc = false;
    public synchronized int hashCode() {
        if (__hashCodeCalc) {
            return 0;
        }
        __hashCodeCalc = true;
        int _hashCode = 1;
        if (getControlNum() != null) {
            _hashCode += getControlNum().hashCode();
        }
        if (getTitle() != null) {
            _hashCode += getTitle().hashCode();
        }
        if (getDescription() != null) {
            _hashCode += getDescription().hashCode();
        }
        if (getCapabilityNum() != null) {
            _hashCode += getCapabilityNum().hashCode();
        }
        if (getDataCreatedDate() != null) {
            _hashCode += getDataCreatedDate().hashCode();
        }
        if (getPoc() != null) {
            _hashCode += getPoc().hashCode();
        }
        __hashCodeCalc = false;
        return _hashCode;
    }

    // Type metadata
    private static org.apache.axis.description.TypeDesc typeDesc =
        new org.apache.axis.description.TypeDesc(Capability.class, true);

    static {
        typeDesc.setXmlType(new javax.xml.namespace.QName("urn:jroc:services:0:1:schema:CapabilityService", "Capability"));
        org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("controlNum");
        elemField.setXmlName(new javax.xml.namespace.QName("", "controlNum"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
        typeDesc.addFieldDesc(elemField);
        elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("title");
        elemField.setXmlName(new javax.xml.namespace.QName("", "title"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
        typeDesc.addFieldDesc(elemField);
        elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("description");
        elemField.setXmlName(new javax.xml.namespace.QName("", "description"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
        typeDesc.addFieldDesc(elemField);
        elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("capabilityNum");
        elemField.setXmlName(new javax.xml.namespace.QName("", "capabilityNum"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
        typeDesc.addFieldDesc(elemField);
        elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("dataCreatedDate");
        elemField.setXmlName(new javax.xml.namespace.QName("", "dataCreatedDate"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"));
        typeDesc.addFieldDesc(elemField);
        elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("poc");
        elemField.setXmlName(new javax.xml.namespace.QName("", "poc"));
        elemField.setXmlType(new javax.xml.namespace.QName("urn:jroc:services:0:1:schema:CapabilityService", "Person"));
        typeDesc.addFieldDesc(elemField);
    }

    /**
     * Return type metadata object
     */
    public static org.apache.axis.description.TypeDesc getTypeDesc() {
        return typeDesc;
    }

    /**
     * Get Custom Serializer
     */
    public static org.apache.axis.encoding.Serializer getSerializer(
           java.lang.String mechType, 
           java.lang.Class _javaType,  
           javax.xml.namespace.QName _xmlType) {
        return 
          new  org.apache.axis.encoding.ser.BeanSerializer(
            _javaType, _xmlType, typeDesc);
    }

    /**
     * Get Custom Deserializer
     */
    public static org.apache.axis.encoding.Deserializer getDeserializer(
           java.lang.String mechType, 
           java.lang.Class _javaType,  
           javax.xml.namespace.QName _xmlType) {
        return 
          new  org.apache.axis.encoding.ser.BeanDeserializer(
            _javaType, _xmlType, typeDesc);
    }

}
