public class ProductInfo
extends java.lang.Object
Constructor and Description |
---|
ProductInfo() |
Modifier and Type | Method and Description |
---|---|
static java.util.Date |
getBuildDate()
The date this product was built.
|
static java.lang.String |
getBuildJavaVersion()
The version of Java used to build this product.
|
static java.lang.String |
getBuildNumber()
The build number for this product.
|
static java.io.File |
getJavaTestClassDir()
Get the entry on the class path which contains the JT Harness harness.
|
static java.lang.String |
getMilestone()
The milestone of this product.
|
static java.lang.String |
getName()
The name of this product.
|
static java.lang.String |
getVersion()
The version of this product.
|
static boolean |
isSameVersionOrNewer(java.lang.String ver)
Checks if the version of this product returned by getVersion() method
is not older than passed one.
|
public static java.lang.String getName()
public static java.lang.String getVersion()
public static boolean isSameVersionOrNewer(java.lang.String ver)
ver
- version to be compared with the current product versionjava.lang.IllegalArgumentException
- if version cannot be parsedpublic static java.lang.String getMilestone()
public static java.lang.String getBuildNumber()
public static java.lang.String getBuildJavaVersion()
public static java.util.Date getBuildDate()
public static java.io.File getJavaTestClassDir()
Copyright (c) 1996, 2011, Oracle and/or its affiliates. All rights reserved.