Class Version

java.lang.Object
org.apache.maven.model.v3_0_0.Version
All Implemented Interfaces:
Serializable

public class Version extends Object implements Serializable
This element describes each of the previous versions of the project. Each version is described by a version element .
Version:
$Revision$ $Date$
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private String
    A unique identifier for a version.
    private String
    The external version number under which this release was distributed.
    private String
    The name given in the SCM (e.g.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Get a unique identifier for a version.
    Get the external version number under which this release was distributed.
    Get the name given in the SCM (e.g.
    void
    Set a unique identifier for a version.
    void
    Set the external version number under which this release was distributed.
    void
    Set the name given in the SCM (e.g.
     

    Methods inherited from class java.lang.Object

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

    • name

      private String name
      The external version number under which this release was distributed. Examples include: 1.0, 1.1-alpha1, 1.2-beta, 1.3.2 etc.
    • tag

      private String tag
      The name given in the SCM (e.g. CVS) used by the project for the source code associated with this version of the project.
    • id

      private String id
      A unique identifier for a version. This is usually identical to the name.
  • Constructor Details

    • Version

      public Version()
  • Method Details

    • getId

      public String getId()
      Get a unique identifier for a version. This is usually identical to the name.
      Returns:
      String
    • getName

      public String getName()
      Get the external version number under which this release was distributed. Examples include: 1.0, 1.1-alpha1, 1.2-beta, 1.3.2 etc.
      Returns:
      String
    • getTag

      public String getTag()
      Get the name given in the SCM (e.g. CVS) used by the project for the source code associated with this version of the project.
      Returns:
      String
    • setId

      public void setId(String id)
      Set a unique identifier for a version. This is usually identical to the name.
      Parameters:
      id -
    • setName

      public void setName(String name)
      Set the external version number under which this release was distributed. Examples include: 1.0, 1.1-alpha1, 1.2-beta, 1.3.2 etc.
      Parameters:
      name -
    • setTag

      public void setTag(String tag)
      Set the name given in the SCM (e.g. CVS) used by the project for the source code associated with this version of the project.
      Parameters:
      tag -
    • toString

      public String toString()
      Overrides:
      toString in class Object
      See Also: