Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Certificate.java This file was auto-generated from WSDL by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
  
  
  package org.nhind.config;
  
 public class Certificate  implements java.io.Serializable {
     private java.util.Calendar createTime;
 
     private byte[] data;
 
     private long id;
 
     private java.lang.String owner;
 
     private boolean privateKey;
 
     private org.nhind.config.EntityStatus status;
 
     private java.util.Calendar validEndDate;
 
     private java.util.Calendar validStartDate;
 
     public Certificate() {
     }
 
     public Certificate(
            java.util.Calendar createTime,
            byte[] data,
            long id,
            java.lang.String owner,
            boolean privateKey,
            org.nhind.config.EntityStatus status,
            java.util.Calendar validEndDate,
            java.util.Calendar validStartDate) {
            this. = createTime;
            this. = data;
            this. = id;
            this. = owner;
            this. = privateKey;
            this. = status;
            this. = validEndDate;
            this. = validStartDate;
     }


    
Gets the createTime value for this Certificate.

Returns:
createTime
 
     public java.util.Calendar getCreateTime() {
         return ;
     }


    
Sets the createTime value for this Certificate.

Parameters:
createTime
 
     public void setCreateTime(java.util.Calendar createTime) {
         this. = createTime;
     }


    
Gets the data value for this Certificate.

Returns:
data
 
     public byte[] getData() {
         return ;
     }


    
Sets the data value for this Certificate.

Parameters:
data
 
     public void setData(byte[] data) {
         this. = data;
     }


    
Gets the id value for this Certificate.

Returns:
id
 
     public long getId() {
         return ;
     }


    
Sets the id value for this Certificate.

Parameters:
id
    public void setId(long id) {
        this. = id;
    }


    
Gets the owner value for this Certificate.

Returns:
owner
    public java.lang.String getOwner() {
        return ;
    }


    
Sets the owner value for this Certificate.

Parameters:
owner
    public void setOwner(java.lang.String owner) {
        this. = owner;
    }


    
Gets the privateKey value for this Certificate.

Returns:
privateKey
    public boolean isPrivateKey() {
        return ;
    }


    
Sets the privateKey value for this Certificate.

Parameters:
privateKey
    public void setPrivateKey(boolean privateKey) {
        this. = privateKey;
    }


    
Gets the status value for this Certificate.

Returns:
status
    public org.nhind.config.EntityStatus getStatus() {
        return ;
    }


    
Sets the status value for this Certificate.

Parameters:
status
    public void setStatus(org.nhind.config.EntityStatus status) {
        this. = status;
    }


    
Gets the validEndDate value for this Certificate.

Returns:
validEndDate
    public java.util.Calendar getValidEndDate() {
        return ;
    }


    
Sets the validEndDate value for this Certificate.

Parameters:
validEndDate
    public void setValidEndDate(java.util.Calendar validEndDate) {
        this. = validEndDate;
    }


    
Gets the validStartDate value for this Certificate.

Returns:
validStartDate
    public java.util.Calendar getValidStartDate() {
        return ;
    }


    
Sets the validStartDate value for this Certificate.

Parameters:
validStartDate
    public void setValidStartDate(java.util.Calendar validStartDate) {
        this. = validStartDate;
    }
    private java.lang.Object __equalsCalc = null;
    public synchronized boolean equals(java.lang.Object obj) {
        if (!(obj instanceof Certificate)) return false;
        Certificate other = (Certificateobj;
        if (obj == nullreturn false;
        if (this == objreturn true;
        if ( != null) {
            return ( == obj);
        }
         = obj;
        boolean _equals;
        _equals = true && 
            ((this.==null && other.getCreateTime()==null) || 
             (this.!=null &&
              this..equals(other.getCreateTime()))) &&
            ((this.==null && other.getData()==null) || 
             (this.!=null &&
              java.util.Arrays.equals(this.other.getData()))) &&
            this. == other.getId() &&
            ((this.==null && other.getOwner()==null) || 
             (this.!=null &&
              this..equals(other.getOwner()))) &&
            this. == other.isPrivateKey() &&
            ((this.==null && other.getStatus()==null) || 
             (this.!=null &&
              this..equals(other.getStatus()))) &&
            ((this.==null && other.getValidEndDate()==null) || 
             (this.!=null &&
              this..equals(other.getValidEndDate()))) &&
            ((this.==null && other.getValidStartDate()==null) || 
             (this.!=null &&
              this..equals(other.getValidStartDate())));
         = null;
        return _equals;
    }
    private boolean __hashCodeCalc = false;
    public synchronized int hashCode() {
        if () {
            return 0;
        }
         = true;
        int _hashCode = 1;
        if (getCreateTime() != null) {
            _hashCode += getCreateTime().hashCode();
        }
        if (getData() != null) {
            for (int i=0;
                 i<java.lang.reflect.Array.getLength(getData());
                 i++) {
                java.lang.Object obj = java.lang.reflect.Array.get(getData(), i);
                if (obj != null &&
                    !obj.getClass().isArray()) {
                    _hashCode += obj.hashCode();
                }
            }
        }
        _hashCode += new Long(getId()).hashCode();
        if (getOwner() != null) {
            _hashCode += getOwner().hashCode();
        }
        _hashCode += (isPrivateKey() ? . : .).hashCode();
        if (getStatus() != null) {
            _hashCode += getStatus().hashCode();
        }
        if (getValidEndDate() != null) {
            _hashCode += getValidEndDate().hashCode();
        }
        if (getValidStartDate() != null) {
            _hashCode += getValidStartDate().hashCode();
        }
         = false;
        return _hashCode;
    }
    // Type metadata
    private static org.apache.axis.description.TypeDesc typeDesc =
        new org.apache.axis.description.TypeDesc(Certificate.classtrue);
    static {
        .setXmlType(new javax.xml.namespace.QName("http://nhind.org/config""certificate"));
        elemField.setFieldName("createTime");
        elemField.setXmlName(new javax.xml.namespace.QName("""createTime"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema""dateTime"));
        elemField.setMinOccurs(0);
        elemField.setNillable(false);
        .addFieldDesc(elemField);
        elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("data");
        elemField.setXmlName(new javax.xml.namespace.QName("""data"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema""base64Binary"));
        elemField.setMinOccurs(0);
        elemField.setNillable(false);
        .addFieldDesc(elemField);
        elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("id");
        elemField.setXmlName(new javax.xml.namespace.QName("""id"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema""long"));
        elemField.setNillable(false);
        .addFieldDesc(elemField);
        elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("owner");
        elemField.setXmlName(new javax.xml.namespace.QName("""owner"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema""string"));
        elemField.setMinOccurs(0);
        elemField.setNillable(false);
        .addFieldDesc(elemField);
        elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("privateKey");
        elemField.setXmlName(new javax.xml.namespace.QName("""privateKey"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema""boolean"));
        elemField.setNillable(false);
        .addFieldDesc(elemField);
        elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("status");
        elemField.setXmlName(new javax.xml.namespace.QName("""status"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://nhind.org/config""entityStatus"));
        elemField.setMinOccurs(0);
        elemField.setNillable(false);
        .addFieldDesc(elemField);
        elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("validEndDate");
        elemField.setXmlName(new javax.xml.namespace.QName("""validEndDate"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema""dateTime"));
        elemField.setMinOccurs(0);
        elemField.setNillable(false);
        .addFieldDesc(elemField);
        elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("validStartDate");
        elemField.setXmlName(new javax.xml.namespace.QName("""validStartDate"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema""dateTime"));
        elemField.setMinOccurs(0);
        elemField.setNillable(false);
        .addFieldDesc(elemField);
    }

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

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

    
Get Custom Deserializer
           java.lang.String mechType
           java.lang.Class _javaType,  
           javax.xml.namespace.QName _xmlType) {
        return 
          new  org.apache.axis.encoding.ser.BeanDeserializer(
            _javaType_xmlType);
    }
New to GrepCode? Check out our FAQ X