Modifier and Type | Field and Description |
---|---|
private String |
buildName |
private static Version |
instance
the unique instance
|
private boolean |
isLocalBuild |
static int |
JOSM_UNKNOWN_VERSION
constant to indicate that the current build isn't assigned a JOSM version number
|
private String |
releaseDescription |
private String |
time |
private int |
version |
Constructor and Description |
---|
Version() |
Modifier and Type | Method and Description |
---|---|
String |
getAgentString()
Returns the User-Agent string
|
String |
getAgentString(boolean includeOsDetails)
Returns the User-Agent string, with or without OS details
|
String |
getFullAgentString()
Returns the full User-Agent string
|
static Version |
getInstance()
Replies the unique instance of the version information
|
String |
getReleaseAttributes()
Replies a text with the release attributes
|
String |
getTime()
Replies the build date as string
|
int |
getVersion()
Replies the JOSM version.
|
String |
getVersionString()
Replies the version string.
|
void |
init()
Initializes version info
|
protected void |
initFromRevisionInfo(InputStream revisionInfo)
Initializes the version infos from the revision resource file
|
boolean |
isLocalBuild()
Replies true if this is a local build, i.e.
|
public static final int JOSM_UNKNOWN_VERSION
private int version
private String releaseDescription
private boolean isLocalBuild
public Version()
public static Version getInstance()
protected void initFromRevisionInfo(InputStream revisionInfo)
revisionInfo
- the revision info from a revision resource file as InputStreampublic void init()
public String getVersionString()
public String getReleaseAttributes()
public int getVersion()
JOSM_UNKNOWN_VERSION
if the version isn't known.public boolean isLocalBuild()
public String getAgentString()
public String getAgentString(boolean includeOsDetails)
includeOsDetails
- Append Operating System details at the end of the User-Agentpublic String getFullAgentString()