AttType

data class AttType(val type: String, val typeKeyword: String = "attributeType") : HasAttsI(source)

Provides a definition of a "Type" attribute which is a common attribute required for subjects, actions and resources.

Parameters

type

: The type of the subject, action or resource.

typeKeyword

: Allows aliasing of the type key in order to avoid conflicts with other attributes.

Constructors

Link copied to clipboard
constructor(type: String, typeKeyword: String = "attributeType")

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun asHasAtts(additionalAtts: Atts): HasAttsI

Merge type attribute with provided Atts in a new HasAttsI

Link copied to clipboard
open override fun atts(): Atts

Provides the Atts of this type with a single mapping from the typeKeyword to the type.

Link copied to clipboard
fun withAtts(additionalAtts: Atts): Atts

Merge type attribute with provided Atts in a new set of Atts

fun withAtts(vararg additionalAttributes: Pair<String, Any?>): Atts

Merge type attribute with provided pairs in a new set of Atts

Link copied to clipboard
fun HasAttsI.withAtts(vararg additionalAttributes: Pair<String, Any?>): Atts

Lets as us merge the attributes of something that HasAttsI with additional attributes.