Annotation Type ISProperty
-
@Documented @Target(METHOD) @Retention(RUNTIME) public @interface ISProperty
It is used byTypeMapperto identify which getter method are related to andEntityPropertyDefinition. 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 Elements Modifier and Type Optional Element Description StringdefaultValueThe default value of the property, as a string.StringdescriptionA description of the property.booleanmandatoryWhether the property is mandatory.intmaxThe maximum value for a numeric property.intminThe minimum value for a numeric property.StringnameThe name of the property.booleannullableWhether the property can be null.booleanreadonlyWhether the property is read-only.StringregexprA regular expression for validating a string property.Class<?>typeThe type of the property.
-
-
-
Element Detail
-
name
String name
The name of the property.- Returns:
- The name.
- Default:
- ""
-
-
-
type
Class<?> type
The type of the property.- Returns:
- The type.
- Default:
- org.gcube.informationsystem.types.annotations.GetReturnType.class
-
-
-
description
String description
A description of the property.- Returns:
- The description.
- Default:
- ""
-
-
-
regexpr
String regexpr
A regular expression for validating a string property.- Returns:
- The regular expression.
- Default:
- ""
-
-
-
defaultValue
String defaultValue
The default value of the property, as a string.- Returns:
- The default value.
- Default:
- "null"
-
-