Annotation Interface ISProperty
It is used by
TypeMapper to identify which getter method are
related to and Entity PropertyDefinition.
The name of the property is obtained by removing "get" or "is" from method
name and lower casing the first letter.- Author:
- Luca Frosini (ISTI - CNR)
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionThe default value of the property, as a string.A description of the property.booleanWhether the property is mandatory.intThe maximum value for a numeric property.intThe minimum value for a numeric property.The name of the property.booleanWhether the property can be null.booleanWhether the property is read-only.A regular expression for validating a string property.Class<?>The type of the property.
-
Element Details
-
name
String nameThe name of the property.- Returns:
- The name.
- Default:
- ""
-
type
Class<?> typeThe type of the property.- Returns:
- The type.
- Default:
- org.gcube.informationsystem.types.annotations.GetReturnType.class
-
description
String descriptionA description of the property.- Returns:
- The description.
- Default:
- ""
-
mandatory
boolean mandatoryWhether the property is mandatory.- Returns:
trueif mandatory.
- Default:
- false
-
readonly
boolean readonlyWhether the property is read-only.- Returns:
trueif read-only.
- Default:
- false
-
nullable
boolean nullableWhether the property can be null.- Returns:
trueif nullable.
- Default:
- true
-
min
int minThe minimum value for a numeric property.- Returns:
- The minimum value.
- Default:
- -1
-
max
int maxThe maximum value for a numeric property.- Returns:
- The maximum value.
- Default:
- -1
-
regexpr
String regexprA regular expression for validating a string property.- Returns:
- The regular expression.
- Default:
- ""
-
defaultValue
String defaultValueThe default value of the property, as a string.- Returns:
- The default value.
- Default:
- "null"
-