OkfFindingId class final

A stable finding identifier in <namespace>/<code> form.

Both segments are lowercase kebab-case: one or more [a-z0-9] runs joined by single hyphens. The grammar is frozen; it may only ever be loosened, so consumers can rely on every ID they store today parsing tomorrow.

Constructors

OkfFindingId.fromParts(String namespace, String code)
Creates and validates an identifier from separate grammar components.
factory
OkfFindingId.okf(String code)
Creates an identifier in baseNamespace.
factory
OkfFindingId.parse(String value)
Parses and validates a namespaced identifier.
factory

Properties

code → String
The stable code within namespace.
final
hashCode → int
The hash code for this object.
no setteroverride
namespace → String
The namespace that owns this identifier.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
value → String
The complete namespaced identifier.
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
override

Constants

baseNamespace → const String
The namespace in which this package mints its own finding IDs.