/** * TestDefinitionResult.java * * This file was auto-generated from WSDL * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter. */ package com.borland.sctm.ws.planning.entities; public class TestDefinitionResult implements java.io.Serializable { private int duration; private int errors; private int id; private java.lang.String name; private int status; private int testRunId; private java.lang.String type; private int typeId; private int warnings; public TestDefinitionResult() { } public TestDefinitionResult( int duration, int errors, int id, java.lang.String name, int status, int testRunId, java.lang.String type, int typeId, int warnings) { this.duration = duration; this.errors = errors; this.id = id; this.name = name; this.status = status; this.testRunId = testRunId; this.type = type; this.typeId = typeId; this.warnings = warnings; } /** * Gets the duration value for this TestDefinitionResult. * * @return duration */ public int getDuration() { return duration; } /** * Sets the duration value for this TestDefinitionResult. * * @param duration */ public void setDuration(int duration) { this.duration = duration; } /** * Gets the errors value for this TestDefinitionResult. * * @return errors */ public int getErrors() { return errors; } /** * Sets the errors value for this TestDefinitionResult. * * @param errors */ public void setErrors(int errors) { this.errors = errors; } /** * Gets the id value for this TestDefinitionResult. * * @return id */ public int getId() { return id; } /** * Sets the id value for this TestDefinitionResult. * * @param id */ public void setId(int id) { this.id = id; } /** * Gets the name value for this TestDefinitionResult. * * @return name */ public java.lang.String getName() { return name; } /** * Sets the name value for this TestDefinitionResult. * * @param name */ public void setName(java.lang.String name) { this.name = name; } /** * Gets the status value for this TestDefinitionResult. * * @return status */ public int getStatus() { return status; } /** * Sets the status value for this TestDefinitionResult. * * @param status */ public void setStatus(int status) { this.status = status; } /** * Gets the testRunId value for this TestDefinitionResult. * * @return testRunId */ public int getTestRunId() { return testRunId; } /** * Sets the testRunId value for this TestDefinitionResult. * * @param testRunId */ public void setTestRunId(int testRunId) { this.testRunId = testRunId; } /** * Gets the type value for this TestDefinitionResult. * * @return type */ public java.lang.String getType() { return type; } /** * Sets the type value for this TestDefinitionResult. * * @param type */ public void setType(java.lang.String type) { this.type = type; } /** * Gets the typeId value for this TestDefinitionResult. * * @return typeId */ public int getTypeId() { return typeId; } /** * Sets the typeId value for this TestDefinitionResult. * * @param typeId */ public void setTypeId(int typeId) { this.typeId = typeId; } /** * Gets the warnings value for this TestDefinitionResult. * * @return warnings */ public int getWarnings() { return warnings; } /** * Sets the warnings value for this TestDefinitionResult. * * @param warnings */ public void setWarnings(int warnings) { this.warnings = warnings; } private java.lang.Object __equalsCalc = null; public synchronized boolean equals(java.lang.Object obj) { if (!(obj instanceof TestDefinitionResult)) return false; TestDefinitionResult other = (TestDefinitionResult) obj; if (obj == null) return false; if (this == obj) return true; if (__equalsCalc != null) { return (__equalsCalc == obj); } __equalsCalc = obj; boolean _equals; _equals = true && this.duration == other.getDuration() && this.errors == other.getErrors() && this.id == other.getId() && ((this.name==null && other.getName()==null) || (this.name!=null && this.name.equals(other.getName()))) && this.status == other.getStatus() && this.testRunId == other.getTestRunId() && ((this.type==null && other.getType()==null) || (this.type!=null && this.type.equals(other.getType()))) && this.typeId == other.getTypeId() && this.warnings == other.getWarnings(); __equalsCalc = null; return _equals; } private boolean __hashCodeCalc = false; public synchronized int hashCode() { if (__hashCodeCalc) { return 0; } __hashCodeCalc = true; int _hashCode = 1; _hashCode += getDuration(); _hashCode += getErrors(); _hashCode += getId(); if (getName() != null) { _hashCode += getName().hashCode(); } _hashCode += getStatus(); _hashCode += getTestRunId(); if (getType() != null) { _hashCode += getType().hashCode(); } _hashCode += getTypeId(); _hashCode += getWarnings(); __hashCodeCalc = false; return _hashCode; } // Type metadata private static org.apache.axis.description.TypeDesc typeDesc = new org.apache.axis.description.TypeDesc(TestDefinitionResult.class, true); static { typeDesc.setXmlType(new javax.xml.namespace.QName("http://tm.segue.com", "TestDefinitionResult")); org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc(); elemField.setFieldName("duration"); elemField.setXmlName(new javax.xml.namespace.QName("", "duration")); elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int")); elemField.setNillable(false); typeDesc.addFieldDesc(elemField); elemField = new org.apache.axis.description.ElementDesc(); elemField.setFieldName("errors"); elemField.setXmlName(new javax.xml.namespace.QName("", "errors")); elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int")); elemField.setNillable(false); typeDesc.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", "int")); elemField.setNillable(false); typeDesc.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.setNillable(true); typeDesc.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://www.w3.org/2001/XMLSchema", "int")); elemField.setNillable(false); typeDesc.addFieldDesc(elemField); elemField = new org.apache.axis.description.ElementDesc(); elemField.setFieldName("testRunId"); elemField.setXmlName(new javax.xml.namespace.QName("", "testRunId")); elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int")); elemField.setNillable(false); typeDesc.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", "string")); elemField.setNillable(true); typeDesc.addFieldDesc(elemField); elemField = new org.apache.axis.description.ElementDesc(); elemField.setFieldName("typeId"); elemField.setXmlName(new javax.xml.namespace.QName("", "typeId")); elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int")); elemField.setNillable(false); typeDesc.addFieldDesc(elemField); elemField = new org.apache.axis.description.ElementDesc(); elemField.setFieldName("warnings"); elemField.setXmlName(new javax.xml.namespace.QName("", "warnings")); elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int")); 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); } }