$k. HasPropertyCondition

new HasPropertyCondition()

A condition that selects elements that have properties of a specific type.

The linked query of this conditon is the subquery for the properties. This allows to add meta property conditions.

Extends

Methods

addHandle(parameter) → {Condition}

Add a handle

Parameters:
NameTypeDescription
parameterstring
Version
  • Experimental feature, might be removed at any time
Since
  • 5.3.0
Returns:
Type: 
Condition

alternativesId() → {number}

Since
  • 4.1.0
Deprecated
  • This function is not supported any more
Returns:
Type: 
number

cardinality() → {number}

Returns the desired cardinality of the property

Since
  • 4.1.0
Returns:
Type: 
number

linkedQuery() → {$k.StructuredQuery}

Returns the linked subquery

Since
  • 4.1.0
Returns:
Type: 
$k.StructuredQuery

parameter() → {string}

Returns the parameter name of the condition, if defined

Since
  • 4.1.0
Returns:
Type: 
string

query() → {$k.StructuredQuery}

Version
  • Experimental feature, might be removed at any time
Since
  • 5.4.2
Returns:

The source query

Type: 
$k.StructuredQuery

setCardinality(cardinality)

Sets the desired cardinality of the property. Only applied if a cardinality operator is used.

Parameters:
NameTypeDescription
cardinalitynumber

Cardinality. Must be an integer >= 0.

Since
  • 4.1.0

setParameter(parameter)

Sets the parameter name of the condition

Parameters:
NameTypeDescription
parameterstring
Since
  • 4.1.0