Class: Lutaml::Model::Validation::Rule
- Inherits:
-
Object
- Object
- Lutaml::Model::Validation::Rule
- Defined in:
- lib/lutaml/model/validation/rule.rb
Overview
Instance Method Summary collapse
- #applicable?(_context) ⇒ Boolean
- #category ⇒ Object
- #check(_context) ⇒ Object
- #code ⇒ Object
- #collect(_element, _context) ⇒ Object
- #complete(_context) ⇒ Object
- #needs_deferred? ⇒ Boolean
- #severity ⇒ Object
Instance Method Details
#applicable?(_context) ⇒ Boolean
25 26 27 |
# File 'lib/lutaml/model/validation/rule.rb', line 25 def applicable?(_context) true end |
#category ⇒ Object
17 18 19 |
# File 'lib/lutaml/model/validation/rule.rb', line 17 def category :general end |
#check(_context) ⇒ Object
29 30 31 |
# File 'lib/lutaml/model/validation/rule.rb', line 29 def check(_context) [] end |
#code ⇒ Object
13 14 15 |
# File 'lib/lutaml/model/validation/rule.rb', line 13 def code nil end |
#collect(_element, _context) ⇒ Object
37 |
# File 'lib/lutaml/model/validation/rule.rb', line 37 def collect(_element, _context); end |
#complete(_context) ⇒ Object
39 40 41 |
# File 'lib/lutaml/model/validation/rule.rb', line 39 def complete(_context) [] end |
#needs_deferred? ⇒ Boolean
33 34 35 |
# File 'lib/lutaml/model/validation/rule.rb', line 33 def needs_deferred? false end |
#severity ⇒ Object
21 22 23 |
# File 'lib/lutaml/model/validation/rule.rb', line 21 def severity "error" end |