Package gov.nist.secauto.metaschema.core
Class MetaschemaJavaVersion
java.lang.Object
gov.nist.secauto.metaschema.core.MetaschemaJavaVersion
- All Implemented Interfaces:
IVersionInfo
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionThe time the subject was last built.The current git branch.The closest tag in the git commit history.The last git commit hash.The git repository URL used to retrieve the branch.getName()
The subject's name.The subject's version.
-
Field Details
-
NAME
- See Also:
-
VERSION
- See Also:
-
BUILD_TIMESTAMP
- See Also:
-
COMMIT
- See Also:
-
BRANCH
- See Also:
-
CLOSEST_TAG
- See Also:
-
ORIGIN
- See Also:
-
-
Constructor Details
-
MetaschemaJavaVersion
public MetaschemaJavaVersion()
-
-
Method Details
-
getName
Description copied from interface:IVersionInfo
The subject's name.- Specified by:
getName
in interfaceIVersionInfo
- Returns:
- the name
-
getVersion
Description copied from interface:IVersionInfo
The subject's version.- Specified by:
getVersion
in interfaceIVersionInfo
- Returns:
- the version
-
getBuildTimestamp
Description copied from interface:IVersionInfo
The time the subject was last built.- Specified by:
getBuildTimestamp
in interfaceIVersionInfo
- Returns:
- the build time
-
getGitOriginUrl
Description copied from interface:IVersionInfo
The git repository URL used to retrieve the branch.- Specified by:
getGitOriginUrl
in interfaceIVersionInfo
- Returns:
- the git repository URL
-
getGitCommit
Description copied from interface:IVersionInfo
The last git commit hash.- Specified by:
getGitCommit
in interfaceIVersionInfo
- Returns:
- the commit hash
-
getGitBranch
Description copied from interface:IVersionInfo
The current git branch.- Specified by:
getGitBranch
in interfaceIVersionInfo
- Returns:
- the git branch
-
getGitClosestTag
Description copied from interface:IVersionInfo
The closest tag in the git commit history.- Specified by:
getGitClosestTag
in interfaceIVersionInfo
- Returns:
- a tag name
-