new HasAttributeCondition()
A condition that selects elements that have attributes of a specific type.
Extends
Methods
addHandle(parameter) → {Condition}
Add a handle
Parameters:
Name | Type | Description |
---|---|---|
parameter | string |
- Version
- Experimental feature, might be removed at any time
- Since
- 5.3.0
- Inherited From
Returns:
- Type:
- Condition
addValue(parameteropt, operatoropt, defaultValueopt) → {$k.AttributeValueCondition}
Add a value condition. Note that an attribute conditon can only have one value conditon.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
parameter | <optional> | Parameter name of the value | |
operator | string | <optional> | Name of operator |
defaultValue | <optional> | Default value if no parameter is specified |
- Since
- 4.1.0
Throws:
If the condition is not valid
Returns:
alternativesId() → {number}
- Since
- 4.1.0
- Inherited From
- Deprecated
- This function is not supported any more
Returns:
- Type:
- number
cardinality() → {number}
Returns the desired cardinality of the property
- Since
- 4.1.0
- Inherited From
Returns:
- Type:
- number
linkedQuery() → {$k.StructuredQuery}
Returns the linked subquery
- Since
- 4.1.0
- Inherited From
Returns:
- Type:
- $k.StructuredQuery
parameter() → {string}
Returns the parameter name of the condition, if defined
- Since
- 4.1.0
- Inherited From
Returns:
- Type:
- string
query() → {$k.StructuredQuery}
- Version
- Experimental feature, might be removed at any time
- Since
- 5.4.2
- Inherited From
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:
Name | Type | Description |
---|---|---|
cardinality | number | Cardinality. Must be an integer >= 0. |
- Since
- 4.1.0
- Inherited From
setParameter(parameter)
Sets the parameter name of the condition
Parameters:
Name | Type | Description |
---|---|---|
parameter | string |
- Since
- 4.1.0
- Inherited From
valueCondition() → {$k.AttributeValueCondition}
Returns the attribute value condition, or undefined if there is none
- Since
- 4.1.0
Returns: