Class PropertyDefinition.AbstractBuilder<T,​D extends PropertyDefinition<T>>

    • Constructor Detail

      • AbstractBuilder

        protected AbstractBuilder​(AbstractManagedObjectDefinition<?,​?> d,
                                  String propertyName)
        Create a property definition builder.
        Parameters:
        d - The managed object definition associated with this property definition.
        propertyName - The property name.
    • Method Detail

      • getInstance

        public final D getInstance()
        Construct a property definition based on the properties of this builder.
        Returns:
        The new property definition.
      • setAdministratorAction

        public final void setAdministratorAction​(AdministratorAction adminAction)
        Set the administrator action.
        Parameters:
        adminAction - The administrator action.
      • setDefaultBehaviorProvider

        public final void setDefaultBehaviorProvider​(DefaultBehaviorProvider<ValueOrExpression<T>> defaultBehavior)
        Set the default behavior provider.
        Parameters:
        defaultBehavior - The default behavior provider.
      • setOption

        public final void setOption​(PropertyOption option)
        Add a property definition option.
        Parameters:
        option - The property option.
      • setDeprecated

        public final void setDeprecated​(Deprecated deprecated)
        Register a deprecation with this property definition.

        This method must not be called by applications.

        Parameters:
        deprecated - The deprecated to be registered.
      • buildInstance

        protected abstract D buildInstance​(AbstractManagedObjectDefinition<?,​?> d,
                                           String propertyName,
                                           EnumSet<PropertyOption> options,
                                           AdministratorAction adminAction,
                                           DefaultBehaviorProvider<ValueOrExpression<T>> defaultBehavior,
                                           Deprecated deprecated)
        Build a property definition based on the properties of this builder.
        Parameters:
        d - The managed object definition associated with this property definition.
        propertyName - The property name.
        options - Options applicable to this definition.
        adminAction - The administrator action.
        defaultBehavior - The default behavior provider.
        deprecated - The deprecation description.
        Returns:
        The new property definition.