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 StringdefaultValueStringdescriptionbooleanmandatoryintmaxintminStringnamebooleannullablebooleanreadonlyStringregexprClass<?>typeIf we don't specify a default in the annotation definition, the type becomes mandatory.
-
-
-
Element Detail
-
name
String name
- Default:
- ""
-
-
-
type
Class<?> type
If we don't specify a default in the annotation definition, the type becomes mandatory. We wanted a way to specify a default that means using the return type of the annotated method. This avoids the need for developers to specify something that can be obtained from the annotated method itself. We can't use Object as the default because Object is mapped asPropertyTypeName.BaseType.ANY. For this reason, the typeGetReturnTypehas been set as the default. Please note that you can't use this functionality for generic types like Listbecause it is not accepted by the annotation. - Default:
- org.gcube.informationsystem.types.annotations.GetReturnType.class
-
-
-
description
String description
- Default:
- ""
-
-
-
regexpr
String regexpr
- Default:
- ""
-
-
-
defaultValue
String defaultValue
- Default:
- "null"
-
-