URLReferenceTemplate

data class URLReferenceTemplate(val url: String, val prefix: String = "", val label: String? = null)

A centrally declared URL containing one {id} placeholder, with an optional display-label template. prefix supports numbered project keys: prefix "PTH-" accepts 123 or "PTH-123". Without a prefix, string identifiers can also be UUIDs or application-specific identifiers.

Constructors

Link copied to clipboard
constructor(url: String, prefix: String = "", label: String? = null)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val url: String

Functions

Link copied to clipboard
fun identifier(reference: URLReference): String?

Recover a call argument only when this template reproduces the complete reference, including its label.

Link copied to clipboard
operator fun invoke(number: Int): URLReference
operator fun invoke(number: Long): URLReference
operator fun invoke(identifier: String): URLReference
Generated with STIG