Annotation Type Slot


  • @Retention(RUNTIME)
    public @interface Slot
    Allows to specify in the ontological schema the mandatory and name attributes of the slot.
    The annotation is to be applied to the getter method.
    Author:
    Paolo Cancedda
    • Field Detail

      • USE_METHOD_NAME

        static final String USE_METHOD_NAME
    • Element Detail

      • name

        String name
        Default:
        "__USE_METHOD_NAME__"
      • documentation

        String documentation
        Default:
        "__NULL__"
      • position

        int position
        Default:
        -1
      • mandatory

        boolean mandatory
        Default:
        false
      • manageAsSerializable

        boolean manageAsSerializable
        Tell the BeanOntologyBuilder to treat this slot as a Serializable object. This is useful when the type of a slot is not a valid java bean.
        Default:
        false
      • defaultValue

        String defaultValue
        Default:
        "__NULL__"
      • regex

        String regex
        Default:
        "__NULL__"
      • permittedValues

        String[] permittedValues
        Default:
        {}