org.codehaus.mojo.versions.api
Class AbstractVersionDetails

java.lang.Object
  extended by org.codehaus.mojo.versions.api.AbstractVersionDetails
All Implemented Interfaces:
VersionDetails
Direct Known Subclasses:
ArtifactVersions, PropertyVersions

public abstract class AbstractVersionDetails
extends Object
implements VersionDetails

Base class for VersionDetails.

Since:
1.0-beta-1
Author:
Stephen Connolly

Constructor Summary
protected AbstractVersionDetails()
           
protected AbstractVersionDetails(org.apache.maven.artifact.versioning.ArtifactVersion currentVersion, boolean includeSnapshots)
           
 
Method Summary
 boolean containsVersion(String version)
          Returns true if the specific version is in the list of versions.
 org.apache.maven.artifact.versioning.ArtifactVersion[] getAllUpdates(org.apache.maven.artifact.versioning.ArtifactVersion currentVersion, UpdateScope updateScope)
          Returns the all versions newer than the specified current version, but within the the specified update scope.
 org.apache.maven.artifact.versioning.ArtifactVersion[] getAllUpdates(org.apache.maven.artifact.versioning.ArtifactVersion currentVersion, UpdateScope updateScope, boolean includeSnapshots)
          Returns the all versions newer than the specified current version, but within the the specified update scope.
 org.apache.maven.artifact.versioning.ArtifactVersion[] getAllUpdates(org.apache.maven.artifact.versioning.ArtifactVersion currentVersion, org.apache.maven.artifact.versioning.VersionRange versionRange)
          Returns the all versions newer than the specified current version, but within the the specified update scope.
 org.apache.maven.artifact.versioning.ArtifactVersion[] getAllUpdates(org.apache.maven.artifact.versioning.ArtifactVersion currentVersion, org.apache.maven.artifact.versioning.VersionRange versionRange, boolean includeSnapshots)
          Returns the all versions newer than the specified current version, but within the the specified update scope.
 org.apache.maven.artifact.versioning.ArtifactVersion[] getAllUpdates(UpdateScope updateScope)
          Returns the all versions newer than the specified current version, but within the the specified update scope.
 org.apache.maven.artifact.versioning.ArtifactVersion[] getAllUpdates(UpdateScope updateScope, boolean includeSnapshots)
          Returns the all versions newer than the specified current version, but within the the specified update scope.
 org.apache.maven.artifact.versioning.ArtifactVersion[] getAllUpdates(org.apache.maven.artifact.versioning.VersionRange versionRange)
          Returns the all versions newer than the specified current version, but within the the specified update scope.
 org.apache.maven.artifact.versioning.ArtifactVersion[] getAllUpdates(org.apache.maven.artifact.versioning.VersionRange versionRange, boolean includeSnapshots)
          Returns the all versions newer than the specified current version, but within the the specified update scope.
 org.apache.maven.artifact.versioning.ArtifactVersion getCurrentVersion()
          Retrieves the current version.
 org.apache.maven.artifact.versioning.ArtifactVersion[] getNewerVersions(String version, boolean includeSnapshots)
           
 org.apache.maven.artifact.versioning.ArtifactVersion getNewestUpdate(org.apache.maven.artifact.versioning.ArtifactVersion currentVersion, UpdateScope updateScope)
          Returns the newest version newer than the specified current version, but within the the specified update scope or null if no such version exists.
 org.apache.maven.artifact.versioning.ArtifactVersion getNewestUpdate(org.apache.maven.artifact.versioning.ArtifactVersion currentVersion, UpdateScope updateScope, boolean includeSnapshots)
          Returns the newest version newer than the specified current version, but within the the specified update scope or null if no such version exists.
 org.apache.maven.artifact.versioning.ArtifactVersion getNewestUpdate(org.apache.maven.artifact.versioning.ArtifactVersion currentVersion, org.apache.maven.artifact.versioning.VersionRange versionRange)
          Returns the newest version newer than the specified current version, but within the the specified update scope or null if no such version exists.
 org.apache.maven.artifact.versioning.ArtifactVersion getNewestUpdate(org.apache.maven.artifact.versioning.ArtifactVersion currentVersion, org.apache.maven.artifact.versioning.VersionRange versionRange, boolean includeSnapshots)
          Returns the newest version newer than the specified current version, but within the the specified update scope or null if no such version exists.
 org.apache.maven.artifact.versioning.ArtifactVersion getNewestUpdate(UpdateScope updateScope)
          Returns the newest version newer than the specified current version, but within the the specified update scope or null if no such version exists.
 org.apache.maven.artifact.versioning.ArtifactVersion getNewestUpdate(UpdateScope updateScope, boolean includeSnapshots)
          Returns the newest version newer than the specified current version, but within the the specified update scope or null if no such version exists.
 org.apache.maven.artifact.versioning.ArtifactVersion getNewestUpdate(org.apache.maven.artifact.versioning.VersionRange versionRange)
          Returns the newest version newer than the specified current version, but within the the specified update scope or null if no such version exists.
 org.apache.maven.artifact.versioning.ArtifactVersion getNewestUpdate(org.apache.maven.artifact.versioning.VersionRange versionRange, boolean includeSnapshots)
          Returns the newest version newer than the specified current version, but within the the specified update scope or null if no such version exists.
 org.apache.maven.artifact.versioning.ArtifactVersion getNewestVersion(org.apache.maven.artifact.versioning.ArtifactVersion lowerBound, org.apache.maven.artifact.versioning.ArtifactVersion upperBound)
          Returns the latest version newer than the specified lowerBound, but less than the specified upper bound or null if no such version exists.
 org.apache.maven.artifact.versioning.ArtifactVersion getNewestVersion(org.apache.maven.artifact.versioning.ArtifactVersion lowerBound, org.apache.maven.artifact.versioning.ArtifactVersion upperBound, boolean includeSnapshots)
          Returns the latest version newer than the specified lowerBound, but less than the specified upper bound or null if no such version exists.
 org.apache.maven.artifact.versioning.ArtifactVersion getNewestVersion(org.apache.maven.artifact.versioning.ArtifactVersion lowerBound, org.apache.maven.artifact.versioning.ArtifactVersion upperBound, boolean includeSnapshots, boolean includeLower, boolean includeUpper)
          Returns the latest version newer than the specified current version, but less than the specified upper bound or null if no such version exists.
 org.apache.maven.artifact.versioning.ArtifactVersion getNewestVersion(org.apache.maven.artifact.versioning.VersionRange versionRange, org.apache.maven.artifact.versioning.ArtifactVersion lowerBound, org.apache.maven.artifact.versioning.ArtifactVersion upperBound, boolean includeSnapshots, boolean includeLower, boolean includeUpper)
          Returns the latest version newer than the specified current version, but less than the specified upper bound or null if no such version exists.
 org.apache.maven.artifact.versioning.ArtifactVersion getNewestVersion(org.apache.maven.artifact.versioning.VersionRange versionRange, boolean includeSnapshots)
          Returns the latest version within the specified version range or null if no such version exists.
 org.apache.maven.artifact.versioning.ArtifactVersion getOldestUpdate(org.apache.maven.artifact.versioning.ArtifactVersion currentVersion, UpdateScope updateScope)
          Returns the oldest version newer than the specified current version, but within the the specified update scope or null if no such version exists.
 org.apache.maven.artifact.versioning.ArtifactVersion getOldestUpdate(org.apache.maven.artifact.versioning.ArtifactVersion currentVersion, UpdateScope updateScope, boolean includeSnapshots)
          Returns the oldest version newer than the specified current version, but within the the specified update scope or null if no such version exists.
 org.apache.maven.artifact.versioning.ArtifactVersion getOldestUpdate(org.apache.maven.artifact.versioning.ArtifactVersion currentVersion, org.apache.maven.artifact.versioning.VersionRange versionRange)
          Returns the oldest version newer than the specified current version, but within the the specified update scope or null if no such version exists.
 org.apache.maven.artifact.versioning.ArtifactVersion getOldestUpdate(org.apache.maven.artifact.versioning.ArtifactVersion currentVersion, org.apache.maven.artifact.versioning.VersionRange versionRange, boolean includeSnapshots)
          Returns the oldest version newer than the specified current version, but within the the specified update scope or null if no such version exists.
 org.apache.maven.artifact.versioning.ArtifactVersion getOldestUpdate(UpdateScope updateScope)
          Returns the oldest version newer than the current version, but within the the specified update scope or null if no such version exists.
 org.apache.maven.artifact.versioning.ArtifactVersion getOldestUpdate(UpdateScope updateScope, boolean includeSnapshots)
          Returns the oldest version newer than the specified current version, but within the the specified update scope or null if no such version exists.
 org.apache.maven.artifact.versioning.ArtifactVersion getOldestUpdate(org.apache.maven.artifact.versioning.VersionRange versionRange)
          Returns the oldest version newer than the current version, but within the the specified update scope or null if no such version exists.
 org.apache.maven.artifact.versioning.ArtifactVersion getOldestUpdate(org.apache.maven.artifact.versioning.VersionRange versionRange, boolean includeSnapshots)
          Returns the oldest version newer than the specified current version, but within the the specified update scope or null if no such version exists.
 org.apache.maven.artifact.versioning.ArtifactVersion getOldestVersion(org.apache.maven.artifact.versioning.ArtifactVersion lowerBound, org.apache.maven.artifact.versioning.ArtifactVersion upperBound)
          Returns the oldest version after the specified lowerBound, but less than the specified upper bound or null if no such version exists.
 org.apache.maven.artifact.versioning.ArtifactVersion getOldestVersion(org.apache.maven.artifact.versioning.ArtifactVersion lowerBound, org.apache.maven.artifact.versioning.ArtifactVersion upperBound, boolean includeSnapshots)
          Returns the oldest version newer than the specified lower bound, but less than the specified upper bound or null if no such version exists.
 org.apache.maven.artifact.versioning.ArtifactVersion getOldestVersion(org.apache.maven.artifact.versioning.ArtifactVersion lowerBound, org.apache.maven.artifact.versioning.ArtifactVersion upperBound, boolean includeSnapshots, boolean includeLower, boolean includeUpper)
          Returns the oldest version within the specified bounds or null if no such version exists.
 org.apache.maven.artifact.versioning.ArtifactVersion getOldestVersion(org.apache.maven.artifact.versioning.VersionRange versionRange, org.apache.maven.artifact.versioning.ArtifactVersion lowerBound, org.apache.maven.artifact.versioning.ArtifactVersion upperBound, boolean includeSnapshots, boolean includeLower, boolean includeUpper)
          Returns the oldest version within the specified bounds or null if no such version exists.
 org.apache.maven.artifact.versioning.ArtifactVersion getOldestVersion(org.apache.maven.artifact.versioning.VersionRange versionRange, boolean includeSnapshots)
          Returns the oldest version within the specified version range or null if no such version exists.
 org.apache.maven.artifact.versioning.ArtifactVersion[] getVersions()
          Returns all the available versions in increasing order.
 org.apache.maven.artifact.versioning.ArtifactVersion[] getVersions(org.apache.maven.artifact.versioning.ArtifactVersion currentVersion, org.apache.maven.artifact.versioning.ArtifactVersion upperBound)
          Returns all available versions within the specified bounds.
 org.apache.maven.artifact.versioning.ArtifactVersion[] getVersions(org.apache.maven.artifact.versioning.ArtifactVersion currentVersion, org.apache.maven.artifact.versioning.ArtifactVersion upperBound, boolean includeSnapshots)
          Returns all available versions within the specified bounds.
 org.apache.maven.artifact.versioning.ArtifactVersion[] getVersions(org.apache.maven.artifact.versioning.ArtifactVersion lowerBound, org.apache.maven.artifact.versioning.ArtifactVersion upperBound, boolean includeSnapshots, boolean includeLower, boolean includeUpper)
          Returns all available versions within the specified bounds.
