Interface ChildResource
- All Known Implementing Classes:
ChildResourceImpl
@ProviderType
public interface ChildResource
Defines the validation rules for a child resource, allowing
ValidationModel
s to be applied to Resource
trees.-
Method Summary
Modifier and TypeMethodDescription@NotNull Collection<ChildResource>
Returns the child resources of this part of the Validation Model@NotNull String
getName()
Return this resource's name.@Nullable Pattern
Returns this resource's name pattern.@NotNull Collection<ResourceProperty>
Returns the properties this child resource is expected to have.boolean
Returnstrue
if at least one resource matching the name/namePattern is required.
-
Method Details
-
getName
Return this resource's name. This must match the name of the child resource which is validated through this section of the validation model. In casegetNamePattern()
is notnull
this name is not relevant for matching the content resource.- Returns:
- the name
-
getNamePattern
Returns this resource's name pattern. In case this is not returningnull
, this pattern is used for finding the child resources which should be validated.- Returns:
- the name pattern (if one is set) or
null
-
isRequired
boolean isRequired()Returnstrue
if at least one resource matching the name/namePattern is required.- Returns:
true
if the resource is required,false
otherwise
-
getProperties
Returns the properties this child resource is expected to have.- Returns:
- the properties list. Never
null
.
-
getChildren
Returns the child resources of this part of the Validation Model- Returns:
- child resources. Never
null
.
-