Interface Fragment<T>

  • All Known Implementing Classes:
    NodeFragment

    @NotThreadSafe
    public interface Fragment<T>
    Wrapper for a fragment object.
    • Method Detail

      • getId

        String getId()
        Returns:
        an identifier unique across fragments
      • unwrap

        T unwrap()
        Returns:
        the wrapped fragment
      • reserve

        boolean reserve​(long id,
                        Object token)
      • release

        boolean release​(long id,
                        Object token)
      • isMatch

        boolean isMatch​(SelectorPath selectorPath,
                        ExecutionContext executionContext)
        Is the supplied SelectorPath targeting this Fragment.

        Checks that this fragment is in the correct namespace and is a contextual match for the configuration.

        Parameters:
        selectorPath - The selector path to be checked.
        executionContext - The current execution context.
        Returns:
        True if this configuration is targeted at the supplied element, otherwise false.