abstract  org.apache.maven.artifact.versioning.ArtifactVersion[] getVersions(boolean includeSnapshots)
          Returns all available versions in increasing order.
 org.apache.maven.artifact.versioning.ArtifactVersion[] getVersions(org.apache.maven.artifact.versioning.VersionRange versionRange, org.apache.maven.artifact.versioning.ArtifactVersion lowerBound, org.apache.maven.artifact.versioning.ArtifactVersion upperBound, boolean includeSnapshots, boolean includeLower, boolean includeUpper)
          Returns all available versions within the specified bounds.
 org.apache.maven.artifact.versioning.ArtifactVersion[] getVersions(org.apache.maven.artifact.versioning.VersionRange versionRange, boolean includeSnapshots)
          Returns all available versions within the specified version range.
 boolean isCurrentVersionDefined()
          Returns true if and only if getCurrentVersion() != null.
 boolean isIncludeSnapshots()
           
 void setCurrentVersion(org.apache.maven.artifact.versioning.ArtifactVersion currentVersion)
          Sets the current version.
 void setCurrentVersion(String currentVersion)
          Sets the current version.
 void setIncludeSnapshots(boolean includeSnapshots)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.codehaus.mojo.versions.api.VersionDetails
getVersionComparator
 

Constructor Detail

