class AttributeListBuilder: Any

Environment for describing and building attribute lists.

Constructors

<init>

constructor(namePrefix: String)

Environment for describing and building attribute lists.

Parameters

Name Description
namePrefix: String

Methods

unaryPlus

operator fun Attribute.unaryPlus()

Receiver

Name Description
Attribute

ReturnValue

Name Description
Unit

attribute

fun attribute(name: String, value: String)

Parameters

Name Description
name: String
value: String

ReturnValue

Name Description
Unit

attribute

fun attribute(name: String, value: Int)

Parameters

Name Description
name: String
value: Int

ReturnValue

Name Description
Unit

attribute

fun attribute(name: String, value: Double)

Parameters

Name Description
name: String
value: Double

ReturnValue

Name Description
Unit

attribute

fun attribute(name: String, value: Boolean)

Parameters

Name Description
name: String
value: Boolean

ReturnValue

Name Description
Unit

attribute

fun attribute(name: String, value: Double, unitOfMeasure: UnitOfMeasure)

Parameters

Name Description
name: String
value: Double
unitOfMeasure: UnitOfMeasure

ReturnValue

Name Description
Unit

attribute

fun attribute(name: String, optionalValue: Optional<String>)

Parameters

Name Description
name: String
optionalValue: Optional<String>

ReturnValue

Name Description
Unit

attributes

fun attributes(name: String, setup: AttributeListBuilder.()->Unit)

Environment for building a nested attribute list within this attribute list.

Parameters

Name Description
name: String
setup: AttributeListBuilder.()->Unit

ReturnValue

Name Description
Unit

build

fun build(): AttributeList

ReturnValue

Name Description
AttributeList