Package org.iam.model

Class DomainLabelTrees

java.lang.Object
org.iam.model.DomainLabelTrees

public class DomainLabelTrees extends Object
DomainLabelTrees manages label trees for multiple domains.

Maintains a mapping from domain names to their corresponding LabelTree instances, and provides methods to query and set label trees for each domain.

Since:
2025-02-28
Author:
  • Constructor Details

    • DomainLabelTrees

      public DomainLabelTrees()
      Default constructor. Initializes the domain-to-tree map.
    • DomainLabelTrees

      public DomainLabelTrees(org.mcp.core.MCPFactory mcpFactory)
      Constructs DomainLabelTrees using an MCPFactory. For each domain in the factory, creates a LabelTree based on its children nodes.
      Parameters:
      mcpFactory - the MCPFactory instance
  • Method Details

    • getMaximumLabels

      public HashSet<Object> getMaximumLabels(String domain, Object value)
      Returns the maximal labels (children nodes) for a given domain and value.
      Parameters:
      domain - the domain name
      value - the value to query
      Returns:
      set of maximal child nodes for the value in the domain
    • setDomainLabelTrees

      public void setDomainLabelTrees(String domain, LabelTree<Object> labelTree)
      Sets the LabelTree for a specific domain.
      Parameters:
      domain - the domain name
      labelTree - the LabelTree instance to associate