Class: Contains

olympe.dc.api.predicates. Contains


new Contains(property, substring, db [, caseSensitive])

Parameters:
Name Type Argument Default Description
property olympe.dc.Tag
substring string
db olympe.dc.DBView
caseSensitive boolean <optional>
false
Implements:

Methods


apply(value)

Parameters:
Name Type Description
value *
Returns:
Type
boolean

clear(tag, index)

Unregister callback

Parameters:
Name Type Description
tag string
index string
Implements:

execute(tag)

Apply the predicate to given value

Parameters:
Name Type Description
tag string

of instance to test predicate

Implements:
Returns:

if predicates passes

Type
boolean

getProperty()

Returns:
Type
olympe.dc.Tag

getSubstring()

Returns:
Type
string

observe(tag, index, callback)

Define testing on a dataflow string

Parameters:
Name Type Description
tag string
index string
callback olympe.dc.api.Predicate.PredicateCallback
Implements:

serialize()

Serialize the predicate

Implements:
Returns:
Type
Object

toString()

Implements:
Returns:

representation

Type
string