Package gov.nist.secauto.metaschema.core
Class MetaschemaJavaVersion
java.lang.Object
gov.nist.secauto.metaschema.core.MetaschemaJavaVersion
- All Implemented Interfaces:
IVersionInfo
Provides version information for this library.
This class exposes build-time metadata including version numbers, build timestamps, and Git repository information.
-
Constructor Summary
Constructors -
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.
-
Constructor Details
-
MetaschemaJavaVersion
public MetaschemaJavaVersion()
-
-
Method Details
-
getName
Description copied from interface:IVersionInfoThe subject's name.- Specified by:
getNamein interfaceIVersionInfo- Returns:
- the name
-
getVersion
Description copied from interface:IVersionInfoThe subject's version.- Specified by:
getVersionin interfaceIVersionInfo- Returns:
- the version
-
getBuildTimestamp
Description copied from interface:IVersionInfoThe time the subject was last built.- Specified by:
getBuildTimestampin interfaceIVersionInfo- Returns:
- the build time
-
getGitOriginUrl
Description copied from interface:IVersionInfoThe git repository URL used to retrieve the branch.- Specified by:
getGitOriginUrlin interfaceIVersionInfo- Returns:
- the git repository URL
-
getGitCommit
Description copied from interface:IVersionInfoThe last git commit hash.- Specified by:
getGitCommitin interfaceIVersionInfo- Returns:
- the commit hash
-
getGitBranch
Description copied from interface:IVersionInfoThe current git branch.- Specified by:
getGitBranchin interfaceIVersionInfo- Returns:
- the git branch
-
getGitClosestTag
Description copied from interface:IVersionInfoThe closest tag in the git commit history.- Specified by:
getGitClosestTagin interfaceIVersionInfo- Returns:
- a tag name
-