org.pf.tools.cda.base.model
Interface IClassSpace

All Known Implementing Classes:
ClassSpace

public interface IClassSpace

Represents an area where class container and class information objects are kept. It provides several methods to access such objects.

Version:
1.0
Author:
M.Duchrow

Method Summary
 GenericClassContainer findContainerNamed(java.lang.String containerName)
          Returns the class container with the given name or null, if it cannot be found.
 java.util.List<GenericClassContainer> getClassContainers()
          Returns all class containers of this class space.
 ClassInformation getClassInfo(java.lang.String className)
          Returns the ClassInformation object corresponding to the given className.
 GenericClassContainer getNotFoundClassesContainer()
          Returns the container that holds all classes that cannot be found in any other container.
 

Method Detail

getClassInfo

ClassInformation getClassInfo(java.lang.String className)
Returns the ClassInformation object corresponding to the given className. The result might be a newly created instance of ClassInformation or an already in the workset existing object. Use method isComplete() on it to check if it is already loaded from its file.

Parameters:
className - The fully qualified class name (must not be null)
See Also:
ClassInformation.isComplete()

getClassContainers

java.util.List<GenericClassContainer> getClassContainers()
Returns all class containers of this class space.

Returns:
A List

findContainerNamed

GenericClassContainer findContainerNamed(java.lang.String containerName)
Returns the class container with the given name or null, if it cannot be found.

Parameters:
containerName - The name of the container to look up (must not be null)

getNotFoundClassesContainer

GenericClassContainer getNotFoundClassesContainer()
Returns the container that holds all classes that cannot be found in any other container.