public class ClassSpace extends java.lang.Object implements IClassSpace, IClassInformationFactory
Constructor and Description |
---|
ClassSpace(Workset workset)
Initialize the new instance with the workset it belongs to.
|
Modifier and Type | Method and Description |
---|---|
void |
addClassContainer(GenericClassContainer container)
Add the given container at the end of the current container list
|
boolean |
contains(GenericClassContainer container)
Returns true if this class space already contains the given container
|
ClassInformation |
createClassInfo(java.lang.String className,
ClassPackage pack)
Create a new ClassInformation object representing a class with the
given (fully qualified) class name in the given package.
|
ClassContainer |
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.
|
protected java.util.Map<java.lang.String,ClassInformation> |
getClassInfoRegistry() |
GenericClassContainer |
getNotFoundClassesContainer()
Returns the container that holds all classes that cannot be found in any
other container.
|
protected Workset |
getWorkset() |
protected void |
initNotFoundClassesContainer(Workset aWorkset) |
protected void |
setClassContainers(java.util.List<GenericClassContainer> newValue) |
protected void |
setNotFoundClassesContainer(GenericClassContainer newValue) |
protected void |
setWorkset(Workset newValue) |
public ClassSpace(Workset workset)
public ClassContainer findContainerNamed(java.lang.String containerName)
findContainerNamed
in interface IClassSpace
containerName
- The name of the container to look up (must not be null)public boolean contains(GenericClassContainer container)
public void addClassContainer(GenericClassContainer container)
public ClassInformation getClassInfo(java.lang.String className)
getClassInfo
in interface IClassSpace
className
- The fully qualified class name (Must not be null).ClassInformation.isComplete()
public ClassInformation createClassInfo(java.lang.String className, ClassPackage pack)
createClassInfo
in interface IClassInformationFactory
public java.util.List<GenericClassContainer> getClassContainers()
IClassSpace
getClassContainers
in interface IClassSpace
public GenericClassContainer getNotFoundClassesContainer()
IClassSpace
getNotFoundClassesContainer
in interface IClassSpace
protected void initNotFoundClassesContainer(Workset aWorkset)
protected void setClassContainers(java.util.List<GenericClassContainer> newValue)
protected void setNotFoundClassesContainer(GenericClassContainer newValue)
protected Workset getWorkset()
protected void setWorkset(Workset newValue)
protected java.util.Map<java.lang.String,ClassInformation> getClassInfoRegistry()