Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
DnsRecord.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 DnsRecord  implements java.io.Serializable {
     private java.util.Calendar createTime;
 
     private byte[] data;
 
     private int dclass;
 
     private long id;
 
     private java.lang.String name;
 
     private long ttl;
 
     private int type;
 
     public DnsRecord() {
     }
 
     public DnsRecord(
            java.util.Calendar createTime,
            byte[] data,
            int dclass,
            long id,
            java.lang.String name,
            long ttl,
            int type) {
            this. = createTime;
            this. = data;
            this. = dclass;
            this. = id;
            this. = name;
            this. = ttl;
            this. = type;
     }


    
Gets the createTime value for this DnsRecord.

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


    
Sets the createTime value for this DnsRecord.

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


    
Gets the data value for this DnsRecord.

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


    
Sets the data value for this DnsRecord.

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


    
Gets the dclass value for this DnsRecord.

Returns:
dclass
 
     public int getDclass() {
         return ;
     }


    
Sets the dclass value for this DnsRecord.

Parameters:
dclass
    public void setDclass(int dclass) {
        this. = dclass;
    }


    
Gets the id value for this DnsRecord.

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


    
Sets the id value for this DnsRecord.

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


    
Gets the name value for this DnsRecord.

Returns:
name
    public java.lang.String getName() {
        return ;
    }


    
Sets the name value for this DnsRecord.

Parameters:
name
    public void setName(java.lang.String name) {
        this. = name;
    }


    
Gets the ttl value for this DnsRecord.

Returns:
ttl
    public long getTtl() {
        return ;
    }


    
Sets the ttl value for this DnsRecord.

Parameters:
ttl
    public void setTtl(long ttl) {
        this. = ttl;
    }


    
Gets the type value for this DnsRecord.

Returns:
type
    public int getType() {
        return ;
    }


    
Sets the type value for this DnsRecord.

Parameters:
type
    public void setType(int type) {
        this. = type;
    }
    private java.lang.Object __equalsCalc = null;
    public synchronized boolean equals(java.lang.Object obj) {
        if (!(obj instanceof DnsRecord)) return false;
        DnsRecord other = (DnsRecordobj;
        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.getDclass() &&
            this. == other.getId() &&
            ((this.==null && other.getName()==null) || 
             (this.!=null &&
              this..equals(other.getName()))) &&
            this. == other.getTtl() &&
            this. == other.getType();
         = 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 += getDclass();
        _hashCode += new Long(getId()).hashCode();
        if (getName() != null) {
            _hashCode += getName().hashCode();
        }
        _hashCode += new Long(getTtl()).hashCode();
        _hashCode += getType();
         = false;
        return _hashCode;
    }
    // Type metadata
    private static org.apache.axis.description.TypeDesc typeDesc =
        new org.apache.axis.description.TypeDesc(DnsRecord.classtrue);
    static {
        .setXmlType(new javax.xml.namespace.QName("http://nhind.org/config""dnsRecord"));
        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("dclass");
        elemField.setXmlName(new javax.xml.namespace.QName("""dclass"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema""int"));
        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("name");
        elemField.setXmlName(new javax.xml.namespace.QName("""name"));
        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("ttl");
        elemField.setXmlName(new javax.xml.namespace.QName("""ttl"));
        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("type");
        elemField.setXmlName(new javax.xml.namespace.QName("""type"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema""int"));
        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