Interface BasePreferencePortable<T>

    • Method Detail

      • getPojoClass

        Class<T> getPojoClass()
        Returns the preference bean class.
        Returns:
        The preference bean class.
      • identifier

        String identifier()
        Unique identifier, used by this preference children to determine their parents. Also used to name the file containing its value.
        Returns:
        A unique identifier for the preference bean.
      • parents

        String[] parents()
        The preferences which will have this preference as their child. All parents will share the same preference value.
        Returns:
        The parents of this preference. Empty if there is not one.
      • bundleKey

        String bundleKey()
        Returns the bundle key registered in the WorkbenchPreference annotation.
        Returns:
        The preference bundle key.
      • set

        void set​(String property,
                 Object value)
        Sets a property value by its name.
        Parameters:
        property - Name of the property field to be set.
        value - New value for the property.
      • get

        Object get​(String property)
        Returns a property value by its name.
        Parameters:
        property - Name of the property field to be fetched.
        Returns:
        The property value.
      • getPropertiesTypes

        Map<String,​PropertyFormType> getPropertiesTypes()
        Returns the form types of all simple (non-preference) properties by their field name.
        Returns:
        The properties form types by their field names.
      • getPropertyType

        default PropertyFormType getPropertyType​(String propertyName)
        Returns the form type of a specific simple (non-preference) property by its field name.
        Parameters:
        propertyName - The property field name.
        Returns:
        The property form type.
      • isPersistable

        boolean isPersistable()
        A preference is persistable when it has at least one non-shared property.
        Returns:
        true if it is persistable and false otherwise.