Package com.powsybl.tools
Class AbstractVersion
- java.lang.Object
-
- com.powsybl.tools.AbstractVersion
-
- All Implemented Interfaces:
Version
- Direct Known Subclasses:
PowsyblCoreVersion
public abstract class AbstractVersion extends Object implements Version
- Author:
- Geoffroy Jamgotchian
-
-
Field Summary
Fields Modifier and Type Field Description protected long
buildTimestamp
protected String
gitBranch
protected String
gitVersion
protected String
mavenProjectVersion
protected String
repositoryName
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractVersion(String repositoryName, String mavenProjectVersion, String gitVersion, String gitBranch, long buildTimestamp)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getBuildTimestamp()
String
getGitBranch()
String
getGitVersion()
String
getMavenProjectVersion()
String
getRepositoryName()
Map<String,String>
toMap()
String
toString()
-
-
-
Method Detail
-
getRepositoryName
public String getRepositoryName()
- Specified by:
getRepositoryName
in interfaceVersion
-
getGitVersion
public String getGitVersion()
- Specified by:
getGitVersion
in interfaceVersion
-
getMavenProjectVersion
public String getMavenProjectVersion()
- Specified by:
getMavenProjectVersion
in interfaceVersion
-
getGitBranch
public String getGitBranch()
- Specified by:
getGitBranch
in interfaceVersion
-
getBuildTimestamp
public long getBuildTimestamp()
- Specified by:
getBuildTimestamp
in interfaceVersion
-
-