public class YouScopeVersion
extends java.lang.Object
Does not depend on any library jar files.
Constructor and Description |
---|
YouScopeVersion(java.lang.String applicationName)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getApplicationName()
Returns the name of the (sub-) application/library which is versioned.
|
java.lang.String |
getCPUArchitecture() |
java.util.List<java.lang.String> |
getEnvironmentInfo()
Returns version, build number, Java VM, and OS as a
List with four entries. |
java.lang.String |
getFullVersion()
Returns the version accompanied by the build number of the software (if known).
|
java.lang.String |
getJavaVM() |
java.lang.String |
getMajorVersion() |
java.lang.String |
getOS() |
java.lang.String |
getRevision() |
java.lang.String |
getVersion() |
boolean |
isCleanSources() |
java.lang.String |
toString()
Returns version, build number, Java VM, and OS in a four-liner as one
String . |
public YouScopeVersion(java.lang.String applicationName)
applicationName
- The part of YouScope (client, server,...). for which the Version should be returned.public final java.lang.String getCPUArchitecture()
public final java.lang.String getOS()
public final java.lang.String getJavaVM()
public final java.lang.String getVersion()
public final boolean isCleanSources()
true
if the versioned entities of the working copy have been clean when
this build has been made, in other words, whether the revision given by getRevision()
does really identify the source that is build has been
produced from.public final java.lang.String getRevision()
public final java.lang.String getFullVersion()
public java.lang.String getApplicationName()
public final java.util.List<java.lang.String> getEnvironmentInfo()
List
with four entries.public final java.lang.String toString()
String
.toString
in class java.lang.Object
public java.lang.String getMajorVersion()