org.codehaus.mojo.buildhelper
Class OsgiArtifactVersion

java.lang.Object
  extended by org.codehaus.mojo.buildhelper.OsgiArtifactVersion
All Implemented Interfaces:
Comparable, ArtifactVersion

public class OsgiArtifactVersion
extends Object
implements ArtifactVersion

Default implementation of artifact versioning.

Version:
$Id: OsgiArtifactVersion.java 14209 2011-06-21 21:49:10Z rfscholte $
Author:
Robert Scholte

Constructor Summary
OsgiArtifactVersion(String version)
          Constructor for OsgiArtifactVersion.
 
Method Summary
 int compareTo(Object o)
          
 int getBuildNumber()
          Getter for the field buildNumber.
 int getIncrementalVersion()
          Getter for the field incrementalVersion.
 int getMajorVersion()
          Getter for the field majorVersion.
 int getMinorVersion()
          Getter for the field minorVersion.
 String getQualifier()
          Getter for the field qualifier.
 void parseVersion(String version)
          
 String toString()
          toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OsgiArtifactVersion

public OsgiArtifactVersion(String version)

Constructor for OsgiArtifactVersion.

Parameters:
version - a String object.
Method Detail

compareTo

public int compareTo(Object o)

Specified by:
compareTo in interface Comparable

getMajorVersion

public int getMajorVersion()

Getter for the field majorVersion.

Specified by:
getMajorVersion in interface ArtifactVersion
Returns:
a int.

getMinorVersion

public int getMinorVersion()

Getter for the field minorVersion.

Specified by:
getMinorVersion in interface ArtifactVersion
Returns:
a int.

getIncrementalVersion

public int getIncrementalVersion()

Getter for the field incrementalVersion.

Specified by:
getIncrementalVersion in interface ArtifactVersion
Returns:
a int.

getBuildNumber

public int getBuildNumber()

Getter for the field buildNumber.

Specified by:
getBuildNumber in interface ArtifactVersion
Returns:
a int.

getQualifier

public String getQualifier()

Getter for the field qualifier.

Specified by:
getQualifier in interface ArtifactVersion
Returns:
a String object.

parseVersion

public void parseVersion(String version)

Specified by:
parseVersion in interface ArtifactVersion

toString

public String toString()

toString

Overrides:
toString in class Object
Returns:
a String object.


Copyright © 2005-2012 Codehaus. All Rights Reserved.