AbstractVersionDetails

protected AbstractVersionDetails()

AbstractVersionDetails

protected AbstractVersionDetails(org.apache.maven.artifact.versioning.ArtifactVersion currentVersion,
                                 boolean includeSnapshots)
Method Detail

isCurrentVersionDefined

public final boolean isCurrentVersionDefined()
Description copied from interface: VersionDetails
Returns true if and only if getCurrentVersion() != null.

Specified by:
isCurrentVersionDefined in interface VersionDetails
Returns:
true if and only if getCurrentVersion() != null.

getCurrentVersion

public final org.apache.maven.artifact.versioning.ArtifactVersion getCurrentVersion()
Description copied from interface: VersionDetails
Retrieves the current version.

Specified by:
getCurrentVersion in interface VersionDetails
Returns:
The current version (may be null).

setCurrentVersion

public final void setCurrentVersion(org.apache.maven.artifact.versioning.ArtifactVersion currentVersion)
Description copied from interface: VersionDetails
Sets the current version.

Specified by:
setCurrentVersion in interface VersionDetails
Parameters:
currentVersion - The new current version.

setCurrentVersion

public final void setCurrentVersion(String currentVersion)
Description copied from interface: VersionDetails
Sets the current version.

Specified by:
setCurrentVersion in interface VersionDetails
Parameters:
currentVersion - The new current version.

isIncludeSnapshots

public final boolean isIncludeSnapshots()
Specified by:
isIncludeSnapshots in interface VersionDetails

setIncludeSnapshots

public final void setIncludeSnapshots(boolean includeSnapshots)
Specified by:
setIncludeSnapshots in interface VersionDetails

getVersions

public final org.apache.maven.artifact.versioning.ArtifactVersion[] getVersions()
Description copied from interface: VersionDetails
Returns all the available versions in increasing order.

Specified by:
getVersions in interface VersionDetails
Returns:
all the available versions in increasing order.

getVersions

public abstract org.apache.maven.artifact.versioning.ArtifactVersion[] getVersions(boolean includeSnapshots)
Description copied from interface: VersionDetails
Returns all available versions in increasing order.

Specified by:
getVersions in interface VersionDetails
Parameters:
includeSnapshots - true if snapshots are to be included.
Returns:
all available versions in increasing order.

