Interface AnalyzeContext

  • public interface AnalyzeContext
    The analyze context is used to define the analyze behaviour of components. There is a context opened for every included component that can be analyzed. A component can be analyzed if it provides an analytics definition.
    • Method Detail

      • isRoot

        boolean isRoot()
        Checks if this is the root analyze context.
        true if this is the root analyze context
      • getParent

        AnalyzeContext getParent()
        Returns the parent analyze context or null if this context is the root context.
        the parent context or null
      • getRoot

        AnalyzeContext getRoot()
        Returns the root analyze context.
        the root analyze context.
      • getComponentContext

        ComponentContext getComponentContext()
        Returns the primary component context that is bound to this context. Note that an analyze context can span several component context if components are included that do not need editing.
        the component context.
      • getComponent

        Component getComponent()
        Returns the primary component for this context.
        the component.
      • getAttribute

        Object getAttribute​(String name)
        Returns the context attribute for the given name
        name - the name of the attribute
        the attribute or null if not defined.
      • setAttribute

        Object setAttribute​(String name,
                            Object value)
        Sets a context attribute with the given name. If the given attribute is null it is removed from the attribute map.
        name - the name of the attribute
        value - the attribute value
        the old attribute or null