The Query class

Support in HbbTV

Available since: HbbTV 1.5 (ETSI TS 102 796 V1.2.1, OIPF DAE V1.2)

Comment

Broadcast-related

The Query class represents a metadata query that the user wants to carry out.  This may be a simple search, or a complex search involving Boolean logic.  Queries are immutable; an operation on a query SHALL return a new Query object, allowing applications to continue referring to the original query.

The examples below show how more complex queries can be constructed:

Properties

This section is intentionally left empty.

Methods

Query and( Query query )

Description

Create a query based on the logical AND of the predicates represented by the query currently being operated on and the argument query.

Arguments

query

The second predicate for the AND operation.

Query or( Query query )

Description

Create a query based on the logical OR of the predicates represented by the query currently being operated on and the argument query.

Arguments

query

The second predicate for the OR operation.

Query not()

Description

Create a query that is the logical negation of the predicates represented by the query currently being operated on.