Class: Oscal::V1_2_1::ControlImplementation

Inherits:
Base
  • Object
show all
Defined in:
lib/oscal/v1_2_1/all_models.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

lutaml_default_register

Class Method Details

.metaschema_constraintsObject



12155
12156
12157
# File 'lib/oscal/v1_2_1/all_models.rb', line 12155

def self.metaschema_constraints
  @metaschema_constraints
end

Instance Method Details

#validate_constraintsObject



12159
12160
12161
12162
# File 'lib/oscal/v1_2_1/all_models.rb', line 12159

def validate_constraints
  validator = Metaschema::ConstraintValidator.new
  validator.validate(self, self.class.metaschema_constraints)
end

#validate_occurrencesObject



12164
12165
12166
# File 'lib/oscal/v1_2_1/all_models.rb', line 12164

def validate_occurrences
  Metaschema::ConstraintValidator.validate_occurrences(self, self.class.instance_variable_get(:@occurrence_constraints))
end