public class BasicPropertyCondition extends java.lang.Object implements Condition<PropertySet>
Modifier and Type | Class and Description |
---|---|
protected static class |
BasicPropertyCondition.SubPropertyCondition |
Constructor and Description |
---|
BasicPropertyCondition() |
Modifier and Type | Method and Description |
---|---|
BasicPropertyCondition |
anyRequiredProperty(java.util.List<Property<?>> properties,
java.lang.Object value,
ComparisonOperator op)
Adds a sub-conditions that can check multiple properties for the same condition.
|
java.util.List<Property<?>> |
getProperties()
Returns a collated list of all the properties used in all the internal AND conditions.
|
boolean |
passes(PropertySet target)
Returns whether the provided value passes the condition.
|
BasicPropertyCondition |
requiredProperty(Property<?> 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 BasicPropertyCondition requiredProperty(Property<?> property, java.lang.Object value, ComparisonOperator op)
public BasicPropertyCondition anyRequiredProperty(java.util.List<Property<?>> properties, java.lang.Object value, ComparisonOperator op)
public java.util.List<Property<?>> getProperties()