Expanded Constraint
API
All constraints implement Constraint
,
and all are public
.
The following abbreviated APIs only list the constructors.
-
public NotConstraint(Constraint)
This constraint matches all entities that do not match the given constraint -
public AndConstraint(Constraint, Constraint)
This constraint matches all entities that match both of the given constraints -
public OrConstraint(Constraint, Constraint)
This constraint matches all entities that match at least one of the given constraints -
public AttributeExistsConstraint(Constraint)
This constraint matches all entities that have an attribute that matches the given constraint -
public BaseExistsConstraint(Constraint)
This constraint matches all entities that have a base that matches the given constraint -
public EntityEqualsConstraint(Entity)
This constraint matches the given entity -
public NameEqualsConstraint(String)
This constraint matches all entities whose name equals the given string -
public NameContainsConstraint(String)
This constraint matches all entities whose name contains the given string as a substring -
public NameMatchesConstraint(RegularExpression)
This constraint matches all entities whose name matches the given regular expression -
public ValueEqualsConstraint(EntityValue)
This constraint matches all entities whose value equals the given entity value -
public ValueInRangeConstraint(double lower, double upper)
This constraint matches all entities whose value can be interpreted as a number betweenlower
andupper
, inclusive -
public ValueClassIsConstraint(Class)
This constraint matches all entities with values whose type is a subtype of the given class