/******************************************************************************* * Copyright (c) 2006-2010 eBay Inc. All Rights Reserved. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 *******************************************************************************/ /** * RemoteServerInfo.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.atlassian.confluence.rpc.soap.beans; public class RemoteServerInfo implements java.io.Serializable { private java.lang.String baseUrl; private java.lang.String buildId; private boolean developmentBuild; private int majorVersion; private int minorVersion; private int patchLevel; public RemoteServerInfo() { } public RemoteServerInfo(java.lang.String baseUrl, java.lang.String buildId, boolean developmentBuild, int majorVersion, int minorVersion, int patchLevel) { this.baseUrl = baseUrl; this.buildId = buildId; this.developmentBuild = developmentBuild; this.majorVersion = majorVersion; this.minorVersion = minorVersion; this.patchLevel = patchLevel; } /** * Gets the baseUrl value for this RemoteServerInfo. * * @return baseUrl */ public java.lang.String getBaseUrl() { return baseUrl; } /** * Sets the baseUrl value for this RemoteServerInfo. * * @param baseUrl */ public void setBaseUrl(java.lang.String baseUrl) { this.baseUrl = baseUrl; } /** * Gets the buildId value for this RemoteServerInfo. * * @return buildId */ public java.lang.String getBuildId() { return buildId; } /** * Sets the buildId value for this RemoteServerInfo. * * @param buildId */ public void setBuildId(java.lang.String buildId) { this.buildId = buildId; } /** * Gets the developmentBuild value for this RemoteServerInfo. * * @return developmentBuild */ public boolean isDevelopmentBuild() { return developmentBuild; } /** * Sets the developmentBuild value for this RemoteServerInfo. * * @param developmentBuild */ public void setDevelopmentBuild(boolean developmentBuild) { this.developmentBuild = developmentBuild; } /** * Gets the majorVersion value for this RemoteServerInfo. * * @return majorVersion */ public int getMajorVersion() { return majorVersion; } /** * Sets the majorVersion value for this RemoteServerInfo. * * @param majorVersion */ public void setMajorVersion(int majorVersion) { this.majorVersion = majorVersion; } /** * Gets the minorVersion value for this RemoteServerInfo. * * @return minorVersion */ public int getMinorVersion() { return minorVersion; } /** * Sets the minorVersion value for this RemoteServerInfo. * * @param minorVersion */ public void setMinorVersion(int minorVersion) { this.minorVersion = minorVersion; } /** * Gets the patchLevel value for this RemoteServerInfo. * * @return patchLevel */ public int getPatchLevel() { return patchLevel; } /** * Sets the patchLevel value for this RemoteServerInfo. * * @param patchLevel */ public void setPatchLevel(int patchLevel) { this.patchLevel = patchLevel; } private java.lang.Object __equalsCalc = null; public synchronized boolean equals(java.lang.Object obj) { if (!(obj instanceof RemoteServerInfo)) return false; RemoteServerInfo other = (RemoteServerInfo) obj; if (obj == null) return false; if (this == obj) return true; if (__equalsCalc != null) { return (__equalsCalc == obj); } __equalsCalc = obj; boolean _equals; _equals = true && ((this.baseUrl == null && other.getBaseUrl() == null) || (this.baseUrl != null && this.baseUrl.equals(other.getBaseUrl()))) && ((this.buildId == null && other.getBuildId() == null) || (this.buildId != null && this.buildId.equals(other.getBuildId()))) && this.developmentBuild == other.isDevelopmentBuild() && this.majorVersion == other.getMajorVersion() && this.minorVersion == other.getMinorVersion() && this.patchLevel == other.getPatchLevel(); __equalsCalc = null; return _equals; } private boolean __hashCodeCalc = false; public synchronized int hashCode() { if (__hashCodeCalc) { return 0; } __hashCodeCalc = true; int _hashCode = 1; if (getBaseUrl() != null) { _hashCode += getBaseUrl().hashCode(); } if (getBuildId() != null) { _hashCode += getBuildId().hashCode(); } _hashCode += (isDevelopmentBuild() ? Boolean.TRUE : Boolean.FALSE).hashCode(); _hashCode += getMajorVersion(); _hashCode += getMinorVersion(); _hashCode += getPatchLevel(); __hashCodeCalc = false; return _hashCode; } // Type metadata private static org.apache.axis.description.TypeDesc typeDesc = new org.apache.axis.description.TypeDesc( RemoteServerInfo.class, true); static { typeDesc.setXmlType(new javax.xml.namespace.QName("http://beans.soap.rpc.confluence.atlassian.com", "RemoteServerInfo")); org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc(); elemField.setFieldName("baseUrl"); elemField.setXmlName(new javax.xml.namespace.QName("", "baseUrl")); 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("buildId"); elemField.setXmlName(new javax.xml.namespace.QName("", "buildId")); 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("developmentBuild"); elemField.setXmlName(new javax.xml.namespace.QName("", "developmentBuild")); elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean")); elemField.setNillable(false); typeDesc.addFieldDesc(elemField); elemField = new org.apache.axis.description.ElementDesc(); elemField.setFieldName("majorVersion"); elemField.setXmlName(new javax.xml.namespace.QName("", "majorVersion")); 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("minorVersion"); elemField.setXmlName(new javax.xml.namespace.QName("", "minorVersion")); 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("patchLevel"); elemField.setXmlName(new javax.xml.namespace.QName("", "patchLevel")); 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); } }