Class AddElementToTreeAction

    • Field Detail

      • tree

        protected Tree<Class<Element>> tree
        The tree to which discovered elements will be added.
      • facetKnowledge

        protected UsageKnowledge facetKnowledge
        The knowledge base for facet usage.
      • resourceKnowledge

        protected UsageKnowledge resourceKnowledge
        The knowledge base for resource usage.
    • Constructor Detail

      • AddElementToTreeAction

        public AddElementToTreeAction​(Tree<Class<Element>> tree)
        Constructs a new action with the specified tree.
        Parameters:
        tree - The tree to which discovered elements will be added.
    • Method Detail

      • getFacetKnowledge

        public UsageKnowledge getFacetKnowledge()
        Returns the facet usage knowledge.
        Returns:
        The facet usage knowledge.
      • setFacetKnowledge

        public void setFacetKnowledge​(UsageKnowledge facetKnowledge)
        Sets the facet usage knowledge.
        Parameters:
        facetKnowledge - The facet usage knowledge.
      • getResourceKnowledge

        public UsageKnowledge getResourceKnowledge()
        Returns the resource usage knowledge.
        Returns:
        The resource usage knowledge.
      • setResourceKnowledge

        public void setResourceKnowledge​(UsageKnowledge resourceKnowledge)
        Sets the resource usage knowledge.
        Parameters:
        resourceKnowledge - The resource usage knowledge.
      • createUsageKnowledge

        protected void createUsageKnowledge​(Class<Element> e)
        Creates usage knowledge for the given element by analyzing its type definition.
        Parameters:
        e - The element class.