- java.lang.Object
-
- org.praxislive.core.ComponentRegistry.Result
-
- Enclosing interface:
- ComponentRegistry
public static final class ComponentRegistry.Result extends Object
Component results to be returned fromComponentRegistry.query()
.
-
-
Constructor Summary
Constructors Constructor Description Result(Map<ComponentType,Lookup> components, Map<ComponentType,Lookup> roots)
Construct a Result object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Lookup
componentData(ComponentType type)
Query the data for the provided component type.List<ComponentType>
componentTypes()
List of component types available on the local system.Lookup
rootData(ComponentType type)
Query the data for the provided root type.List<ComponentType>
rootTypes()
List of root types available on the local system.
-
-
-
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 metadataroots
- 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
-
-