AttributesSchema

An attributes schema stores information about attributes and how they can be matched together.

Since

3.3

Functions

Link copied to clipboard
abstract fun <T> attribute(attribute: Attribute<T>): AttributeMatchingStrategy<T>
Declares a new attribute in the schema and configures it with the default strategy.
abstract fun <T> attribute(attribute: Attribute<T>, configureAction: Action<in AttributeMatchingStrategy<T>>): AttributeMatchingStrategy<T>
Configures the matching strategy for an attribute.
Link copied to clipboard
Adds attributes to the precedence order.
Link copied to clipboard
Returns the order that attributes should be considered when resolving ambiguity.
Link copied to clipboard
abstract fun getAttributes(): Set<Attribute<out Any>>
Returns the set of attributes known to this schema.
Link copied to clipboard
Returns the matching strategy for a given attribute.
Link copied to clipboard
abstract fun hasAttribute(key: Attribute<out Any>): Boolean
Returns true when this schema contains the given attribute.
Link copied to clipboard
Sets the order of precedence of attributes when resolving ambiguity.