Class ComponentRegistry.Result

java.lang.Object
org.praxislive.core.ComponentRegistry.Result
Enclosing interface:
ComponentRegistry

public static final class ComponentRegistry.Result extends Object
Component results to be returned from ComponentRegistry.query().
  • Constructor Details

    • Result

      public Result(Map<ComponentType,Lookup> components, Map<ComponentType,Lookup> roots)
      Construct a Result object. The data will be copied from the provided maps, which should not contain null keys or values. Use of ordered maps is recommended, and the order will be reflected in the lists of component and root types.
      Parameters:
      components - map of component types and metadata
      roots - map of root types and metadata
  • Method Details

    • componentTypes

      public List<ComponentType> componentTypes()
      List of component types available on the local system. The returned list is immutable.
      Returns:
      component types
    • componentData

      public Lookup componentData(ComponentType type)
      Query the data for the provided component type.
      Parameters:
      type - component type
      Returns:
      data, or null if not a provided type
    • rootTypes

      public List<ComponentType> rootTypes()
      List of root types available on the local system. The returned list is immutable.
      Returns:
      root types
    • rootData

      public Lookup rootData(ComponentType type)
      Query the data for the provided root type.
      Parameters:
      type - root type
      Returns:
      data, or null if not a provided type