org.apache.maven.artifact.versioning
Class DefaultArtifactVersion

java.lang.Object
  extended by org.apache.maven.artifact.versioning.DefaultArtifactVersion
All Implemented Interfaces:
Comparable, ArtifactVersion

public class DefaultArtifactVersion
extends Object
implements ArtifactVersion

Default implementation of artifact versioning.

Version:
$Id: DefaultArtifactVersion.java 674059 2008-07-04 14:04:24Z brett $
Author:
Brett Porter

Constructor Summary
DefaultArtifactVersion(String version)
           
 
Method Summary
 int compareTo(Object o)
           
 boolean equals(Object other)
           
 int getBuildNumber()
           
 int getIncrementalVersion()
           
 int getMajorVersion()
           
 int getMinorVersion()
           
 String getQualifier()
           
 int hashCode()
           
 void parseVersion(String version)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultArtifactVersion

public DefaultArtifactVersion(String version)
Method Detail

compareTo

public int compareTo(Object o)
Specified by:
compareTo in interface Comparable

getMajorVersion

public int getMajorVersion()
Specified by:
getMajorVersion in interface ArtifactVersion

getMinorVersion

public int getMinorVersion()
Specified by:
getMinorVersion in interface ArtifactVersion

getIncrementalVersion

public int getIncrementalVersion()
Specified by:
getIncrementalVersion in interface ArtifactVersion

getBuildNumber

public int getBuildNumber()
Specified by:
getBuildNumber in interface ArtifactVersion

getQualifier

public String getQualifier()
Specified by:
getQualifier in interface ArtifactVersion

parseVersion

public final void parseVersion(String version)
Specified by:
parseVersion in interface ArtifactVersion

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object other)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2001-2009 The Apache Software Foundation. All Rights Reserved.