public abstract class Versionable
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
maxInclusive |
protected org.fabric3.api.host.Version |
maxVersion |
protected boolean |
minInclusive |
protected org.fabric3.api.host.Version |
minVersion |
| Constructor and Description |
|---|
Versionable()
Default constructor.
|
Versionable(org.fabric3.api.host.Version version)
Constructor specifying the minimum version.
|
Versionable(org.fabric3.api.host.Version version,
boolean minInclusive)
Constructor for specifying an exact version.
|
Versionable(org.fabric3.api.host.Version minVersion,
boolean minInclusive,
org.fabric3.api.host.Version maxVersion,
boolean maxInclusive)
Constructor for specifying a version range.
|
| Modifier and Type | Method and Description |
|---|---|
org.fabric3.api.host.Version |
getMaxVersion()
The maximum required version.
|
org.fabric3.api.host.Version |
getMinVersion()
The minimum required version.
|
boolean |
isMaxInclusive()
True if the maximum version range is exclusive.
|
boolean |
isMinInclusive()
True if the minimum version range is exclusive.
|
protected boolean |
matches(org.fabric3.api.host.Version other)
Returns true if this versionable matches the other version according to OSGi R4 semantics.
|
void |
setMaxInclusive(boolean maxInclusive)
Sets if the maximum version range is exclusive.
|
void |
setMaxVersion(org.fabric3.api.host.Version maxVersion)
Sets the maximum required version.
|
void |
setMinInclusive(boolean minInclusive)
Sets if the minimum version range is exclusive
|
void |
setMinVersion(org.fabric3.api.host.Version minVersion)
Sets the minimum required version.
|
protected org.fabric3.api.host.Version minVersion
protected org.fabric3.api.host.Version maxVersion
protected boolean minInclusive
protected boolean maxInclusive
public Versionable(org.fabric3.api.host.Version minVersion,
boolean minInclusive,
org.fabric3.api.host.Version maxVersion,
boolean maxInclusive)
minVersion - the minimum versionminInclusive - true if the minimum version is considered inclusive for range matchingmaxVersion - the maximum versionmaxInclusive - if the maximum version is considered inclusive for range matchingpublic Versionable(org.fabric3.api.host.Version version,
boolean minInclusive)
version - the minimum versionminInclusive - true if the minimum version is considered inclusive for range matchingpublic Versionable(org.fabric3.api.host.Version version)
version - the minimum version.public Versionable()
public org.fabric3.api.host.Version getMinVersion()
public void setMinVersion(org.fabric3.api.host.Version minVersion)
minVersion - the minimum required version.public boolean isMinInclusive()
public void setMinInclusive(boolean minInclusive)
minInclusive - true if the minimum version range is exclusivepublic org.fabric3.api.host.Version getMaxVersion()
public void setMaxVersion(org.fabric3.api.host.Version maxVersion)
maxVersion - maximum versionpublic boolean isMaxInclusive()
public void setMaxInclusive(boolean maxInclusive)
maxInclusive - true if the maximum version range is exclusiveprotected boolean matches(org.fabric3.api.host.Version other)
other - the version