public class VersionInfo extends Object
Modifier and Type | Field and Description |
---|---|
static String |
COMPILER_BUILD_ATTRIBUTE
Build number of the compiler that compiled the SWF.
|
static String |
COMPILER_ELEMENT
Element containing version information.
|
static String |
COMPILER_NAME_ATTRIBUTE
Product name of the compiler that compiled the SWF.
|
static String |
COMPILER_NAMESPACE_PREFIX
Prefix of the the compiler's namespace URI.
|
static String |
COMPILER_NAMESPACE_URI
Namespace of the "compiler" element.
|
static String |
COMPILER_VERSION_ATTRIBUTE
Version of the compiler that compiled the SWF.
|
static String |
FLEX_MAJOR_VERSION |
static String |
FLEX_MINOR_VERSION |
static String |
FLEX_NANO_VERSION |
static String |
LIB_MAJOR_VERSION |
static String |
LIB_MINOR_VERSION |
static String |
LIB_VERSION_1_0
Lib version is the "version" of the SWC format.
|
static String |
LIB_VERSION_1_1 |
static String |
LIB_VERSION_1_2 |
Constructor and Description |
---|
VersionInfo() |
Modifier and Type | Method and Description |
---|---|
static String |
buildMessage() |
static int |
compareVersions(String version1,
String version2,
boolean compareMajorVersion)
Compare two version strings that are in at "Major.minor" format.
|
static String |
getBuild() |
static long |
getBuildLong()
Get the build number as a long.
|
static String |
getCompilerBuild()
The build number of the compiler.
|
static String |
getCompilerName()
The name of the compiler.
|
static String |
getCompilerVersion()
The version of the compiler.
|
static String |
getFlexVersion() |
static String |
getLibVersion() |
static boolean |
IsNewerLibVersion(String swcLibVersion,
boolean compareMajorVersion) |
public static final String FLEX_MAJOR_VERSION
public static final String FLEX_MINOR_VERSION
public static final String FLEX_NANO_VERSION
public static final String LIB_VERSION_1_0
public static final String LIB_VERSION_1_1
public static final String LIB_VERSION_1_2
public static final String LIB_MAJOR_VERSION
public static final String LIB_MINOR_VERSION
public static final String COMPILER_ELEMENT
public static final String COMPILER_NAME_ATTRIBUTE
public static final String COMPILER_VERSION_ATTRIBUTE
public static final String COMPILER_BUILD_ATTRIBUTE
public static final String COMPILER_NAMESPACE_URI
public static final String COMPILER_NAMESPACE_PREFIX
public static String buildMessage()
public static String getBuild()
public static long getBuildLong()
public static String getFlexVersion()
public static String getLibVersion()
public static String getCompilerName()
public static String getCompilerVersion()
public static String getCompilerBuild()
public static boolean IsNewerLibVersion(String swcLibVersion, boolean compareMajorVersion)
swcLibVersion
- - library version to compare with the current library version.compareMajorVersion
- - if true, compare only the major versions. Otherwise compare
both major and minor versions.public static int compareVersions(String version1, String version2, boolean compareMajorVersion)
version1
- first versionversion2
- second versioncompareMajorVersion
- compare only the major versions, disregarding the minor version.Copyright © 2016 The Apache Software Foundation. All rights reserved.