Methods
-
<static> and(predicates)
-
Parameters:
Name Type Argument Description predicates
olympe.dc.api.Predicate <repeatable>
Returns:
-
<static> contains(property, value [, caseSensitive])
-
Parameters:
Name Type Argument Default Description property
olympe.dc.Tag value
string caseSensitive
boolean <optional>
false Returns:
-
<static> deserialize(ser)
-
Parameters:
Name Type Description ser
Object Returns:
-
<static> equals(property, value)
-
Parameters:
Name Type Description property
olympe.dc.Tag value
* Returns:
-
<static> greaterThan(property, valueOrProperty [, strict])
-
Parameters:
Name Type Argument Default Description property
olympe.dc.Tag valueOrProperty
number | olympe.dc.Tag strict
boolean <optional>
true Returns:
-
<static> not(predicate)
-
Parameters:
Name Type Description predicate
olympe.dc.api.Predicate Returns:
-
<static> or(predicates)
-
Parameters:
Name Type Argument Description predicates
olympe.dc.api.Predicate <repeatable>
Returns:
-
<static> regex(property, value [, caseSensitive])
-
Parameters:
Name Type Argument Default Description property
olympe.dc.Tag value
RegExp caseSensitive
boolean <optional>
true Returns:
-
<static> smallerThan(property, valueOrProperty [, strict])
-
Parameters:
Name Type Argument Default Description property
olympe.dc.Tag valueOrProperty
number | olympe.dc.Tag strict
boolean <optional>
true Returns:
-
<abstract> clear(tag, index)
-
Unregister callback
Parameters:
Name Type Description tag
string index
string -
<abstract> execute(tag)
-
Apply the predicate to given value
Parameters:
Name Type Description tag
string 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 tag
string index
string callback
olympe.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 result
boolean