Interface IBinding


  • public interface IBinding
    • Method Detail

      • getBindingProcessor

        de.uplanet.lucy.server.binding.IBindingProcessor getBindingProcessor()
        Returns:
        Returns the binding processor.
      • getValue

        IIxValue getValue​(IBindingKey p_binding)
        Parameters:
        p_binding - The binding
        Returns:
        Returns the value for the binding. If no value set for the binding an empty value will returned.
      • getValue

        IIxValue getValue​(String p_strBinding)
        Parameters:
        p_strBinding - The binding string
        Returns:
        Returns the value for the binding. If no value set for the binding an empty value will returned.
        Throws:
        de.uplanet.lucy.binding.InvalidBindingRuntimeException - if the binding string has an invalid format.
      • isValueAvailable

        boolean isValueAvailable​(IBindingKey p_binding)
        Checks if an value can resolved by the given binding. The value returned by the getValue(IBindingKey) could be empty (IIxValue.hasValue() == false).
        Parameters:
        p_binding - The binding to check (not null)
        Returns:
        Returns true if a value for the given binding is available otherwise false will returned.
      • isValueAvailable

        boolean isValueAvailable​(String p_strBinding)
        Checks if an value can resolved by the given binding. The value returned by the getValue(String) could be empty (IIxValue.hasValue() == false).
        Parameters:
        p_strBinding - The binding to check (not null)
        Returns:
        Returns true if a value for the given binding is available otherwise false will returned.
        Throws:
        de.uplanet.lucy.binding.InvalidBindingRuntimeException - if the binding string has an invalid format.
      • hasValue

        boolean hasValue​(String p_strBinding)
        Checks if an value can resolved by the given binding and the value is not empty. The value returned by the getValue(String) is not empty (IIxValue.hasValue() == true).
        Parameters:
        p_strBinding - The binding to check (not null)
        Returns:
        Returns true if a value for the given binding is available otherwise false will returned.
        Throws:
        de.uplanet.lucy.binding.InvalidBindingRuntimeException - if the binding string has an invalid format.
      • hasValue

        boolean hasValue​(IBindingKey p_binding)
        Checks if an value can resolved by the given binding and the value is not empty. The value returned by the getValue(String) is not empty (IIxValue.hasValue() == true).
        Parameters:
        p_binding - The binding to check (not null)
        Returns:
        Returns true if a value for the given binding is available otherwise false will returned.
        Throws:
        de.uplanet.lucy.binding.InvalidBindingRuntimeException - if the binding string has an invalid format.
      • setValue

        Optional<IIxValue> setValue​(IBindingKey p_binding,
                                    IIxValue p_value)
        Adds or changed a value for the given binding. On a read only binding type a exception will be thrown on trying to change a value.
        Parameters:
        p_binding - The binding (not null)
        p_value - The physical value, that would be set/changed for the binding.
        Returns:
        Returns the old physical value or null if no physical value was set.
        Throws:
        RuntimeException - if binding is not writable.
      • setValue

        Optional<IIxValue> setValue​(String p_strBinding,
                                    IIxValue p_value)
        Adds or changed a value for the given binding. On a read only binding type a exception will be thrown on trying to change a value.
        Parameters:
        p_strBinding - The binding (not null)
        p_value - The physical value, that would be set/changed for the binding.
        Returns:
        Returns the optional old physical value.
        Throws:
        de.uplanet.lucy.binding.InvalidBindingRuntimeException - if the binding string has an invalid format.
        RuntimeException - if binding is not writable.
      • removeValue

        Optional<IIxValue> removeValue​(IBindingKey p_binding)
        Removes a value for the given binding. On a read only binding type a exception will be thrown on trying to delete a existing value.
        Parameters:
        p_binding - The binding (not null)
        Returns:
        Returns the optional old physical value.
        Throws:
        RuntimeException - if binding is not writable.
      • removeValue

        Optional<IIxValue> removeValue​(String p_strBinding)
        Removes a value for the given binding. On a read only binding type a exception will be thrown on trying to delete a existing value.
        Parameters:
        p_strBinding - The binding string (not null)
        Returns:
        Returns the optional old physical value.
        Throws:
        de.uplanet.lucy.binding.InvalidBindingRuntimeException - if the binding string has an invalid format.
        RuntimeException - if binding is not writable.
      • canValueBindEarly

        boolean canValueBindEarly​(IBindingKey p_binding)
        Parameters:
        p_binding - The binding to check (not null)
        Returns:
        Returns true if the given binding can be used for early binding otherwise false.
      • canValueBindLate

        boolean canValueBindLate​(IBindingKey p_binding)
        Parameters:
        p_binding - The binding to check (not null)
        Returns:
        Returns true if the given binding can be used for a late binding otherwise false.
      • asContextualBinding

        IBinding asContextualBinding​(Object p_contextObject)
        Creates a binding object, that can used in a special context. A special context could be a data row for e.x. in a table row.
        Parameters:
        p_contextObject - (not null)
        Returns:
        The contextual binding object.