Kieker 1.6

kieker.tools.traceAnalysis.systemModel.repository
Class TypeRepository

java.lang.Object
  extended by kieker.tools.traceAnalysis.systemModel.repository.AbstractSystemSubRepository
      extended by kieker.tools.traceAnalysis.systemModel.repository.TypeRepository

public class TypeRepository
extends AbstractSystemSubRepository

Author:
Andre van Hoorn

Field Summary
static ComponentType ROOT_COMPONENT
           
 
Fields inherited from class kieker.tools.traceAnalysis.systemModel.repository.AbstractSystemSubRepository
ROOT_ELEMENT_ID
 
Constructor Summary
TypeRepository(SystemModelRepository systemFactory)
           
 
Method Summary
 ComponentType createAndRegisterComponentType(String namedIdentifier, String fullqualifiedName)
          Creates and registers a component type that has not been registered yet.
 Collection<ComponentType> getComponentTypes()
          Returns a collection of all registered component types.
 ComponentType lookupComponentTypeByNamedIdentifier(String namedIdentifier)
          Returns the instance for the passed namedIdentifier; null if no instance with this namedIdentifier.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ROOT_COMPONENT

public static final ComponentType ROOT_COMPONENT
Constructor Detail

TypeRepository

public TypeRepository(SystemModelRepository systemFactory)
Method Detail

lookupComponentTypeByNamedIdentifier

public final ComponentType lookupComponentTypeByNamedIdentifier(String namedIdentifier)
Returns the instance for the passed namedIdentifier; null if no instance with this namedIdentifier.


createAndRegisterComponentType

public final ComponentType createAndRegisterComponentType(String namedIdentifier,
                                                          String fullqualifiedName)
Creates and registers a component type that has not been registered yet.

Parameters:
namedIdentifier -
fullqualifiedName -
Returns:
the created component type
Throws:
IllegalArgumentException - if a component type with the given namedIdentifier has already been registered

getComponentTypes

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

Returns:
a collection of all registered component types.

Kieker 1.6

Copyright 2012 Kieker Project, http://kieker-monitoring.net