package org.intermine.webservice.client.core;

/*
 * Copyright (C) 2002-2011 FlyMine
 *
 * This code may be freely distributed and modified under the
 * terms of the GNU Lesser General Public Licence.  This should
 * be distributed with the code.  See the LICENSE file for more
 * information or http://www.gnu.org/copyleft/lesser.html.
 *
 */

/**
 * Simple class representing service version.
 * @author Jakub Kulaviak
 **/
public class Version
{
    private String version;

    /**
     * Constructor.
     * @param version version
     */
    public Version(String version) {
        this.version = version;
    }

    /**
     * @return version
     */
    String getVersion() {
        return version;
    }

    /**
     * @param version version
     */
    void setVersion(String version) {
        this.version = version;
    }

    /**
     * Returns string representation of Version that is send with
     * request.
     * @return a string representation of the version.
     */
    @Override
    public String toString() {
        return getVersion();
    }
}

@@ -517,195 +517,362 @@
 ram 
-version version%0A     */%0A    public Version(String version) %7B%0A        this.version = version;%0A    %7D%0A%0A    /**%0A     * @return version%0A     */%0A    String getVersion() %7B%0A        return version
+major major release version - increment for backwards incompatible changes.%0A     * @param minor minor release version - increment for new features%0A     * @param point point release version - increment for every change.%0A     */%0A    public Version(int major, int minor, int point) %7B%0A        this.version = String.format(%22%25d.%2502d.%2502d%22, major, minor, point)
 ;%0A  
@@ -896,20 +896,13 @@
  * @
-param versio
+retur
 n ve
@@ -923,38 +923,26 @@
     
-void setVersion(
 String 
-v
+getV
 ersion
+(
 ) %7B%0A
@@ -949,30 +949,22 @@
         
-this.version =
+return
  version

Use major-minor-point versions