Package org.openstreetmap.josm.data
Class Version
java.lang.Object
org.openstreetmap.josm.data.Version
Provides basic information about the currently used JOSM build.
- Since:
- 2358
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the User-Agent stringgetAgentString(boolean includeOsDetails) Returns the User-Agent string, with or without OS detailsReturns the full User-Agent stringstatic VersionReplies the unique instance of the version informationReplies a text with the release attributesgetTime()Replies the build date as stringintReplies the JOSM version.Replies the version string.voidinit()Initializes version infoprotected voidinitFromRevisionInfo(InputStream revisionInfo) Initializes the version info from the revision resource filebooleanReplies true if this is a local build, i.e.
-
Field Details
-
JOSM_UNKNOWN_VERSION
constant to indicate that the current build isn't assigned a JOSM version number- See Also:
-
instance
the unique instance -
version
-
releaseDescription
-
time
-
buildName
-
isLocalBuild
-
-
Constructor Details
-
Version
public Version()
-
-
Method Details
-
getInstance
Replies the unique instance of the version information- Returns:
- the unique instance of the version information
-
initFromRevisionInfo
Initializes the version info from the revision resource file- Parameters:
revisionInfo- the revision info from a revision resource file as InputStream
-
init
Initializes version info -
getVersionString
Replies the version string. Either the SVN revision "1234" (as string) or the the I18n equivalent of "UNKNOWN".- Returns:
- the JOSM version
-
getReleaseAttributes
Replies a text with the release attributes- Returns:
- a text with the release attributes
-
getTime
Replies the build date as string- Returns:
- the build date as string
-
getVersion
Replies the JOSM version. RepliesJOSM_UNKNOWN_VERSIONif the version isn't known.- Returns:
- the JOSM version
-
isLocalBuild
Replies true if this is a local build, i.e. an unofficial development build.- Returns:
- true if this is a local build, i.e. an unofficial development build.
-
getAgentString
Returns the User-Agent string- Returns:
- The User-Agent
-
getAgentString
Returns the User-Agent string, with or without OS details- Parameters:
includeOsDetails- Append Operating System details at the end of the User-Agent- Returns:
- The User-Agent
- Since:
- 5956
-
getFullAgentString
Returns the full User-Agent string- Returns:
- The User-Agent
- Since:
- 5868
-