getVersions

public final org.apache.maven.artifact.versioning.ArtifactVersion[] getVersions(org.apache.maven.artifact.versioning.VersionRange versionRange,
                                                                                boolean includeSnapshots)
Description copied from interface: VersionDetails
Returns all available versions within the specified version range.

Specified by:
getVersions in interface VersionDetails
Parameters:
versionRange - The version range within which the version must exist.
includeSnapshots - true if snapshots are to be included.
Returns:
all available versions within the specified version range.

getVersions

public final org.apache.maven.artifact.versioning.ArtifactVersion[] getVersions(org.apache.maven.artifact.versioning.ArtifactVersion currentVersion,
                                                                                org.apache.maven.artifact.versioning.ArtifactVersion upperBound)
Description copied from interface: VersionDetails
Returns all available versions within the specified bounds.

Specified by:
getVersions in interface VersionDetails
Parameters:
currentVersion - the lower bound or null if the lower limit is unbounded.
upperBound - the upper bound or null if the upper limit is unbounded.
Returns:
all available versions within the specified version range.

getVersions

public final org.apache.maven.artifact.versioning.ArtifactVersion[] getVersions(org.apache.maven.artifact.versioning.ArtifactVersion currentVersion,
                                                                                org.apache.maven.artifact.versioning.ArtifactVersion upperBound,
                                                                                boolean includeSnapshots)
Description copied from interface: VersionDetails
Returns all available versions within the specified bounds.

Specified by:
getVersions in interface VersionDetails
Parameters:
currentVersion - the lower bound or null if the lower limit is unbounded.
upperBound - the upper bound or null if the upper limit is unbounded.
includeSnapshots - true if snapshots are to be included.
Returns:
all available versions within the specified version range.

getNewestVersion

public final org.apache.maven.artifact.versioning.ArtifactVersion getNewestVersion(org.apache.maven.artifact.versioning.ArtifactVersion lowerBound,
                                                                                   org.apache.maven.artifact.versioning.ArtifactVersion upperBound)
Description copied from interface: VersionDetails
Returns the latest version newer than the specified lowerBound, but less than the specified upper bound or null if no such version exists.

Specified by:
getNewestVersion in interface VersionDetails
Parameters:
lowerBound - the lower bound or null if the lower limit is unbounded.
upperBound - the upper bound or null if the upper limit is unbounded.
Returns:
the latest version between lowerBound and upperBound or null if no version is available.

getNewestVersion

public final org.apache.maven.artifact.versioning.ArtifactVersion getNewestVersion(org.apache.maven.artifact.versioning.ArtifactVersion lowerBound,
                                                                                   org.apache.maven.artifact.versioning.ArtifactVersion upperBound,
                                                                                   boolean includeSnapshots)
Description copied from interface: VersionDetails
Returns the latest version newer than the specified lowerBound, but less than the specified upper bound or null if no such version exists.

Specified by:
getNewestVersion in interface VersionDetails
Parameters:
lowerBound - the lower bound or null if the lower limit is unbounded.
upperBound - the upper bound or null if the upper limit is unbounded.
includeSnapshots - true if snapshots are to be included.
Returns:
the latest version between currentVersion and upperBound or null if no version is available.

getNewestVersion

public final org.apache.maven.artifact.versioning.ArtifactVersion getNewestVersion(org.apache.maven.artifact.versioning.VersionRange versionRange,
                                                                                   org.apache.maven.artifact.versioning.ArtifactVersion lowerBound,
                                                                                   org.apache.maven.artifact.versioning.ArtifactVersion upperBound,
                                                                                   boolean includeSnapshots,
                                                                                   boolean includeLower,
                                                                                   boolean includeUpper)
Description copied from interface: VersionDetails
Returns the latest version newer than the specified current version, but less than the specified upper bound or null if no such version exists.

Specified by:
getNewestVersion in interface VersionDetails
Parameters:
versionRange - The version range within which the version must exist where null imples [,).
lowerBound - the lower bound or null if the lower limit is unbounded.
upperBound - the upper bound or null if the upper limit is unbounded.
includeSnapshots - true if snapshots are to be included.
includeLower - true if the lower bound is inclusive.
includeUpper - true> if the upper bound is inclusive.
Returns:
the latest version between lowerBound and upperBound or null if no version is available.

getNewestVersion

public final org.apache.maven.artifact.versioning.ArtifactVersion getNewestVersion(org.apache.maven.artifact.versioning.ArtifactVersion lowerBound,
                                                                                   org.apache.maven.artifact.versioning.ArtifactVersion upperBound,
                                                                                   boolean includeSnapshots,
                                                                                   boolean includeLower,
                                                                                   boolean includeUpper)
Description copied from interface: VersionDetails
Returns the latest version newer than the specified current version, but less than the specified upper bound or null if no such version exists.

Specified by:
getNewestVersion in interface VersionDetails
Parameters:
lowerBound - the lower bound or null if the lower limit is unbounded.
upperBound - the upper bound or null if the upper limit is unbounded.
includeSnapshots - true if snapshots are to be included.
includeLower - true if the lower bound is inclusive.
includeUpper - true> if the upper bound is inclusive.
Returns:
the latest version between lowerBound and upperBound or null if no version is available.

