public class PropertyCondition extends java.lang.Object implements Condition<PropertySet>
Modifier and Type | Class and Description |
---|---|
protected static class |
PropertyCondition.SubPropertyCondition |
Constructor and Description |
---|
PropertyCondition() |
Modifier and Type | Method and Description |
---|---|
PropertyCondition |
defined(java.lang.String property)
Adds a requirement that a property be defined.
|
PropertyCondition |
optionalProperty(java.lang.String property,
java.lang.Object value,
ComparisonOperator op)
Adds an optional property sub-condition.
|
boolean |
passes(PropertySet target)
Returns whether the provided value passes the condition.
|
PropertyCondition |
requiredProperty(java.lang.String property,
java.lang.Object value,
ComparisonOperator op)
Adds a required property sub-condition.
|
public boolean passes(PropertySet target)
Condition
passes
in interface Condition<PropertySet>
public PropertyCondition requiredProperty(java.lang.String property, java.lang.Object value, ComparisonOperator op)
property
- value
- op
- public PropertyCondition optionalProperty(java.lang.String property, java.lang.Object value, ComparisonOperator op)
property
- value
- op
- public PropertyCondition defined(java.lang.String property)
property
-