Builder

abstract class Builder<out B : AttributedSpec.Builder<B>> : Taggable.Builder<B>

The builder analogue to AttributedSpec types.

Constructors

Link copied to clipboard
fun Builder()

Functions

Link copied to clipboard
fun addAttribute(attribute: AttributeSpec): B
fun addAttribute(name: String, vararg arguments: String): B
Link copied to clipboard
fun <T : Any> tag(type: Class<T>, tag: T?): B
fun <T : Any> tag(type: KClass<T>, tag: T?): B

Attaches tag to the request using type as a key. Tags can be read from a request using Taggable.tag. Use null to remove any existing tag assigned for type.

Properties

Link copied to clipboard

Mutable list of the current attributes this builder contains.

Link copied to clipboard

Mutable map of the current tags this builder contains.

Inheritors

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard