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.
      • buildInstance

        protected abstract D buildInstance​(AbstractManagedObjectDefinition<?,​?> d,
                                           String propertyName,
                                           EnumSet<PropertyOption> options,
                                           AdministratorAction adminAction,
                                           DefaultBehaviorProvider<ValueOrExpression<T>> defaultBehavior)
        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.
        Returns:
        The new property definition.