de.enough.polish.ant.requirements
Class VersionRequirement
java.lang.Object
de.enough.polish.ant.requirements.Requirement
de.enough.polish.ant.requirements.VersionRequirement
- All Implemented Interfaces:
- DeviceFilter
public class VersionRequirement
- extends Requirement
Selects devices by the version of a specific capability.
Copyright Enough Software 2004 - 2011
history
10-Feb-2004 - rob creation
- Author:
- Robert Virkus, robert@enough.de
|
Method Summary |
protected boolean |
isMet(Device device,
String property)
Checks if this requirement is met by the given device. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VersionRequirement
public VersionRequirement(String value,
String propertyName)
- Creates a new Version requirement
- Parameters:
value - the value of this requirement, e.g. "2.3+.2+"propertyName - the name of the capability
isMet
protected boolean isMet(Device device,
String property)
- Description copied from class:
Requirement
- Checks if this requirement is met by the given device.
- Specified by:
isMet in class Requirement
- Parameters:
device - the device which should be tested against this requirement.property - the property-value of the given device. Property is never null.
- Returns:
- true when this requirement is satisfied by the given device.