Constructor
new module:ct-grid /filter /Logical Filter Expression(logical Operator)
Constructs a new LogicalFilterExpression
with the specified operator.
Parameters:
Name | Type | Description |
---|---|---|
logicalOperator |
module:ct-grid |
The operator that determines whether this logical filter expression will perform a logical AND or OR. |
- Implements:
Throws:
-
If the specified operator is not
module:ct-grid/filter/LogicalFilterExpression/Operator.AND
ormodule:ct-grid/filter/LogicalFilterExpression/Operator.OR
- Type
-
module:ct-core
/Error
Members
(static) Operator .AND :module:ct-grid /filter /Logical Filter Expression /Operator
Represents that a logical AND will be performed by the LogicalFilterExpression
. A
record will only be returned if it matches all of the expressions that have been added to it.
Type:
(static) Operator .OR :module:ct-grid /filter /Logical Filter Expression /Operator
Represents that a logical OR will be performed by the LogicalFilterExpression
. A
record will be returned if it matches at least one of the expressions that have been added to
it.
Type:
Methods
(static) clone(oFilter Expression) → {module:ct-grid /filter /Logical Filter Expression}
Clones a LogicalFilterExpression
Parameters:
Name | Type | Description |
---|---|---|
oFilterExpression |
module:ct-grid |
The expression to be cloned. |
Returns:
a new instance of a LogicalFilterExpression with exactly the same state as the passed oFilterExpression.
add Filter Expression(oFilter Expression)
Adds the specified FilterExpression
to this LogicalFilterExpression
.
Parameters:
Name | Type | Description |
---|---|---|
oFilterExpression |
module:ct-grid |
The expression to be added. |
clone() → {module:ct-grid /filter /Logical Filter Expression}
Clones this instance of the LogicalFilterExpression
Returns:
a new instance of a LogicalFilterExpression with exactly the same state.
get Filter Expressions() → {Array}
Returns a list of the filter expressions added using module:ct-grid/filter/LogicalFilterExpression#addFilterExpression
.
The array returned by this method must not be added to or removed from directly — in the future, the array returned may instead be a copy of the internally held array. Instead, the methods on this class should be used to add filter expressions.
Returns:
A list of module:ct-grid/filter/FilterExpression
items.
- Type
- Array
get Number OfFilter Expressions() → {Number}
Gets the number of logical filter expressions that have been placed inside the LogicalFilterExpression.
Returns:
Number of Filter expressions added to date.
- Type
- Number
get Operator() → {module:ct-grid /filter /Logical Filter Expression /Operator}
Gets the operator for this LogicalFilterExpression
Returns:
The operator for this LogicalFilterExpression
get Rttp State() → {String}
Gets the serialized representation of this LogicalFilterExpression
which is
understood by the Container Filtering Module used by Transformer.
- Implements:
- See:
Returns:
A serialized representation of this expression.
- Type
- String
get Serialized State(sIndent) → {String}
Gets the XML representation of this LogicalFilterExpression
that will be used to
save it within a serialized component and/or layout.
Parameters:
Name | Type | Description |
---|---|---|
sIndent |
String | The number of characters the caller would like the expression to indent the XML it returns to make it easily human readable. |
- Implements:
- See:
Returns:
An XML representation of this expression.
- Type
- String
to Map()
Construct map representing the filter
- Implements:
to String() → {String}
Gets a text representation of the logical filter expression.
Returns:
A text representation of the expression.
- Type
- String