Interface ResourceProperty
- All Known Implementing Classes:
ResourcePropertyImpl
@ProviderType
public interface ResourceProperty
Describes a
Resource
property.-
Method Summary
Modifier and TypeMethodDescription@NotNull String
getName()
Returns the name of this property.@Nullable Pattern
Returns the name pattern for this property.@NotNull List<ValidatorInvocation>
Returns a list ofValidatorInvocation
s which should be applied on this property.boolean
boolean
Returnstrue
if at least one property matching the name/namePattern is required.
-
Method Details
-
getName
Returns the name of this property. This must match the name of the property which is validated through this section of the validation model. In casegetNamePattern()
is notnull
this name is not relevant for matching the property.- Returns:
- the name
-
getNamePattern
Returns the name pattern for this property. In case this is not returningnull
, this pattern is used for finding the properties which should be validated.- Returns:
- the name pattern (if one is set) or
null
-
isMultiple
boolean isMultiple()- Returns:
true
if the property is expected to contain multiple values,false
otherwise
-
isRequired
boolean isRequired()Returnstrue
if at least one property matching the name/namePattern is required.- Returns:
true
if the property is required,false
otherwise
-
getValidatorInvocations
Returns a list ofValidatorInvocation
s which should be applied on this property.- Returns:
- the
List
ofValidatorInvocation
s
-