org.apache.maven.model
Class Version

java.lang.Object
  extended byorg.apache.maven.model.Version
All Implemented Interfaces:
java.io.Serializable

public class Version
extends java.lang.Object
implements java.io.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:
Serialized Form

Field Summary
private  java.lang.String id
          Field id
private  java.lang.String modelEncoding
           
private  java.lang.String name
          Field name
private  java.lang.String tag
          Field tag
 
Constructor Summary
Version()
           
 
Method Summary
 java.lang.String getId()
          Get A unique identifier for a version.
 java.lang.String getModelEncoding()
           
 java.lang.String getName()
          Get The external version number under which this release was distributed.
 java.lang.String getTag()
          Get The name given in the version control system (e.g.
 void setId(java.lang.String id)
          Set A unique identifier for a version.
 void setModelEncoding(java.lang.String modelEncoding)
           
 void setName(java.lang.String name)
          Set The external version number under which this release was distributed.
 void setTag(java.lang.String tag)
          Set The name given in the version control system (e.g.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

private java.lang.String name
Field name


tag

private java.lang.String tag
Field tag


id

private java.lang.String id
Field id


modelEncoding

private java.lang.String modelEncoding
Constructor Detail

Version

public Version()
Method Detail

getId

public java.lang.String getId()
Get A unique identifier for a version. This ID is used to specify the version that maven:dist builds.


getName

public java.lang.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.


getTag

public java.lang.String getTag()
Get The name given in the version control system (e.g. cvs) used by the project for the source code associated with this version of the project.


setId

public void setId(java.lang.String id)
Set A unique identifier for a version. This ID is used to specify the version that maven:dist builds.

Parameters:
id -

setName

public void setName(java.lang.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(java.lang.String tag)
Set The name given in the version control system (e.g. cvs) used by the project for the source code associated with this version of the project.

Parameters:
tag -

toString

public java.lang.String toString()

setModelEncoding

public void setModelEncoding(java.lang.String modelEncoding)

getModelEncoding

public java.lang.String getModelEncoding()