Class: Regex

olympe.dc.api.predicates. Regex


new Regex(property, regexp, db [, caseSensitive])

Parameters:
Name Type Argument Default Description
property olympe.dc.Tag
regexp RegExp
db olympe.dc.DBView
caseSensitive boolean <optional>
true
Implements:

Members


<static> serType :number

Type:
  • number

Methods


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

getCaseSensitive()

Returns:
Type
boolean

getProperty()

Returns:
Type
olympe.dc.Tag

getRegEx()

Returns:
Type
RegExp

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:
Type
string