Interface ValidationModel
- All Known Implementing Classes:
MergedValidationModel
,ValidationModelImpl
@ProviderType
public interface ValidationModel
A
ValidationModel
defines the validation rules that a resource tree has to pass.-
Method Summary
Modifier and TypeMethodDescription@NotNull Collection<String>
Returns the paths under which resources will be validated by this model.@NotNull Collection<ChildResource>
Returns the expected children for a resource validated by this model.@NotNull Collection<ResourceProperty>
Returns the properties validated by this model.@NotNull String
@NotNull String
Returns the type of resource this model validates.
-
Method Details
-
getResourceProperties
Returns the properties validated by this model.- Returns:
- the properties list (never
null
, but might be empty list)
-
getValidatingResourceType
Returns the type of resource this model validates.- Returns:
- the resource type to be validated, never
null
-
getApplicablePaths
Returns the paths under which resources will be validated by this model. Might return a single element array containing only the empty string, in which case the validation model has no path restriction.- Returns:
- a path array. Is never
null
nor an empty collection.
-
getChildren
Returns the expected children for a resource validated by this model.- Returns:
- the children list (can be empty if there are no children), never
null
-
getSource
- Returns:
- a string indicating the original source of this validation model, e.g. a resource path
-