io.github.frikit.twirlspec.standards

Members list

Type members

Classlikes

final case class Criterion(number: String, title: String, level: Level, since: WcagVersion)

The success criterion a rule enforces, so a project can select the rules that match the conformance it is actually claiming.

The success criterion a rule enforces, so a project can select the rules that match the conformance it is actually claiming.

Attributes

Source
Rule.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
sealed abstract class Level(val name: String, val order: Int)

The WCAG conformance level a success criterion belongs to.

The WCAG conformance level a success criterion belongs to.

Attributes

Companion
object
Source
Rule.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object A
object AA
object AAA
object Level

The three conformance levels.

The three conformance levels.

Attributes

Companion
class
Source
Rule.scala
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
Level.type
object Rule

Ways to build and combine rules.

Ways to build and combine rules.

Attributes

Companion
class
Source
Rule.scala
Supertypes
class Object
trait Matchable
class Any
Self type
Rule.type
final class Rule(val id: String, val description: String, val pageLevel: Boolean, val severity: Severity, val criterion: Option[Criterion], run: Page => Seq[Violation])

One named rule.

One named rule.

Value parameters

criterion

the WCAG success criterion the rule enforces, if it enforces one

description

what the rule checks, as a phrase

id

the stable id a spec excludes or selects the rule by

pageLevel

whether the rule applies only to a whole page, so a fragment rendered without a layout is not judged on what only a layout provides

run

the check itself; an empty result means the page passed

severity

whether a finding fails the page or is only reported

Attributes

Companion
object
Source
Rule.scala
Supertypes
class Object
trait Matchable
class Any
trait RuleSet

A named collection of rules.

A named collection of rules.

Attributes

Source
RuleSet.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object WcagVersion

The WCAG versions a criterion can date from.

The WCAG versions a criterion can date from.

Attributes

Companion
class
Source
Rule.scala
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
sealed abstract class WcagVersion(val name: String, val order: Int)

The WCAG version a success criterion first appeared in.

The WCAG version a success criterion first appeared in.

Attributes

Companion
object
Source
Rule.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object V2_0
object V2_1
object V2_2