public class EnumRequirement extends java.lang.Object implements Requirement
Constructor and Description |
---|
EnumRequirement(Property property,
java.util.Collection<java.lang.Object> elements)
Constructs a
EnumRequirement . |
Modifier and Type | Method and Description |
---|---|
Property |
getProperty()
Returns the property of the requirement.
|
boolean |
isFulfilled()
Returns
true if the requirement is fulfilled. |
public EnumRequirement(Property property, java.util.Collection<java.lang.Object> elements)
EnumRequirement
.property
- the monitored propertyelements
- the allowed elementspublic Property getProperty()
Requirement
getProperty
in interface Requirement
public boolean isFulfilled()
Requirement
true
if the requirement is fulfilled.isFulfilled
in interface Requirement
true
if the requirement is fulfilled