JRefactoryVersion.java :  » UML » jrefactory » org » acm » seguin » Java Open Source

Java Open Source » UML » jrefactory 
jrefactory » org » acm » seguin » JRefactoryVersion.java
package org.acm.seguin;

/**
 *  The current version of JRefactory
 *
 *@author    Chris Seguin
 */
public class JRefactoryVersion {
  /**
   *  Gets the MajorVersion attribute of the JRefactoryVersion object
   *
   *@return    The MajorVersion value
   */
  public int getMajorVersion() {
    return 2;
  }


  /**
   *  Gets the MinorVersion attribute of the JRefactoryVersion object
   *
   *@return    The MinorVersion value
   */
  public int getMinorVersion() {
    return 9;
  }


  /**
   *  Gets the Build attribute of the JRefactoryVersion object
   *
   *@return    The Build value
   */
  public int getBuild() {
    return 18;
  }


  /**
   *  Converts the JRefactoryVersion to a string
   *
   *@return    a string representing the version
   */
  public String toString() {
    StringBuffer buffer = new StringBuffer();

    buffer.append(getMajorVersion());
    buffer.append('.');

    buffer.append(getMinorVersion());
    buffer.append('.');

    buffer.append(getBuild());

    return buffer.toString();
  }

   public static void main(String[] args) {
       System.out.println("Version:  " + (new JRefactoryVersion()).toString());
   }
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.