The Query class

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

HbbTV extensions

Broadcast-related

Base definition (OIPF DAE)

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:

Query qa = mySearch.createQuery(“Title”, 6, “Terminator”); Query qb = mySearch.createQuery(“SpokenLanguage”, 0, “fr-CA”); Query qc = qb.and(qa.not());

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.