Annotation Interface BlockTrait.Values
- Enclosing class:
BlockTrait
Restricts the values a property may declare.
- Since:
- 0.1.0
-
Required Element Summary
Required Elements -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionbooleanReturnstrueif the property must declare exactly the accepted values,falseif it may declare any of them.
-
Element Details
-
property
String propertyReturns the name of the restricted property, which is then required.- Returns:
- the name of the restricted property, which is then required
- Since:
- 0.1.0
-
allowed
-
exactly
boolean exactlyReturnstrueif the property must declare exactly the accepted values,falseif it may declare any of them.- Returns:
trueif the property must declare exactly the accepted values,falseif it may declare any of them- Since:
- 0.1.0
- Default:
false
-