StringRuleRepository class
A rule repository that loads rules from a list of strings.
The repository can load rules from a list of strings. The rules are expected to be in JSON format.
- Inheritance
-
- Object
- JsonRuleRepository
- StringRuleRepository
Constructors
-
StringRuleRepository.new(List<
String> rules)
Properties
Methods
-
dispose(
) → Future< void> -
Disposes the repository.
override
-
findAllRules(
) → Future< List< Rule> > -
Finds all rules in the repository.
inherited
-
findById(
String id) → Future< Rule?> -
Finds a rule by id.
inherited
-
findByName(
String name) → Future< List< Rule> > -
Finds rules by name.
inherited
-
loadJsonRuleById(
String id) → Future< String?> -
Loads a json rule by id.
override
-
loadJsonRuleByName(
String name) → Stream< String> -
Loads a json rule by name.
override
-
loadJsonRules(
) → Stream< String> -
Loads all json rules.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited