Annotation Type ISProperty

    • 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 as PropertyTypeName.BaseType.ANY. For this reason, the type GetReturnType has been set as the default. Please note that you can't use this functionality for generic types like List because it is not accepted by the annotation.
        Default:
        org.gcube.informationsystem.types.annotations.GetReturnType.class
      • description

        String description
        Default:
        ""
      • mandatory

        boolean mandatory
        Default:
        false
      • readonly

        boolean readonly
        Default:
        false
      • nullable

        boolean nullable
        Default:
        true
      • min

        int min
        Default:
        -1
      • max

        int max
        Default:
        -1
      • regexpr

        String regexpr
        Default:
        ""
      • defaultValue

        String defaultValue
        Default:
        "null"