RuleDescriptor class final Validation
One business rule of EN 16931, as the catalogue knows it.
The catalogue is read from the validation artefacts the standard is published with, so it lists every rule that exists rather than the ones that came to mind. What a rule means is implemented here, in Dart, against the semantic model: nothing of the artefacts themselves is carried into this package.
Constructors
-
RuleDescriptor({required String id, required RuleFamily family, required RuleSeverity severity, required List<
String> terms}) -
The rule
id, offamilyandseverity, bearing onterms.const
Properties
- family → RuleFamily
-
What the rule is about.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
The identifier the standard gives the rule,
BR-CO-10for instance.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- severity → RuleSeverity
-
What a receiver does with an invoice that breaks it.
final
-
terms
→ List<
String> -
The business terms and groups the rule bears on,
BT-106andBG-23for instance, in the order the standard names them.final
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.
inherited