public final class Version
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
LONG_COPYRIGHT
Deprecated.
|
static int |
MINI_COPYRIGHT
Deprecated.
|
static int |
SHORT_COPYRIGHT
Deprecated.
|
Constructor and Description |
---|
Version()
Constructor for this class
|
Modifier and Type | Method and Description |
---|---|
static int |
compareVersions(int[] s1,
int[] s2)
Deprecated.
|
static int |
compareVersions(java.lang.String stra,
java.lang.String strb)
Deprecated.
|
static int |
compareVersions(java.lang.String verA,
java.lang.String verB,
boolean ignoreServicePack)
Deprecated.
|
java.lang.String |
getAbbreviatedProductName()
Deprecated.
|
java.lang.String |
getBanner(boolean alldata)
Deprecated.
|
java.lang.String |
getBanner(boolean alldata,
int copyrightType)
Deprecated.
|
java.lang.String |
getBuildDate()
Deprecated.
|
java.lang.String |
getBuildMilestone()
Deprecated.
|
java.lang.String |
getBuildVersion()
Deprecated.
|
java.lang.String |
getCopyright(int copyrightType)
Deprecated.
|
java.lang.String |
getHeader()
Deprecated.
|
java.lang.String |
getHeader(int copyrightType)
Deprecated.
|
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.
|
java.lang.String |
getJMSAdminSpiVersion()
Deprecated.
|
java.lang.String |
getLowerCaseAbbreviatedProductName()
Deprecated.
|
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[] |
getPatchIds()
Deprecated.
|
java.lang.String |
getPatchString()
Deprecated.
|
java.lang.String |
getProductCompanyName()
Deprecated.
|
java.lang.String |
getProductCopyrightDate()
Deprecated.
|
java.lang.String |
getProductName()
Returns the product name example Oracle GlassFish(tm) Server Message Queue
|
java.lang.String |
getProductVersion()
Deprecated.
|
java.util.Properties |
getProps()
Deprecated.
|
java.lang.String |
getProtocolVersion()
Deprecated.
|
java.lang.String |
getReleaseQID()
Deprecated.
|
java.lang.String |
getShortProductName()
Deprecated.
|
java.lang.String |
getTargetJMSVersion()
Returns the JMS API version the product implements example 1.1
|
java.lang.String |
getUserAgent()
Deprecated.
|
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 |
getVersionPackageName()
Deprecated.
|
java.lang.String |
getVersionProperty(java.lang.String name)
Deprecated.
|
static void |
main(java.lang.String[] args)
Deprecated.
|
java.lang.String |
toString()
Deprecated.
|
static java.lang.String |
toVersionString(int[] ver)
Deprecated.
|
@Deprecated public static final int MINI_COPYRIGHT
@Deprecated public static final int SHORT_COPYRIGHT
@Deprecated public static final int LONG_COPYRIGHT
@Deprecated public java.util.Properties getProps()
@Deprecated public java.lang.String getProductVersion()
public int getMajorVersion()
public int getMinorVersion()
@Deprecated public java.lang.String getVersionProperty(java.lang.String name)
name
- String representing the name of the property whose value is desired@Deprecated public java.lang.String getBuildMilestone()
@Deprecated public java.lang.String getBuildDate()
@Deprecated public java.lang.String getBuildVersion()
public java.lang.String getProductName()
@Deprecated public java.lang.String getReleaseQID()
@Deprecated public java.lang.String getAbbreviatedProductName()
@Deprecated public java.lang.String getLowerCaseAbbreviatedProductName()
@Deprecated public java.lang.String getShortProductName()
@Deprecated public java.lang.String getProductCopyrightDate()
@Deprecated public java.lang.String getProductCompanyName()
@Deprecated public java.lang.String getVersionPackageName()
public java.lang.String getImplementationVersion()
@Deprecated public java.lang.String getProtocolVersion()
public java.lang.String getTargetJMSVersion()
@Deprecated public java.lang.String getUserAgent()
@Deprecated public java.lang.String toString()
toString
in class java.lang.Object
@Deprecated public java.lang.String getHeader()
@Deprecated public java.lang.String getHeader(int copyrightType)
copyrightType
- an integer value of the valid copyright type MINI_COPYRIGHT, SHORT_COPYRIGHT, LONG_COPYRIGHT@Deprecated public java.lang.String getCopyright(int copyrightType)
copyrightType
- an integer value of the copyright type valid values are MINI_COPYRIGHT, SHORT_COPYRIGHT,
LONG_COPYRIGHT@Deprecated public java.lang.String[] getPatchIds()
@Deprecated public java.lang.String getPatchString()
@Deprecated public java.lang.String getJMSAdminSpiVersion()
public java.lang.String getVersion()
@Deprecated public java.lang.String getBanner(boolean alldata)
alldata
- a boolean value indicating that is it desired to get a detailed info@Deprecated public java.lang.String getBanner(boolean alldata, int copyrightType)
alldata
- a boolean value indicating whether you want a detailed info(true) or not(false)copyrightType
- an integer representing the copyright for which the banner detail is required valid values are
SHORT_COPYRIGHT, MINI_COPYRIGHT, LONG_COPYRIGHTpublic static int[] getIntVersion(java.lang.String str) throws java.lang.NumberFormatException
str
- String representing the product versionjava.lang.NumberFormatException
@Deprecated public static int compareVersions(java.lang.String stra, java.lang.String strb)
stra
- representing the version which need to be comparedstrb
- representing the second version string that needs to be compared.@Deprecated public static int compareVersions(java.lang.String verA, java.lang.String verB, boolean ignoreServicePack) throws java.lang.NumberFormatException
verA
- First version stringverB
- Second version stringignoreServicePack
- true to ignore the service pack or patch leveljava.lang.NumberFormatException
@Deprecated public static int compareVersions(int[] s1, int[] s2)
s1
- the first array of integer representing the versin infos2
- the second array of interger representing the version info that has to be compared@Deprecated public static java.lang.String toVersionString(int[] ver)
ver
- an array of integer reperesenting the version info int[0]=major int[1]=minor int[2]=micro int[3]=service
pack@Deprecated public static void main(java.lang.String[] args)
Copyright (c) 2010, 2017 Oracle and/or its affiliates. All rights reserved.