Methods
-
<static> and(predicates)
-
Parameters:
Name Type Argument Description predicatesolympe.dc.api.Predicate <repeatable>
Returns:
-
<static> contains(property, value [, caseSensitive])
-
Parameters:
Name Type Argument Default Description propertyolympe.dc.Tag valuestring caseSensitiveboolean <optional>
false Returns:
-
<static> deserialize(ser)
-
Parameters:
Name Type Description serObject Returns:
-
<static> equals(property, value)
-
Parameters:
Name Type Description propertyolympe.dc.Tag value* Returns:
-
<static> greaterThan(property, valueOrProperty [, strict])
-
Parameters:
Name Type Argument Default Description propertyolympe.dc.Tag valueOrPropertynumber | olympe.dc.Tag strictboolean <optional>
true Returns:
-
<static> not(predicate)
-
Parameters:
Name Type Description predicateolympe.dc.api.Predicate Returns:
-
<static> or(predicates)
-
Parameters:
Name Type Argument Description predicatesolympe.dc.api.Predicate <repeatable>
Returns:
-
<static> regex(property, value [, caseSensitive])
-
Parameters:
Name Type Argument Default Description propertyolympe.dc.Tag valueRegExp caseSensitiveboolean <optional>
true Returns:
-
<static> smallerThan(property, valueOrProperty [, strict])
-
Parameters:
Name Type Argument Default Description propertyolympe.dc.Tag valueOrPropertynumber | olympe.dc.Tag strictboolean <optional>
true Returns:
-
<abstract> clear(tag, index)
-
Unregister callback
Parameters:
Name Type Description tagstring indexstring -
<abstract> execute(tag)
-
Apply the predicate to given value
Parameters:
Name Type Description tagstring of instance to test predicate
Returns:
if predicates passes
- Type
- boolean
-
<abstract> observe(tag, index, callback)
-
Define testing on a dataflow string
Parameters:
Name Type Description tagstring indexstring callbackolympe.dc.api.Predicate.PredicateCallback -
<abstract> serialize()
-
Serialize the predicate
Returns:
- Type
- Object
-
<abstract> toString()
-
Gets a string representation of this predicate
Returns:
The string representation
- Type
- string
Type Definitions
-
PredicateCallback(result)
-
Parameters:
Name Type Description resultboolean
Olympe SDK