getNewestVersion

public final org.apache.maven.artifact.versioning.ArtifactVersion getNewestVersion(org.apache.maven.artifact.versioning.VersionRange versionRange,
                                                                                   boolean includeSnapshots)
Description copied from interface: VersionDetails
Returns the latest version within the specified version range or null if no such version exists.

Specified by:
getNewestVersion in interface VersionDetails
Parameters:
versionRange - The version range within which the version must exist.
includeSnapshots - true if snapshots are to be included.
Returns:
the latest version within the version range or null if no version is available.

containsVersion

public final boolean containsVersion(String version)
Description copied from interface: VersionDetails
Returns true if the specific version is in the list of versions.

Specified by:
containsVersion in interface VersionDetails
Parameters:
version - the specific version.
Returns:
true if the specific version is in the list of versions.

getNewerVersions

public final org.apache.maven.artifact.versioning.ArtifactVersion[] getNewerVersions(String version,
                                                                                     boolean includeSnapshots)

getOldestVersion

public final org.apache.maven.artifact.versioning.ArtifactVersion getOldestVersion(org.apache.maven.artifact.versioning.ArtifactVersion lowerBound,
                                                                                   org.apache.maven.artifact.versioning.ArtifactVersion upperBound)
Description copied from interface: VersionDetails
Returns the oldest version after the specified lowerBound, but less than the specified upper bound or null if no such version exists.

Specified by:
getOldestVersion in interface VersionDetails
Parameters:
lowerBound - the lower bound or null if the lower limit is unbounded.
upperBound - the upper bound or null if the upper limit is unbounded.
Returns:
the next version between lowerBound and upperBound or null if no version is available.

getOldestVersion

public final org.apache.maven.artifact.versioning.ArtifactVersion getOldestVersion(org.apache.maven.artifact.versioning.VersionRange versionRange,
                                                                                   boolean includeSnapshots)
Description copied from interface: VersionDetails
Returns the oldest version within the specified version range or null if no such version exists.

Specified by:
getOldestVersion in interface VersionDetails
Parameters:
versionRange - The version range within which the version must exist.
includeSnapshots - true if snapshots are to be included.
Returns:
the oldest version between currentVersion and upperBound or null if no version is available.

getOldestVersion

public final org.apache.maven.artifact.versioning.ArtifactVersion getOldestVersion(org.apache.maven.artifact.versioning.ArtifactVersion lowerBound,
                                                                                   org.apache.maven.artifact.versioning.ArtifactVersion upperBound,
                                                                                   boolean includeSnapshots)
Description copied from interface: VersionDetails
Returns the oldest version newer than the specified lower bound, but less than the specified upper bound or null if no such version exists.

Specified by:
getOldestVersion in interface VersionDetails
Parameters:
lowerBound - the lower bound or null if the lower limit is unbounded.
upperBound - the upper bound or null if the upper limit is unbounded.
includeSnapshots - true if snapshots are to be included.
Returns:
the latest version between currentVersion and upperBound or null if no version is available.

getOldestVersion

public final org.apache.maven.artifact.versioning.ArtifactVersion getOldestVersion(org.apache.maven.artifact.versioning.ArtifactVersion lowerBound,
                                                                                   org.apache.maven.artifact.versioning.ArtifactVersion upperBound,
                                                                                   boolean includeSnapshots,
                                                                                   boolean includeLower,
                                                                                   boolean includeUpper)
Description copied from interface: VersionDetails
Returns the oldest version within the specified bounds or null if no such version exists.

Specified by:
getOldestVersion in interface VersionDetails
Parameters:
lowerBound - the lower bound or null if the lower limit is unbounded.
upperBound - the upper bound or null if the upper limit is unbounded.
includeSnapshots - true if snapshots are to be included.
includeLower - true if the lower bound is inclusive.
includeUpper - true> if the upper bound is inclusive.
Returns:
the oldest version between lowerBound and upperBound or null if no version is available.

getOldestVersion

public final org.apache.maven.artifact.versioning.ArtifactVersion getOldestVersion(org.apache.maven.artifact.versioning.VersionRange versionRange,
                                                                                   org.apache.maven.artifact.versioning.ArtifactVersion lowerBound,
                                                                                   org.apache.maven.artifact.versioning.ArtifactVersion upperBound,
                                                                                   boolean includeSnapshots,
                                                                                   boolean includeLower,
                                                                                   boolean includeUpper)
Description copied from interface: VersionDetails
Returns the oldest version within the specified bounds or null if no such version exists.

Specified by:
getOldestVersion in interface VersionDetails
Parameters:
versionRange - The version range within which the version must exist where null imples [,).
lowerBound - the lower bound or null if the lower limit is unbounded.
upperBound - the upper bound or null if the upper limit is unbounded.
includeSnapshots - true if snapshots are to be included.
includeLower - true if the lower bound is inclusive.
includeUpper - true> if the upper bound is inclusive.
Returns:
the oldest version between lowerBound and upperBound or null if no version is available.

getVersions

public final org.apache.maven.artifact.versioning.ArtifactVersion[] getVersions(org.apache.maven.artifact.versioning.ArtifactVersion lowerBound,
                                                                                org.apache.maven.artifact.versioning.ArtifactVersion upperBound,
                                                                                boolean includeSnapshots,
                                                                                boolean includeLower,
                                                                                boolean includeUpper)
