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.String KEY_ARTIFACT_ID
    The Maven Artifact ID key (artifactId)
    static java.lang.String KEY_BUILD_DATE
    The build date, e.g.
    static java.lang.String KEY_GROUP_ID
    The Maven Group ID key (groupId)
    static java.lang.String KEY_NAME
    The Maven name key (name)
    static java.lang.String KEY_SVN_COMMITTED_DATE
    The Subversion committed date key (committedDate), e.g.
    static java.lang.String KEY_SVN_COMMITTED_REVISION
    The Subversion committed revision key (committedRevision)
    static java.lang.String KEY_SVN_MIXED_REVISIONS
    The Subversion mixed revision key (mixedRevisions)
    static java.lang.String KEY_SVN_PATH
    The Subversion path key (path)
    static java.lang.String KEY_SVN_REPOSITORY
    The Subversion repository key (repository)
    static java.lang.String KEY_SVN_REVISION
    The Subversion revision key (revision)
    static java.lang.String KEY_SVN_SPECIAL_STATUS
    The Subversion special status key (specialStatus)
    static java.lang.String KEY_SVN_STATUS
    The Subversion status key (status)
    static java.lang.String KEY_VERSION
    The Maven version key (version)
  • Constructor Summary

    Constructors 
    Constructor Description
    ReleaseInformation()
    Constructor.
  • Method Summary

    Modifier and Type Method Description
    boolean equals​(java.lang.Object obj)
    java.lang.String getArtifactId()
    Returns the artifactId.
    RsDate getBuildDate()
    Returns the buildDate.
    java.lang.String getGroupId()
    Returns the groupId.
    java.lang.String getName()
    Returns the name.
    RsDate getSvnCommittedDate()
    Returns the svnCommittedDate.
    long getSvnCommittedRevision()
    Returns the svnCommittedRevision.
    java.lang.String getSvnPath()
    Returns the svnPath.
    java.lang.String getSvnRepository()
    Returns the svnRepository.
    long getSvnRevision()
    Returns the svnRevision.
    java.lang.String getSvnSpecialStatus()
    Returns the svnSpecialStatus.
    java.lang.String getSvnStatus()
    Returns the svnStatus.
    java.lang.String getVersion()
    Returns the version.
    int hashCode()
    boolean isSnapshot()
    Returns whether this is a Snapshot version.
    boolean isSvnMixedRevisions()
    Returns the svnMixedRevisions.
    boolean isValid()
    Checks whether this info is valid.
    void set​(java.lang.String key, java.lang.String value)
    Sets the information with given key.
    void setArtifactId​(java.lang.String artifactId)
    Sets the artifactId.
    void setBuildDate​(java.util.Date buildDate)
    Sets the buildDate.
    void setBuildDate​(RsDate buildDate)
    Sets the buildDate.
    void setGroupId​(java.lang.String groupId)
    Sets the groupId.
    void setName​(java.lang.String name)
    Sets the name.
    void setSvnCommittedDate​(java.util.Date svnCommittedDate)
    Sets the svnCommittedDate.
    void setSvnCommittedDate​(RsDate svnCommittedDate)
    Sets the svnCommittedDate.
    void setSvnCommittedRevision​(long svnCommittedRevision)
    Sets the svnCommittedRevision.
    void setSvnMixedRevisions​(boolean svnMixedRevisions)
    Sets the svnMixedRevisions.
    void setSvnPath​(java.lang.String svnPath)
    Sets the svnPath.
    void setSvnRepository​(java.lang.String svnRepository)
    Sets the svnRepository.
    void setSvnRevision​(long svnRevision)
    Sets the svnRevision.
    void setSvnSpecialStatus​(java.lang.String svnSpecialStatus)
    Sets the svnSpecialStatus.
    void setSvnStatus​(java.lang.String svnStatus)
    Sets the svnStatus.
    void setVersion​(java.lang.String version)
    Sets the version.
    java.lang.String toString()

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

  • Constructor Details

  • 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

      public RsDate getSvnCommittedDate()
      Returns the svnCommittedDate.
      Returns:
      the svnCommittedDate
    • setSvnCommittedDate

      public void setSvnCommittedDate​(RsDate svnCommittedDate)
      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

      public RsDate getBuildDate()
      Returns the buildDate.
      Returns:
      the buildDate
    • setBuildDate

      public void setBuildDate​(RsDate buildDate)
      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:
      hashCode in class java.lang.Object
    • equals

      public boolean equals​(java.lang.Object obj)
      Overrides:
      equals in class java.lang.Object
    • set

      public void set​(java.lang.String key, java.lang.String value) throws java.text.ParseException
      Sets the information with given key.
      Parameters:
      key - key string
      value - 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 true when the version is either null or the version ends with "-SNAPSHOT".

      Returns:
      true when this is a snapshot version
      Since:
      1.2.4
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object