public class EnumRequirement extends Object implements Requirement
| Constructor and Description |
|---|
EnumRequirement(Property property,
Collection<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, Collection<Object> elements)
EnumRequirement.property - the monitored propertyelements - the allowed elementspublic Property getProperty()
RequirementgetProperty in interface Requirementpublic boolean isFulfilled()
Requirementtrue if the requirement is fulfilled.isFulfilled in interface Requirementtrue if the requirement is fulfilled