Description copied from interface: VersionDetails
Returns all available versions within the specified bounds.

Specified by:
getVersions in interface VersionDetails
Parameters:
lowerBound - the lower bound or null if the lower limit is unbounded.
upperBound - the upper bound or null if the upper limit is unbounded.
includeSnapshots - true if snapshots are to be included.
includeLower - true if the lower bound is inclusive.
includeUpper - true> if the upper bound is inclusive.
Returns:
all available versions within the specified version range.

getVersions

public final org.apache.maven.artifact.versioning.ArtifactVersion[] getVersions(org.apache.maven.artifact.versioning.VersionRange versionRange,
                                                                                org.apache.maven.artifact.versioning.ArtifactVersion lowerBound,
                                                                                org.apache.maven.artifact.versioning.ArtifactVersion upperBound,
                                                                                boolean includeSnapshots,
                                                                                boolean includeLower,
                                                                                boolean includeUpper)
Description copied from interface: VersionDetails
Returns all available versions within the specified bounds.

Specified by:
getVersions in interface VersionDetails
Parameters:
versionRange - The version range within which the version must exist where null imples [,).
lowerBound - the lower bound or null if the lower limit is unbounded.
upperBound - the upper bound or null if the upper limit is unbounded.
includeSnapshots - true if snapshots are to be included.
includeLower - true if the lower bound is inclusive.
includeUpper - true> if the upper bound is inclusive.
Returns:
all available versions within the specified version range.

getOldestUpdate

public final org.apache.maven.artifact.versioning.ArtifactVersion getOldestUpdate(org.apache.maven.artifact.versioning.ArtifactVersion currentVersion,
                                                                                  UpdateScope updateScope)
Description copied from interface: VersionDetails
Returns the oldest version newer than the specified current version, but within the the specified update scope or null if no such version exists.

Specified by:
getOldestUpdate in interface VersionDetails
Parameters:
currentVersion - the lower bound or null if the lower limit is unbounded.
updateScope - the update scope to include.
Returns:
the oldest version after currentVersion within the specified update scope or null if no version is available.

getNewestUpdate

public final org.apache.maven.artifact.versioning.ArtifactVersion getNewestUpdate(org.apache.maven.artifact.versioning.ArtifactVersion currentVersion,
                                                                                  UpdateScope updateScope)
Description copied from interface: VersionDetails
Returns the newest version newer than the specified current version, but within the the specified update scope or null if no such version exists.

Specified by:
getNewestUpdate in interface VersionDetails
Parameters:
currentVersion - the lower bound or null if the lower limit is unbounded.
updateScope - the update scope to include.
Returns:
the newest version after currentVersion within the specified update scope or null if no version is available.

getAllUpdates

public final org.apache.maven.artifact.versioning.ArtifactVersion[] getAllUpdates(org.apache.maven.artifact.versioning.ArtifactVersion currentVersion,
                                                                                  UpdateScope updateScope)
Description copied from interface: VersionDetails
Returns the all versions newer than the specified current version, but within the the specified update scope.

Specified by:
getAllUpdates in interface VersionDetails
Parameters:
currentVersion - the lower bound or null if the lower limit is unbounded.
updateScope - the update scope to include.
Returns:
the all versions after currentVersion within the specified update scope.

getOldestUpdate

public org.apache.maven.artifact.versioning.ArtifactVersion getOldestUpdate(org.apache.maven.artifact.versioning.ArtifactVersion currentVersion,
                                                                            org.apache.maven.artifact.versioning.VersionRange versionRange)
Description copied from interface: VersionDetails
Returns the oldest version newer than the specified current version, but within the the specified update scope or null if no such version exists.

Specified by:
getOldestUpdate in interface VersionDetails
Parameters:
currentVersion - the lower bound or null if the lower limit is unbounded.
versionRange - the version range to include.
Returns:
the oldest version after currentVersion within the specified update scope or null if no version is available.

getNewestUpdate

public org.apache.maven.artifact.versioning.ArtifactVersion getNewestUpdate(org.apache.maven.artifact.versioning.ArtifactVersion currentVersion,
                                                                            org.apache.maven.artifact.versioning.VersionRange versionRange)
Description copied from interface: VersionDetails
Returns the newest version newer than the specified current version, but within the the specified update scope or null if no such version exists.

Specified by:
getNewestUpdate in interface VersionDetails
Parameters:
currentVersion - the lower bound or null if the lower limit is unbounded.
versionRange - the version range to include.
Returns:
the newest version after currentVersion within the specified update scope or null if no version is available.

getAllUpdates

public org.apache.maven.artifact.versioning.ArtifactVersion[] getAllUpdates(org.apache.maven.artifact.versioning.ArtifactVersion currentVersion,
                                                                            org.apache.maven.artifact.versioning.VersionRange versionRange)
Description copied from interface: VersionDetails
Returns the all versions newer than the specified current version, but within the the specified update scope.

Specified by:
getAllUpdates in interface VersionDetails
Parameters:
currentVersion - the lower bound or null if the lower limit is unbounded.
versionRange - the version range to include.
Returns:
the all versions after currentVersion within the specified update scope.

