new ValidatedConcept(modelManager, ns, type, resourceValidator)
This constructor should not be called directly.
Note: Only to be called by framework code. Applications should
retrieve instances from Factory
Parameters:
Name | Type | Description |
---|---|---|
modelManager |
ModelManager | The ModelManager for this instance |
ns |
string | The namespace this instance. |
type |
string | The type this instance. |
resourceValidator |
ResourceValidator | The validator to use for this instance |
- Source:
- See:
-
See Resource
Extends
- Identifiable
Methods
-
addArrayValue(propName, value)
-
Adds an array property value, validating that it does not violate the model
Parameters:
Name Type Description propName
string the name of the field
value
string the value of the property
Throws:
-
if the value is not compatible with the model definition for the field
- Type
- Error
-
-
setPropertyValue(propName, value)
-
Sets a property, validating that it does not violate the model
Parameters:
Name Type Description propName
string the name of the field
value
string the value of the property
Throws:
-
if the value is not compatible with the model definition for the field
- Type
- Error
-
-
validate()
-
Validates the instance against its model.
Throws:
-
- if the instance if invalid with respect to the model
- Type
- Error
-