Package rs.baselib.util
Class ReleaseInformation
java.lang.Object
rs.baselib.util.ReleaseInformation
public class ReleaseInformation
extends java.lang.Object
Holds release information about packages, artifacts and versions.
- Author:
- ralph
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringKEY_ARTIFACT_IDThe Maven Artifact ID key (artifactId)static java.lang.StringKEY_BUILD_DATEThe build date, e.g.static java.lang.StringKEY_GROUP_IDThe Maven Group ID key (groupId)static java.lang.StringKEY_NAMEThe Maven name key (name)static java.lang.StringKEY_SVN_COMMITTED_DATEThe Subversion committed date key (committedDate), e.g.static java.lang.StringKEY_SVN_COMMITTED_REVISIONThe Subversion committed revision key (committedRevision)static java.lang.StringKEY_SVN_MIXED_REVISIONSThe Subversion mixed revision key (mixedRevisions)static java.lang.StringKEY_SVN_PATHThe Subversion path key (path)static java.lang.StringKEY_SVN_REPOSITORYThe Subversion repository key (repository)static java.lang.StringKEY_SVN_REVISIONThe Subversion revision key (revision)static java.lang.StringKEY_SVN_SPECIAL_STATUSThe Subversion special status key (specialStatus)static java.lang.StringKEY_SVN_STATUSThe Subversion status key (status)static java.lang.StringKEY_VERSIONThe Maven version key (version) -
Constructor Summary
Constructors Constructor Description ReleaseInformation()Constructor. -
Method Summary
Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.StringgetArtifactId()Returns the artifactId.RsDategetBuildDate()Returns the buildDate.java.lang.StringgetGroupId()Returns the groupId.java.lang.StringgetName()Returns the name.RsDategetSvnCommittedDate()Returns the svnCommittedDate.longgetSvnCommittedRevision()Returns the svnCommittedRevision.java.lang.StringgetSvnPath()Returns the svnPath.java.lang.StringgetSvnRepository()Returns the svnRepository.longgetSvnRevision()Returns the svnRevision.java.lang.StringgetSvnSpecialStatus()Returns the svnSpecialStatus.java.lang.StringgetSvnStatus()Returns the svnStatus.java.lang.StringgetVersion()Returns the version.inthashCode()booleanisSnapshot()Returns whether this is a Snapshot version.booleanisSvnMixedRevisions()Returns the svnMixedRevisions.booleanisValid()Checks whether this info is valid.voidset(java.lang.String key, java.lang.String value)Sets the information with given key.voidsetArtifactId(java.lang.String artifactId)Sets the artifactId.voidsetBuildDate(java.util.Date buildDate)Sets the buildDate.voidsetBuildDate(RsDate buildDate)Sets the buildDate.voidsetGroupId(java.lang.String groupId)Sets the groupId.voidsetName(java.lang.String name)Sets the name.voidsetSvnCommittedDate(java.util.Date svnCommittedDate)Sets the svnCommittedDate.voidsetSvnCommittedDate(RsDate svnCommittedDate)Sets the svnCommittedDate.voidsetSvnCommittedRevision(long svnCommittedRevision)Sets the svnCommittedRevision.voidsetSvnMixedRevisions(boolean svnMixedRevisions)Sets the svnMixedRevisions.voidsetSvnPath(java.lang.String svnPath)Sets the svnPath.voidsetSvnRepository(java.lang.String svnRepository)Sets the svnRepository.voidsetSvnRevision(long svnRevision)Sets the svnRevision.voidsetSvnSpecialStatus(java.lang.String svnSpecialStatus)Sets the svnSpecialStatus.voidsetSvnStatus(java.lang.String svnStatus)Sets the svnStatus.voidsetVersion(java.lang.String version)Sets the version.java.lang.StringtoString()
-
Field Details
-
KEY_GROUP_ID
public static final java.lang.String KEY_GROUP_IDThe Maven Group ID key (groupId)- See Also:
- Constant Field Values
-
KEY_ARTIFACT_ID
public static final java.lang.String KEY_ARTIFACT_IDThe Maven Artifact ID key (artifactId)- See Also:
- Constant Field Values
-
KEY_VERSION
public static final java.lang.String KEY_VERSIONThe Maven version key (version)- See Also:
- Constant Field Values
-
KEY_NAME
public static final java.lang.String KEY_NAMEThe Maven name key (name)- See Also:
- Constant Field Values
-
KEY_SVN_REPOSITORY
public static final java.lang.String KEY_SVN_REPOSITORYThe Subversion repository key (repository)- See Also:
- Constant Field Values
-
KEY_SVN_PATH
public static final java.lang.String KEY_SVN_PATHThe Subversion path key (path)- See Also:
- Constant Field Values
-
KEY_SVN_REVISION
public static final java.lang.String KEY_SVN_REVISIONThe Subversion revision key (revision)- See Also:
- Constant Field Values
-
KEY_SVN_MIXED_REVISIONS
public static final java.lang.String KEY_SVN_MIXED_REVISIONSThe Subversion mixed revision key (mixedRevisions)- See Also:
- Constant Field Values
-
KEY_SVN_COMMITTED_REVISION
public static final java.lang.String KEY_SVN_COMMITTED_REVISIONThe Subversion committed revision key (committedRevision)- See Also:
- Constant Field Values
-
KEY_SVN_COMMITTED_DATE
public static final java.lang.String KEY_SVN_COMMITTED_DATEThe Subversion committed date key (committedDate), e.g. 2012-12-19 11:17:24 +0100- See Also:
- Constant Field Values
-
KEY_SVN_STATUS
public static final java.lang.String KEY_SVN_STATUSThe Subversion status key (status)- See Also:
- Constant Field Values
-
KEY_SVN_SPECIAL_STATUS
public static final java.lang.String KEY_SVN_SPECIAL_STATUSThe Subversion special status key (specialStatus)- See Also:
- Constant Field Values
-
KEY_BUILD_DATE
public static final java.lang.String KEY_BUILD_DATEThe build date, e.g. 2012-12-19 11:17:24 +0100- See Also:
- Constant Field Values
-
-
Constructor Details
-
ReleaseInformation
public ReleaseInformation()Constructor.
-
-
Method Details
-
getGroupId
public java.lang.String getGroupId()Returns the groupId.- Returns:
- the groupId
-
setGroupId
public void setGroupId(java.lang.String groupId)Sets the groupId.- Parameters:
groupId- the groupId to set
-
getArtifactId
public java.lang.String getArtifactId()Returns the artifactId.- Returns:
- the artifactId
-
setArtifactId
public void setArtifactId(java.lang.String artifactId)Sets the artifactId.- Parameters:
artifactId- the artifactId to set
-
getVersion
public java.lang.String getVersion()Returns the version.- Returns:
- the version
-
setVersion
public void setVersion(java.lang.String version)Sets the version.- Parameters:
version- the version to set
-
getName
public java.lang.String getName()Returns the name.- Returns:
- the name
-
setName
public void setName(java.lang.String name)Sets the name.- Parameters:
name- the name to set
-
getSvnRepository
public java.lang.String getSvnRepository()Returns the svnRepository.- Returns:
- the svnRepository
-
setSvnRepository
public void setSvnRepository(java.lang.String svnRepository)Sets the svnRepository.- Parameters:
svnRepository- the svnRepository to set
-
getSvnPath
public java.lang.String getSvnPath()Returns the svnPath.- Returns:
- the svnPath
-
setSvnPath
public void setSvnPath(java.lang.String svnPath)Sets the svnPath.- Parameters:
svnPath- the svnPath to set
-
getSvnRevision
public long getSvnRevision()Returns the svnRevision.- Returns:
- the svnRevision
-
setSvnRevision
public void setSvnRevision(long svnRevision)Sets the svnRevision.- Parameters:
svnRevision- the svnRevision to set
-
isSvnMixedRevisions
public boolean isSvnMixedRevisions()Returns the svnMixedRevisions.- Returns:
- the svnMixedRevisions
-
setSvnMixedRevisions
public void setSvnMixedRevisions(boolean svnMixedRevisions)Sets the svnMixedRevisions.- Parameters:
svnMixedRevisions- the svnMixedRevisions to set
-
getSvnCommittedRevision
public long getSvnCommittedRevision()Returns the svnCommittedRevision.- Returns:
- the svnCommittedRevision
-
setSvnCommittedRevision
public void setSvnCommittedRevision(long svnCommittedRevision)Sets the svnCommittedRevision.- Parameters:
svnCommittedRevision- the svnCommittedRevision to set
-
getSvnCommittedDate
Returns the svnCommittedDate.- Returns:
- the svnCommittedDate
-
setSvnCommittedDate
Sets the svnCommittedDate.- Parameters:
svnCommittedDate- the svnCommittedDate to set
-
setSvnCommittedDate
public void setSvnCommittedDate(java.util.Date svnCommittedDate)Sets the svnCommittedDate.- Parameters:
svnCommittedDate- the svnCommittedDate to set
-
getSvnStatus
public java.lang.String getSvnStatus()Returns the svnStatus.- Returns:
- the svnStatus
-
setSvnStatus
public void setSvnStatus(java.lang.String svnStatus)Sets the svnStatus.- Parameters:
svnStatus- the svnStatus to set
-
getSvnSpecialStatus
public java.lang.String getSvnSpecialStatus()Returns the svnSpecialStatus.- Returns:
- the svnSpecialStatus
-
setSvnSpecialStatus
public void setSvnSpecialStatus(java.lang.String svnSpecialStatus)Sets the svnSpecialStatus.- Parameters:
svnSpecialStatus- the svnSpecialStatus to set
-
getBuildDate
Returns the buildDate.- Returns:
- the buildDate
-
setBuildDate
Sets the buildDate.- Parameters:
buildDate- the buildDate to set
-
setBuildDate
public void setBuildDate(java.util.Date buildDate)Sets the buildDate.- Parameters:
buildDate- the buildDate to set
-
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)- Overrides:
equalsin classjava.lang.Object
-
set
public void set(java.lang.String key, java.lang.String value) throws java.text.ParseExceptionSets the information with given key.- Parameters:
key- key stringvalue- value string (will be converted)- Throws:
java.text.ParseException- when the information cannot be parsed
-
isValid
public boolean isValid()Checks whether this info is valid.- Returns:
- true when the key information is present.
-
isSnapshot
public boolean isSnapshot()Returns whether this is a Snapshot version.The method returns
truewhen the version is eithernullor the version ends with "-SNAPSHOT".- Returns:
truewhen this is a snapshot version- Since:
- 1.2.4
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-