Package kieker.model.repository
Class TypeRepository
java.lang.Object
kieker.model.repository.AbstractRepository
kieker.model.repository.TypeRepository
This is a repository in which the different component types
(
ComponentType) can be stored.- Since:
- 1.1
- Author:
- Andre van Hoorn
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ComponentTypeThis constant represents the root component.Fields inherited from class kieker.model.repository.AbstractRepository
ROOT_ELEMENT_ID -
Constructor Summary
ConstructorsConstructorDescriptionTypeRepository(SystemModelRepository systemFactory) Creates a new instance of this class using the given parameters. -
Method Summary
Modifier and TypeMethodDescriptionfinal ComponentTypecreateAndRegisterComponentType(String namedIdentifier, String fullqualifiedName) Creates and registers a component type that has not been registered yet.final Collection<ComponentType>Returns a collection of all registered component types.final ComponentTypelookupComponentTypeByNamedIdentifier(String namedIdentifier) Returns the instance for the passed namedIdentifier; null if no instance with this namedIdentifier.Methods inherited from class kieker.model.repository.AbstractRepository
getAndIncrementNextId, getSystemFactory
-
Field Details
-
ROOT_COMPONENT
This constant represents the root component.
-
-
Constructor Details
-
TypeRepository
Creates a new instance of this class using the given parameters.- Parameters:
systemFactory- The system factory.
-
-
Method Details
-
lookupComponentTypeByNamedIdentifier
Returns the instance for the passed namedIdentifier; null if no instance with this namedIdentifier.- Parameters:
namedIdentifier- The identifier to search for.- Returns:
- The corresponding component type if available; null otherwise.
-
createAndRegisterComponentType
public final ComponentType createAndRegisterComponentType(String namedIdentifier, String fullqualifiedName) Creates and registers a component type that has not been registered yet.- Parameters:
namedIdentifier- The identifier of the new component type.fullqualifiedName- The fully qualfieid name of the new component type.- Returns:
- the created component type
-
getComponentTypes
Returns a collection of all registered component types.- Returns:
- a collection of all registered component types.
-