public final class Version
extends java.lang.Object
Constructor and Description |
---|
Version()
Constructor for this class
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getImplementationVersion()
Returns the implementation version of the product example 3.6
|
static int[] |
getIntVersion(java.lang.String str)
Returns the Version info in the form of an array of integer.
|
int |
getMajorVersion()
Returns the Major release of the Product version for example if the release value is 3.6.1 then the major version
value will be 3.
|
int |
getMinorVersion()
Returns the Minor release of the Product version for example if the release value is 3.6.1 then the returned value of
minor version will be 6
|
java.lang.String |
getProductName()
Returns the product name example Oracle GlassFish(tm) Server Message Queue
|
java.lang.String |
getTargetJMSVersion()
Returns the JMS API version the product implements example 1.1
|
java.lang.String |
getVersion()
Returns the Version info of the product, this string is the concatanated value of pacakage name, API version,
Protocol version, JMS API version, and the patch information.
|
java.lang.String |
toString()
Deprecated.
|
public int getMajorVersion()
public int getMinorVersion()
public java.lang.String getProductName()
public java.lang.String getImplementationVersion()
public java.lang.String getTargetJMSVersion()
@Deprecated public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getVersion()
public static int[] getIntVersion(java.lang.String str) throws java.lang.NumberFormatException
str
- String representing the product versionjava.lang.NumberFormatException
Copyright (c) 2010, 2017 Oracle and/or its affiliates. All rights reserved.