public final class AppFormatVersion extends Object implements Comparable<AppFormatVersion>
AppModelArchiveFileName.SKELETON_METADATA
file to the app file to export the metadata for the skeleton as this
has been moved from the DocumentContentInfo
variable to the new ContentManager
.
1.0:
- Initial app format version.Modifier and Type | Field and Description |
---|---|
static AppFormatVersion |
NO_VERSION |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(AppFormatVersion that) |
boolean |
equals(Object o) |
static AppFormatVersion |
getCurrentVersion()
Returns the current App version.
|
int |
getMajor() |
int |
getMinor() |
int |
hashCode() |
boolean |
isCompatible(AppFormatVersion incomingVersion)
Checks whether the incoming App version is compatible with this version.
|
boolean |
isCompatibleWithCurrentVersion()
Checks whether this App version is compatible with the current App version.
|
static AppFormatVersion |
parse(String s)
Parses an App format version from the given string.
|
String |
toString() |
public static final AppFormatVersion NO_VERSION
public int getMajor()
public int getMinor()
public static AppFormatVersion parse(String s)
s
- the string to be parsedIllegalArgumentException
- if the string is not a valid App versionpublic boolean isCompatible(AppFormatVersion incomingVersion)
incomingVersion
- the incoming versiontrue
if the incoming version is compatiblepublic boolean isCompatibleWithCurrentVersion()
true
if the App version is compatiblepublic static AppFormatVersion getCurrentVersion()
public int compareTo(AppFormatVersion that)
compareTo
in interface Comparable<AppFormatVersion>
Copyright © 2010 - 2017 edorasware ag. All Rights Reserved.