CAS Unit Tests
Clover coverage report - CAS Unit Tests
Coverage timestamp: Mon Jul 4 2005 18:13:17 CDT
file stats: LOC: 289   Methods: 19
NCLOC: 177   Classes: 1
 
 Source file Conditionals Statements Methods TOTAL
PolicyData.java 0% 38.8% 5.3% 27%
coverage coverage
 1    /**
 2    * PolicyData.java
 3    *
 4    * This file was auto-generated from WSDL
 5    * by the Apache Axis 1.2RC2 Jun 16, 2005 (10:54:53 EDT) WSDL2Java emitter.
 6    */
 7   
 8    package org.globus.cas.types;
 9   
 10    public class PolicyData extends org.globus.cas.types.CasObjectData implements java.io.Serializable {
 11    private java.lang.String policyId;
 12    private java.lang.String userGroupName;
 13    private java.lang.String objectSpec;
 14    private java.lang.String objectSpecDesc;
 15    private java.lang.String actionSpec;
 16    private java.lang.String actionSpecDesc;
 17   
 18  0 public PolicyData() {
 19    }
 20   
 21  0 public PolicyData(
 22    java.lang.String actionSpec,
 23    java.lang.String actionSpecDesc,
 24    java.lang.String objectSpec,
 25    java.lang.String objectSpecDesc,
 26    java.lang.String policyId,
 27    java.lang.String userGroupName) {
 28  0 this.policyId = policyId;
 29  0 this.userGroupName = userGroupName;
 30  0 this.objectSpec = objectSpec;
 31  0 this.objectSpecDesc = objectSpecDesc;
 32  0 this.actionSpec = actionSpec;
 33  0 this.actionSpecDesc = actionSpecDesc;
 34    }
 35   
 36   
 37    /**
 38    * Gets the policyId value for this PolicyData.
 39    *
 40    * @return policyId
 41    */
 42  0 public java.lang.String getPolicyId() {
 43  0 return policyId;
 44    }
 45   
 46   
 47    /**
 48    * Sets the policyId value for this PolicyData.
 49    *
 50    * @param policyId
 51    */
 52  0 public void setPolicyId(java.lang.String policyId) {
 53  0 this.policyId = policyId;
 54    }
 55   
 56   
 57    /**
 58    * Gets the userGroupName value for this PolicyData.
 59    *
 60    * @return userGroupName
 61    */
 62  0 public java.lang.String getUserGroupName() {
 63  0 return userGroupName;
 64    }
 65   
 66   
 67    /**
 68    * Sets the userGroupName value for this PolicyData.
 69    *
 70    * @param userGroupName
 71    */
 72  0 public void setUserGroupName(java.lang.String userGroupName) {
 73  0 this.userGroupName = userGroupName;
 74    }
 75   
 76   
 77    /**
 78    * Gets the objectSpec value for this PolicyData.
 79    *
 80    * @return objectSpec
 81    */
 82  0 public java.lang.String getObjectSpec() {
 83  0 return objectSpec;
 84    }
 85   
 86   
 87    /**
 88    * Sets the objectSpec value for this PolicyData.
 89    *
 90    * @param objectSpec
 91    */
 92  0 public void setObjectSpec(java.lang.String objectSpec) {
 93  0 this.objectSpec = objectSpec;
 94    }
 95   
 96   
 97    /**
 98    * Gets the objectSpecDesc value for this PolicyData.
 99    *
 100    * @return objectSpecDesc
 101    */
 102  0 public java.lang.String getObjectSpecDesc() {
 103  0 return objectSpecDesc;
 104    }
 105   
 106   
 107    /**
 108    * Sets the objectSpecDesc value for this PolicyData.
 109    *
 110    * @param objectSpecDesc
 111    */
 112  0 public void setObjectSpecDesc(java.lang.String objectSpecDesc) {
 113  0 this.objectSpecDesc = objectSpecDesc;
 114    }
 115   
 116   
 117    /**
 118    * Gets the actionSpec value for this PolicyData.
 119    *
 120    * @return actionSpec
 121    */
 122  0 public java.lang.String getActionSpec() {
 123  0 return actionSpec;
 124    }
 125   
 126   
 127    /**
 128    * Sets the actionSpec value for this PolicyData.
 129    *
 130    * @param actionSpec
 131    */
 132  0 public void setActionSpec(java.lang.String actionSpec) {
 133  0 this.actionSpec = actionSpec;
 134    }
 135   
 136   
 137    /**
 138    * Gets the actionSpecDesc value for this PolicyData.
 139    *
 140    * @return actionSpecDesc
 141    */
 142  0 public java.lang.String getActionSpecDesc() {
 143  0 return actionSpecDesc;
 144    }
 145   
 146   
 147    /**
 148    * Sets the actionSpecDesc value for this PolicyData.
 149    *
 150    * @param actionSpecDesc
 151    */
 152  0 public void setActionSpecDesc(java.lang.String actionSpecDesc) {
 153  0 this.actionSpecDesc = actionSpecDesc;
 154    }
 155   
 156    private java.lang.Object __equalsCalc = null;
 157  0 public synchronized boolean equals(java.lang.Object obj) {
 158  0 if (!(obj instanceof PolicyData)) return false;
 159  0 PolicyData other = (PolicyData) obj;
 160  0 if (obj == null) return false;
 161  0 if (this == obj) return true;
 162  0 if (__equalsCalc != null) {
 163  0 return (__equalsCalc == obj);
 164    }
 165  0 __equalsCalc = obj;
 166  0 boolean _equals;
 167  0 _equals = super.equals(obj) &&
 168    ((this.policyId==null && other.getPolicyId()==null) ||
 169    (this.policyId!=null &&
 170    this.policyId.equals(other.getPolicyId()))) &&
 171    ((this.userGroupName==null && other.getUserGroupName()==null) ||
 172    (this.userGroupName!=null &&
 173    this.userGroupName.equals(other.getUserGroupName()))) &&
 174    ((this.objectSpec==null && other.getObjectSpec()==null) ||
 175    (this.objectSpec!=null &&
 176    this.objectSpec.equals(other.getObjectSpec()))) &&
 177    ((this.objectSpecDesc==null && other.getObjectSpecDesc()==null) ||
 178    (this.objectSpecDesc!=null &&
 179    this.objectSpecDesc.equals(other.getObjectSpecDesc()))) &&
 180    ((this.actionSpec==null && other.getActionSpec()==null) ||
 181    (this.actionSpec!=null &&
 182    this.actionSpec.equals(other.getActionSpec()))) &&
 183    ((this.actionSpecDesc==null && other.getActionSpecDesc()==null) ||
 184    (this.actionSpecDesc!=null &&
 185    this.actionSpecDesc.equals(other.getActionSpecDesc())));
 186  0 __equalsCalc = null;
 187  0 return _equals;
 188    }
 189   
 190    private boolean __hashCodeCalc = false;
 191  0 public synchronized int hashCode() {
 192  0 if (__hashCodeCalc) {
 193  0 return 0;
 194    }
 195  0 __hashCodeCalc = true;
 196  0 int _hashCode = super.hashCode();
 197  0 if (getPolicyId() != null) {
 198  0 _hashCode += getPolicyId().hashCode();
 199    }
 200  0 if (getUserGroupName() != null) {
 201  0 _hashCode += getUserGroupName().hashCode();
 202    }
 203  0 if (getObjectSpec() != null) {
 204  0 _hashCode += getObjectSpec().hashCode();
 205    }
 206  0 if (getObjectSpecDesc() != null) {
 207  0 _hashCode += getObjectSpecDesc().hashCode();
 208    }
 209  0 if (getActionSpec() != null) {
 210  0 _hashCode += getActionSpec().hashCode();
 211    }
 212  0 if (getActionSpecDesc() != null) {
 213  0 _hashCode += getActionSpecDesc().hashCode();
 214    }
 215  0 __hashCodeCalc = false;
 216  0 return _hashCode;
 217    }
 218   
 219    // Type metadata
 220    private static org.apache.axis.description.TypeDesc typeDesc =
 221    new org.apache.axis.description.TypeDesc(PolicyData.class, true);
 222   
 223    static {
 224  1 typeDesc.setXmlType(new javax.xml.namespace.QName("http://www.globus.org/07/2004/cas/casTypes", "PolicyData"));
 225  1 org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
 226  1 elemField.setFieldName("policyId");
 227  1 elemField.setXmlName(new javax.xml.namespace.QName("http://www.globus.org/07/2004/cas/casTypes", "policyId"));
 228  1 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
 229  1 elemField.setNillable(true);
 230  1 typeDesc.addFieldDesc(elemField);
 231  1 elemField = new org.apache.axis.description.ElementDesc();
 232  1 elemField.setFieldName("userGroupName");
 233  1 elemField.setXmlName(new javax.xml.namespace.QName("http://www.globus.org/07/2004/cas/casTypes", "userGroupName"));
 234  1 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
 235  1 typeDesc.addFieldDesc(elemField);
 236  1 elemField = new org.apache.axis.description.ElementDesc();
 237  1 elemField.setFieldName("objectSpec");
 238  1 elemField.setXmlName(new javax.xml.namespace.QName("http://www.globus.org/07/2004/cas/casTypes", "objectSpec"));
 239  1 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
 240  1 typeDesc.addFieldDesc(elemField);
 241  1 elemField = new org.apache.axis.description.ElementDesc();
 242  1 elemField.setFieldName("objectSpecDesc");
 243  1 elemField.setXmlName(new javax.xml.namespace.QName("http://www.globus.org/07/2004/cas/casTypes", "objectSpecDesc"));
 244  1 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
 245  1 typeDesc.addFieldDesc(elemField);
 246  1 elemField = new org.apache.axis.description.ElementDesc();
 247  1 elemField.setFieldName("actionSpec");
 248  1 elemField.setXmlName(new javax.xml.namespace.QName("http://www.globus.org/07/2004/cas/casTypes", "actionSpec"));
 249  1 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
 250  1 typeDesc.addFieldDesc(elemField);
 251  1 elemField = new org.apache.axis.description.ElementDesc();
 252  1 elemField.setFieldName("actionSpecDesc");
 253  1 elemField.setXmlName(new javax.xml.namespace.QName("http://www.globus.org/07/2004/cas/casTypes", "actionSpecDesc"));
 254  1 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
 255  1 typeDesc.addFieldDesc(elemField);
 256    }
 257   
 258    /**
 259    * Return type metadata object
 260    */
 261  1 public static org.apache.axis.description.TypeDesc getTypeDesc() {
 262  1 return typeDesc;
 263    }
 264   
 265    /**
 266    * Get Custom Serializer
 267    */
 268  0 public static org.apache.axis.encoding.Serializer getSerializer(
 269    java.lang.String mechType,
 270    java.lang.Class _javaType,
 271    javax.xml.namespace.QName _xmlType) {
 272  0 return
 273    new org.apache.axis.encoding.ser.BeanSerializer(
 274    _javaType, _xmlType, typeDesc);
 275    }
 276   
 277    /**
 278    * Get Custom Deserializer
 279    */
 280  0 public static org.apache.axis.encoding.Deserializer getDeserializer(
 281    java.lang.String mechType,
 282    java.lang.Class _javaType,
 283    javax.xml.namespace.QName _xmlType) {
 284  0 return
 285    new org.apache.axis.encoding.ser.BeanDeserializer(
 286    _javaType, _xmlType, typeDesc);
 287    }
 288   
 289    }