Interface ResourceProperty
- All Known Implementing Classes:
ResourcePropertyImpl
@ProviderType
public interface ResourceProperty
Describes a
Resource property.-
Method Summary
Modifier and TypeMethodDescription@NotNull StringgetName()Returns the name of this property.@Nullable PatternReturns the name pattern for this property.@NotNull List<ValidatorInvocation>Returns a list ofValidatorInvocations which should be applied on this property.booleanbooleanReturnstrueif 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 notnullthis 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:
trueif the property is expected to contain multiple values,falseotherwise
-
isRequired
boolean isRequired()Returnstrueif at least one property matching the name/namePattern is required.- Returns:
trueif the property is required,falseotherwise
-
getValidatorInvocations
Returns a list ofValidatorInvocations which should be applied on this property.- Returns:
- the
ListofValidatorInvocations
-