Package org.apache.maven.model.v3_0_0
Class Version
java.lang.Object
org.apache.maven.model.v3_0_0.Version
- All Implemented Interfaces:
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:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetId()Get a unique identifier for a version.getName()Get the external version number under which this release was distributed.getTag()Get the name given in the SCM (e.g.voidSet a unique identifier for a version.voidSet the external version number under which this release was distributed.voidSet the name given in the SCM (e.g.toString()
-
Constructor Details
-
Version
public Version()
-
-
Method Details
-
getId
Get a unique identifier for a version. This is usually identical to the name.- Returns:
- 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.2etc.- Returns:
- 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
Set a unique identifier for a version. This is usually identical to the name.- Parameters:
id- a id object.
-
setName
Set the external version number under which this release was distributed. Examples include:1.0,1.1-alpha1,1.2-beta,1.3.2etc.- Parameters:
name- a name object.
-
setTag
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- a tag object.
-
toString
-