Package com.sun.identity.tools.bundles
Class VersionCheck
- java.lang.Object
-
- com.sun.identity.tools.bundles.VersionCheck
-
- All Implemented Interfaces:
SetupConstants
public class VersionCheck extends Object implements SetupConstants
-
-
Field Summary
-
Fields inherited from interface com.sun.identity.tools.bundles.SetupConstants
ACCEPT_LICENSE, AIX, ALL, AM_VERSION, AM_VERSION_CURRENT, AM_VERSION_EXPECTED, AMCONFIG_PATH, BASE_DIR, BUFFER_SIZE, CHECK_VERSION, CONFIG_FILE, CONFIG_LOAD, CURRENT_PLATFORM, DEBUG_PATH, DEFAULT_PROPERTIES_FILE, DEFAULT_WILD_CARD, FILE_SEPARATOR, FROM_DIR, FROM_FILE, GZIP_EXT, JAVA_VERSION_CURRENT, JAVA_VERSION_EXPECTED, LINUX, LOG_PATH, OS_ARCH, OS_NAME, PATH_DEST, PRINT_HELP, QUESTION, REX_VAR_PREFIX, REX_VAR_SUFFIX, SETUP_PROPERTIES_FILE, SOLARIS, SUNOS, TO_DIR, TO_FILE, TOKEN, TOOLS_VERSION, USER_INPUT, VAR_PREFIX, VAR_SUFFIX, VERSION_FILE, WINDOWS, X64, X86, X86SOLARIS, XML_CONFIG, YES
-
-
Constructor Summary
Constructors Constructor Description VersionCheck()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intisValid()Check whether the version AM is valid.static intisVersionValid()protected static booleanversionCompatible(String currentVersion, String expectedVersion)Check whether the version String is compatible with expected.
-
-
-
Method Detail
-
isValid
public static int isValid()
Check whether the version AM is valid.
-
isVersionValid
public static int isVersionValid()
-
versionCompatible
protected static boolean versionCompatible(String currentVersion, String expectedVersion)
Check whether the version String is compatible with expected.- Parameters:
currentVersion- The string of current version.expectedVersion- The string of expected version.- Returns:
- A boolean value to indicate whether the version is compatible.
-
-