Class TypeRepository

java.lang.Object
kieker.model.repository.AbstractRepository
kieker.model.repository.TypeRepository

public class TypeRepository
extends AbstractRepository
This is a repository in which the different component types (ComponentType) can be stored.
Since:
1.1
Author:
Andre van Hoorn
  • Field Details

  • Constructor Details

    • TypeRepository

      public TypeRepository​(SystemModelRepository systemFactory)
      Creates a new instance of this class using the given parameters.
      Parameters:
      systemFactory - The system factory.
  • Method Details

    • lookupComponentTypeByNamedIdentifier

      public final ComponentType lookupComponentTypeByNamedIdentifier​(java.lang.String namedIdentifier)
      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​(java.lang.String namedIdentifier, java.lang.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

      public final java.util.Collection<ComponentType> getComponentTypes()
      Returns a collection of all registered component types.
      Returns:
      a collection of all registered component types.