Class ComponentRegistry.Result

    • Constructor Detail

      • 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 Detail

      • 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