Package org.iam.model
Class DomainLabelTrees
java.lang.Object
org.iam.model.DomainLabelTrees
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 Summary
ConstructorsConstructorDescriptionDefault constructor.DomainLabelTrees(org.mcp.core.MCPFactory mcpFactory) Constructs DomainLabelTrees using an MCPFactory. -
Method Summary
Modifier and TypeMethodDescriptiongetMaximumLabels(String domain, Object value) Returns the maximal labels (children nodes) for a given domain and value.voidsetDomainLabelTrees(String domain, LabelTree<Object> labelTree) Sets the LabelTree for a specific domain.
-
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
Returns the maximal labels (children nodes) for a given domain and value.- Parameters:
domain- the domain namevalue- the value to query- Returns:
- set of maximal child nodes for the value in the domain
-
setDomainLabelTrees
Sets the LabelTree for a specific domain.- Parameters:
domain- the domain namelabelTree- the LabelTree instance to associate
-