/** * GetClassPermissionsResult.java * * This file was auto-generated from WSDL * by the Apache Axis 1.2.1 Jun 14, 2005 (09:15:57 EDT) WSDL2Java emitter. */ package org.alfresco.repo.webservice.accesscontrol; public class GetClassPermissionsResult implements java.io.Serializable { private java.lang.String className; private java.lang.String permissions; public GetClassPermissionsResult() { } public GetClassPermissionsResult( java.lang.String className, java.lang.String permissions) { this.className = className; this.permissions = permissions; } /** * Gets the className value for this GetClassPermissionsResult. * * @return className */ public java.lang.String getClassName() { return className; } /** * Sets the className value for this GetClassPermissionsResult. * * @param className */ public void setClassName(java.lang.String className) { this.className = className; } /** * Gets the permissions value for this GetClassPermissionsResult. * * @return permissions */ public java.lang.String getPermissions() { return permissions; } /** * Sets the permissions value for this GetClassPermissionsResult. * * @param permissions */ public void setPermissions(java.lang.String permissions) { this.permissions = permissions; } private java.lang.Object __equalsCalc = null; public synchronized boolean equals(java.lang.Object obj) { if (!(obj instanceof GetClassPermissionsResult)) return false; GetClassPermissionsResult other = (GetClassPermissionsResult) obj; if (obj == null) return false; if (this == obj) return true; if (__equalsCalc != null) { return (__equalsCalc == obj); } __equalsCalc = obj; boolean _equals; _equals = true && ((this.className==null && other.getClassName()==null) || (this.className!=null && this.className.equals(other.getClassName()))) && ((this.permissions==null && other.getPermissions()==null) || (this.permissions!=null && this.permissions.equals(other.getPermissions()))); __equalsCalc = null; return _equals; } private boolean __hashCodeCalc = false; public synchronized int hashCode() { if (__hashCodeCalc) { return 0; } __hashCodeCalc = true; int _hashCode = 1; if (getClassName() != null) { _hashCode += getClassName().hashCode(); } if (getPermissions() != null) { _hashCode += getPermissions().hashCode(); } __hashCodeCalc = false; return _hashCode; } // Type metadata private static org.apache.axis.description.TypeDesc typeDesc = new org.apache.axis.description.TypeDesc(GetClassPermissionsResult.class, true); static { typeDesc.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/accesscontrol/1.0", "GetClassPermissionsResult")); org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc(); elemField.setFieldName("className"); elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/accesscontrol/1.0", "className")); elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string")); elemField.setNillable(false); typeDesc.addFieldDesc(elemField); elemField = new org.apache.axis.description.ElementDesc(); elemField.setFieldName("permissions"); elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/accesscontrol/1.0", "permissions")); elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string")); elemField.setMinOccurs(0); elemField.setNillable(false); 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); } }