getOldestUpdate

public final org.apache.maven.artifact.versioning.ArtifactVersion getOldestUpdate(org.apache.maven.artifact.versioning.ArtifactVersion currentVersion,
                                                                                  UpdateScope updateScope,
                                                                                  boolean includeSnapshots)
Description copied from interface: VersionDetails
Returns the oldest version newer than the specified current version, but within the the specified update scope or null if no such version exists.

Specified by:
getOldestUpdate in interface VersionDetails
Parameters:
currentVersion - the lower bound or null if the lower limit is unbounded.
updateScope - the update scope to include.
includeSnapshots - true if snapshots are to be included.
Returns:
the oldest version after currentVersion within the specified update scope or null if no version is available.

getNewestUpdate

public final org.apache.maven.artifact.versioning.ArtifactVersion getNewestUpdate(org.apache.maven.artifact.versioning.ArtifactVersion currentVersion,
                                                                                  UpdateScope updateScope,
                                                                                  boolean includeSnapshots)
Description copied from interface: VersionDetails
Returns the newest version newer than the specified current version, but within the the specified update scope or null if no such version exists.

Specified by:
getNewestUpdate in interface VersionDetails
Parameters:
currentVersion - the lower bound or null if the lower limit is unbounded.
updateScope - the update scope to include.
includeSnapshots - true if snapshots are to be included.
Returns:
the newest version after currentVersion within the specified update scope or null if no version is available.

getAllUpdates

public final org.apache.maven.artifact.versioning.ArtifactVersion[] getAllUpdates(org.apache.maven.artifact.versioning.ArtifactVersion currentVersion,
                                                                                  UpdateScope updateScope,
                                                                                  boolean includeSnapshots)
Description copied from interface: VersionDetails
Returns the all versions newer than the specified current version, but within the the specified update scope.

Specified by:
getAllUpdates in interface VersionDetails
Parameters:
currentVersion - the lower bound or null if the lower limit is unbounded.
updateScope - the update scope to include.
includeSnapshots - true if snapshots are to be included.
Returns:
the all versions after currentVersion within the specified update scope.

getOldestUpdate

public org.apache.maven.artifact.versioning.ArtifactVersion getOldestUpdate(org.apache.maven.artifact.versioning.ArtifactVersion currentVersion,
                                                                            org.apache.maven.artifact.versioning.VersionRange versionRange,
                                                                            boolean includeSnapshots)
Description copied from interface: VersionDetails
Returns the oldest version newer than the specified current version, but within the the specified update scope or null if no such version exists.

Specified by:
getOldestUpdate in interface VersionDetails
Parameters:
currentVersion - the lower bound or null if the lower limit is unbounded.
versionRange - the version range to include.
includeSnapshots - true if snapshots are to be included.
Returns:
the oldest version after currentVersion within the specified update scope or null if no version is available.

getNewestUpdate

public org.apache.maven.artifact.versioning.ArtifactVersion getNewestUpdate(org.apache.maven.artifact.versioning.ArtifactVersion currentVersion,
                                                                            org.apache.maven.artifact.versioning.VersionRange versionRange,
                                                                            boolean includeSnapshots)
Description copied from interface: VersionDetails
Returns the newest version newer than the specified current version, but within the the specified update scope or null if no such version exists.

Specified by:
getNewestUpdate in interface VersionDetails
Parameters:
currentVersion - the lower bound or null if the lower limit is unbounded.
versionRange - the version range to include.
includeSnapshots - true if snapshots are to be included.
Returns:
the newest version after currentVersion within the specified update scope or null if no version is available.

getAllUpdates

public org.apache.maven.artifact.versioning.ArtifactVersion[] getAllUpdates(org.apache.maven.artifact.versioning.ArtifactVersion currentVersion,
                                                                            org.apache.maven.artifact.versioning.VersionRange versionRange,
                                                                            boolean includeSnapshots)
Description copied from interface: VersionDetails
Returns the all versions newer than the specified current version, but within the the specified update scope.

Specified by:
getAllUpdates in interface VersionDetails
Parameters:
currentVersion - the lower bound or null if the lower limit is unbounded.
versionRange - the version range to include.
includeSnapshots - true if snapshots are to be included.
Returns:
the all versions after currentVersion within the specified update scope.

getOldestUpdate

public final org.apache.maven.artifact.versioning.ArtifactVersion getOldestUpdate(UpdateScope updateScope)
Description copied from interface: VersionDetails
Returns the oldest version newer than the current version, but within the the specified update scope or null if no such version exists.

Specified by:
getOldestUpdate in interface VersionDetails
Parameters:
updateScope - the update scope to include.
Returns:
the oldest version after currentVersion within the specified update scope or null if no version is available.

getNewestUpdate

public final org.apache.maven.artifact.versioning.ArtifactVersion getNewestUpdate(UpdateScope updateScope)
Description copied from interface: VersionDetails
Returns the newest version newer than the specified current version, but within the the specified update scope or null if no such version exists.

Specified by:
getNewestUpdate in interface VersionDetails
Parameters:
updateScope - the update scope to include.
Returns:
the newest version after currentVersion within the specified update scope or null if no version is available.

getAllUpdates

public final org.apache.maven.artifact.versioning.ArtifactVersion[] getAllUpdates(UpdateScope updateScope)
Description copied from interface: VersionDetails
Returns the all versions newer than the specified current version, but within the the specified update scope.

Specified by:
getAllUpdates in interface VersionDetails
Parameters:
updateScope - the update scope to include.
Returns:
the all versions after currentVersion within the specified update scope.

getOldestUpdate

public final org.apache.maven.artifact.versioning.ArtifactVersion getOldestUpdate(UpdateScope updateScope,
                                                                                  boolean includeSnapshots)
Description copied from interface: VersionDetails
Returns the oldest version newer than the specified current version, but within the the specified update scope or null if no such version exists.

Specified by:
getOldestUpdate in interface VersionDetails
Parameters:
updateScope - the update scope to include.
includeSnapshots - true if snapshots are to be included.
Returns:
the oldest version after currentVersion within the specified update scope or null if no version is available.

getNewestUpdate

public final org.apache.maven.artifact.versioning.ArtifactVersion getNewestUpdate(UpdateScope updateScope,
                                                                                  boolean includeSnapshots)
Description copied from interface: VersionDetails
Returns the newest version newer than the specified current version, but within the the specified update scope or null if no such version exists.

Specified by:
getNewestUpdate in interface VersionDetails
Parameters:
updateScope - the update scope to include.
includeSnapshots - true if snapshots are to be included.
Returns:
the newest version after currentVersion within the specified update scope or null if no version is available.

getAllUpdates

public final org.apache.maven.artifact.versioning.ArtifactVersion[] getAllUpdates(UpdateScope updateScope,
                                                                                  boolean includeSnapshots)
Description copied from interface: VersionDetails
Returns the all versions newer than the specified current version, but within the the specified update scope.

Specified by:
getAllUpdates in interface VersionDetails
Parameters:
updateScope - the update scope to include.
includeSnapshots - true if snapshots are to be included.
Returns:
the all versions after currentVersion within the specified update scope.

getOldestUpdate

public final org.apache.maven.artifact.versioning.ArtifactVersion getOldestUpdate(org.apache.maven.artifact.versioning.VersionRange versionRange)
Description copied from interface: VersionDetails
Returns the oldest version newer than the current version, but within the the specified update scope or null if no such version exists.

Specified by:
getOldestUpdate in interface VersionDetails
Parameters:
versionRange - the version range to include.
Returns:
the oldest version after currentVersion within the specified update scope or null if no version is available.

getNewestUpdate

public final org.apache.maven.artifact.versioning.ArtifactVersion getNewestUpdate(org.apache.maven.artifact.versioning.VersionRange versionRange)
Description copied from interface: VersionDetails
Returns the newest version newer than the specified current version, but within the the specified update scope or null if no such version exists.

Specified by:
getNewestUpdate in interface VersionDetails
Parameters:
versionRange - the version range to include.
Returns:
the newest version after currentVersion within the specified update scope or null if no version is available.

getAllUpdates

public final org.apache.maven.artifact.versioning.ArtifactVersion[] getAllUpdates(org.apache.maven.artifact.versioning.VersionRange versionRange)
Description copied from interface: VersionDetails
Returns the all versions newer than the specified current version, but within the the specified update scope.

Specified by:
getAllUpdates in interface VersionDetails
Parameters:
versionRange - the version range to include.
Returns:
the all versions after currentVersion within the specified update scope.

getOldestUpdate

public org.apache.maven.artifact.versioning.ArtifactVersion getOldestUpdate(org.apache.maven.artifact.versioning.VersionRange versionRange,
                                                                            boolean includeSnapshots)
Description copied from interface: VersionDetails
Returns the oldest version newer than the specified current version, but within the the specified update scope or null if no such version exists.

Specified by:
getOldestUpdate in interface VersionDetails
Parameters:
versionRange - the version range to include.
includeSnapshots - true if snapshots are to be included.
Returns:
the oldest version after currentVersion within the specified update scope or null if no version is available.

getNewestUpdate

public org.apache.maven.artifact.versioning.ArtifactVersion getNewestUpdate(org.apache.maven.artifact.versioning.VersionRange versionRange,
                                                                            boolean includeSnapshots)
Description copied from interface: VersionDetails
Returns the newest version newer than the specified current version, but within the the specified update scope or null if no such version exists.

Specified by:
getNewestUpdate in interface VersionDetails
Parameters:
versionRange - the version range to include.
includeSnapshots - true if snapshots are to be included.
Returns:
the newest version after currentVersion within the specified update scope or null if no version is available.

getAllUpdates

public org.apache.maven.artifact.versioning.ArtifactVersion[] getAllUpdates(org.apache.maven.artifact.versioning.VersionRange versionRange,
                                                                            boolean includeSnapshots)
Description copied from interface: VersionDetails
Returns the all versions newer than the specified current version, but within the the specified update scope.

Specified by:
getAllUpdates in interface VersionDetails
Parameters:
versionRange - the version range to include.
includeSnapshots - true if snapshots are to be included.
Returns:
the all versions after currentVersion within the specified update scope.


Copyright © 2008-2011 Codehaus. All Rights Reserved.