java.lang.Object
org.praxislive.core.ComponentRegistry.Result
- Enclosing interface:
ComponentRegistry
Component results to be returned from
ComponentRegistry.query().-
Constructor Summary
ConstructorsConstructorDescriptionResult(Map<ComponentType, Lookup> components, Map<ComponentType, Lookup> roots) Construct a Result object. -
Method Summary
Modifier and TypeMethodDescriptioncomponentData(ComponentType type) Query the data for the provided component type.List of component types available on the local system.rootData(ComponentType type) Query the data for the provided root type.List of root types available on the local system.
-
Constructor Details
-
Result
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 Details
-
componentTypes
List of component types available on the local system. The returned list is immutable.- Returns:
- component types
-
componentData
Query the data for the provided component type.- Parameters:
type- component type- Returns:
- data, or null if not a provided type
-
rootTypes
List of root types available on the local system. The returned list is immutable.- Returns:
- root types
-
rootData
Query the data for the provided root type.- Parameters:
type- root type- Returns:
- data, or null if not a provided type
-