public class AppFormatVersion extends Object implements Comparable<AppFormatVersion>
An App format version has the form "{major}.{minor}" where major and minor are integers.
The minor version should be updated whenever a change is made to the App format that may be problematic for previous edoras one releases. If only this is changed then the current application should be backwards compatible with all previous minor App versions from the current major version.
The major version should be updated whenever a change is made that also breaks backwards compatibility, meaning that the current application cannot import Apps from previous edoras one releases. In this case an alternative migration path for old Apps should be provided.
Version history:
1.4:
- serialization now uses new Java time Instant for timestamp variables instead of Date
1.3:
- added support for DMN models
1.2:
- Use global ID references in place of the legacy 'guid' variable value and model work object ID.
- Don’t include the model revision variables in the App model work object (this causes confusion)
- Remove the modelerMetadata.xml file as it’s no longer needed
- Use revision ID placeholders in vis model XML content
1.1:
- Add the 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)
Parses an App format version from the given string.
s
- the string to be parsedIllegalArgumentException
- if the string is not a valid App versionpublic boolean isCompatible(AppFormatVersion incomingVersion)
Checks whether the incoming App version is compatible with this version.
incomingVersion
- the incoming versiontrue
if the incoming version is compatiblepublic boolean isCompatibleWithCurrentVersion()
Checks whether this App version is compatible with the current App version.
true
if the App version is compatiblepublic static AppFormatVersion getCurrentVersion()
Returns the current App version.
public int compareTo(AppFormatVersion that)
compareTo
in interface Comparable<AppFormatVersion>
Copyright © 2010 - 2019 edorasware ag. All Rights Reserved.