Package org.epics.pvaccess
Class Version
- java.lang.Object
-
- org.epics.pvaccess.Version
-
public class Version extends Object
Administrative class to keep track of the version number.- Version:
- $Id$
- Author:
- msekoranja
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getImplementationLanguage()
Implementation Language: Java.int
getMaintenanceVersion()
Maintenance version number.int
getMajorVersion()
Major version number.int
getMinorVersion()
Minor vesion number.String
getProductName()
Name of product: Xalan.String
getVersionString()
Get the basic version string.boolean
isDevelopmentVersion()
Development flag.String
toString()
-
-
-
Constructor Detail
-
Version
public Version(String productName, String implementationLangugage, int majorVersion, int minorVersion, int maintenanceVersion, boolean developmentFlag)
Default constructor.- Parameters:
productName
- product name.implementationLangugage
- implementation language.majorVersion
- major version.minorVersion
- minor version.maintenanceVersion
- maintenance version.developmentFlag
- development indicator flag.
-
-
Method Detail
-
getVersionString
public String getVersionString()
Get the basic version string.- Returns:
- String denoting current version
-
getProductName
public String getProductName()
Name of product: Xalan.- Returns:
- product name.
-
getImplementationLanguage
public String getImplementationLanguage()
Implementation Language: Java.- Returns:
- the implementation language.
-
getMajorVersion
public int getMajorVersion()
Major version number. This changes only when there is a significant, externally apparent enhancement from the previous release. 'n' represents the n'th version. Clients should carefully consider the implications of new versions as external interfaces and behaviour may have changed.- Returns:
- major version.
-
getMinorVersion
public int getMinorVersion()
Minor vesion number. This changes when:- a new set of functionality is to be added
- API or behaviour change
- its designated as a reference release
- Returns:
- minor version.
-
getMaintenanceVersion
public int getMaintenanceVersion()
Maintenance version number. Optional identifier used to designate maintenance drop applied to a specific release and contains fixes for defects reported. It maintains compatibility with the release and contains no API changes. When missing, it designates the final and complete development drop for a release.- Returns:
- maintenance version.
-
isDevelopmentVersion
public boolean isDevelopmentVersion()
Development flag. Development drops are works in progress towards a completed, final release. A specific development drop may not completely implement all aspects of a new feature, which may take several development drops to complete. At the point of the final drop for the release, the -SNAPSHOT suffix will be omitted.- Returns:
- development version flag.
-
toString
public String toString()
- Overrides:
toString
in classObject
- See Also:
Object.toString()
-
-