|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectca.sqlpower.architect.ArchitectVersion
public class ArchitectVersion
The ArchitectVersion class exists as a means of finding out which version of the Architect application you are dealing with. It is also used during the build process in order to determine which version number to put in the archive file names.
It is extremely important that this class has no dependencies aside from the standard Java libraries.
| Field Summary | |
|---|---|
static ArchitectVersion |
APP_VERSION
The full version number, formatted as Major.Minor.Tiny[-Suffix]. |
static java.lang.String |
APP_VERSION_MAJOR
The major version number. |
static java.lang.String |
APP_VERSION_MINOR
Minor version number. |
static java.lang.String |
APP_VERSION_SUFFIX
Suffixes indicate pre-release builds. |
static java.lang.String |
APP_VERSION_TINY
Tiny version number. |
| Constructor Summary | |
|---|---|
ArchitectVersion(java.lang.String version)
Creates a new ArchitectVersion object from the given string. |
|
| Method Summary | |
|---|---|
int |
compareTo(ArchitectVersion o)
ArchitectVersion numbers are mutually comparable even if they have different numbers of parts, and in that case, version 2.0 is older than 2.0.0 or 2.0.1 but still newer than 1.0.0. |
java.lang.Object[] |
getParts()
Returns an array of the parts represented by this ArchitectVersion, contents are either Integer or String. |
java.lang.String |
toString()
Returns the String representation of this version number in the same format accepted by the ArchitectVersion(String) constructor. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String APP_VERSION_MAJOR
public static final java.lang.String APP_VERSION_MINOR
public static final java.lang.String APP_VERSION_TINY
public static final java.lang.String APP_VERSION_SUFFIX
Full releases do not have a suffix. In that case, the suffix is the empty string (not null).
public static final ArchitectVersion APP_VERSION
| Constructor Detail |
|---|
public ArchitectVersion(java.lang.String version)
version - The version string| Method Detail |
|---|
public java.lang.String toString()
ArchitectVersion(String) constructor.
toString in class java.lang.Objectpublic java.lang.Object[] getParts()
public int compareTo(ArchitectVersion o)
If two versions differ only as far as one having a suffix and the other not having a suffix, the one without the suffix is considered newer. This allows the natural idea that the following are in chronological order:
compareTo in interface java.lang.Comparable<ArchitectVersion>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||