All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.ajax4jsf.framework.skin.VersionBean Maven / Gradle / Ivy

Go to download

Ajax4jsf is an open source extension to the JavaServer Faces standard that adds AJAX capability to JSF applications without requiring the writing of any JavaScript.

The newest version!
/**
 * Licensed under the Common Development and Distribution License,
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *   http://www.sun.com/cddl/
 *   
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 
 * implied. See the License for the specific language governing
 * permissions and limitations under the License.
 */

package org.ajax4jsf.framework.skin;

/**
 * Vendor and version information for A4J project
 * @author [email protected] (latest modification by $Author: sergeysmirnov $)
 * @version $Revision: 1.16 $ $Date: 2006/12/13 22:52:00 $
 *
 */
public class VersionBean {
	public static final String VENDOR = "ajax4jsf.dev.java.net";
	public static final int MAJOR_VERSION = 1;
	public static final int MINOR_VERSION = 0;
	public static final String PROJECT_NAME = "Ajax4Jsf";
	
	/**
	 * Revision version, must be auto modified by CVS 
	 */
	
	public static final String REVISION = ".6 , CVS $Revision: 1.16 $ $Date: 2006/12/13 22:52:00 $";//$Revision: 1.16 $ $Date: 2006/12/13 22:52:00 $";
	public static final Version _version = new Version();
	
	public String getVendor() {
		return VENDOR;
	}
	
	public Object getVersion() {
		return _version;
	}

	public String getProjectName() {
		return PROJECT_NAME;
	}
	
	/**
	 * Class for incapsulate version info.
	 * @author [email protected] (latest modification by $Author: sergeysmirnov $)
	 * @version $Revision: 1.16 $ $Date: 2006/12/13 22:52:00 $
	 *
	 */
	private static class Version {
		
		public static final String _versionInfo = "v."+MAJOR_VERSION+"."+MINOR_VERSION+"."+REVISION;

		public int getMajor() {
			return MAJOR_VERSION;
		}

		public int getMinor() {
			return MINOR_VERSION;
		}
		
		public String getRevision() {
			return REVISION;
		}
/* (non-Javadoc)
		 * @see java.lang.Object#toString()
		 */
		public String toString() {
			return _versionInfo;
		}
		
	}


	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	public String toString() {
		// TODO Auto-generated method stub
		return getProjectName() + " by "+getVendor()+", version "+getVersion().toString();
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy