net.sf.ant4eclipse.model.pdesupport.plugin
Class VersionRange

java.lang.Object
  extended by net.sf.ant4eclipse.model.pdesupport.plugin.VersionRange

public class VersionRange
extends java.lang.Object

Encapsulates a version range (as specified in the OSGi Service Platform Core Specification, Release 4).


Constructor Summary
VersionRange(java.lang.String versionRange)
          Creates a new instance of type VersionRange.
 
Method Summary
 Version getCeiling()
          Returns the ceiling version.
 Version getFloor()
          Returns the floor version.
 boolean isCeilingIncluded()
          Returns true if a ceiling version is available.
 boolean isFloorIncluded()
          Returns true if a floor version is available.
 boolean isMember(Version version)
          Returns true if the supplied version is included in this range.
 boolean isSingleVersion()
          Returns true if this range is fixed on a specific version.
 java.lang.String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

VersionRange

public VersionRange(java.lang.String versionRange)
Creates a new instance of type VersionRange.

Parameters:
versionRange - the string representation of the version range.
Method Detail

getCeiling

public Version getCeiling()
Returns the ceiling version.

Returns:
The ceiling version.

getFloor

public Version getFloor()
Returns the floor version.

Returns:
The floor version.

isCeilingIncluded

public boolean isCeilingIncluded()
Returns true if a ceiling version is available.

Returns:
true <=> A ceiling version is available.

isFloorIncluded

public boolean isFloorIncluded()
Returns true if a floor version is available.

Returns:
true <=> A floor version is available.

isSingleVersion

public boolean isSingleVersion()
Returns true if this range is fixed on a specific version.

Returns:
true <=> This range is fixed on a specific version.

isMember

public boolean isMember(Version version)
Returns true if the supplied version is included in this range.

Parameters:
version - The version that shall be tested.
Returns:
true <=> The supplied version is part of this range.

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object