org.media.mn8
Class ConceptRegister
java.lang.Object
|
+--org.media.mn8.ConceptRegister
- public class ConceptRegister
- extends java.lang.Object
- Version:
- $Revision: 1.7 $ $Date: 2002/06/05 14:55:35 $
- Author:
- Remus Pereni
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
initialize
public static void initialize()
cleanAll
public static void cleanAll()
getReference
public static ConceptRegister getReference()
- Describe 'getReference' method here.
- Parameters:
nil
- a value of type ''- Returns:
- a value of type 'ConceptRegister'
register
public void register(java.lang.String name,
java.lang.Object concept)
- Describe constructor here.
- Parameters:
name
- a value of type 'String'concept
- a value of type 'Concept'
unregister
public void unregister(java.lang.String name)
- Describe constructor here.
- Parameters:
name
- a value of type 'String'
lookup
public java.lang.Object lookup(java.lang.String name)
listConceptsName
public java.util.Enumeration listConceptsName()
listConcepts
public java.util.Enumeration listConcepts()
isConceptNamed
public boolean isConceptNamed(java.lang.String name)
resolveClass
public java.lang.String resolveClass(java.lang.String className)
- Given a class name, tries to find if there is a concept
associated with it.
It does this by:
- parsing all the register and comparing the given class
name with the concept's class.
- if it is none available, that probably means that the
class is an interface, so we get the assumed concept name
from the interface by stripping the package name, we find
the registered concept with that name, after which we compare
the two classes to see if there is indeed an inheritance
relationship.
- Parameters:
className
- the class name as given by Class.getName();- Returns:
- the concept name if it is one associated with this class
or null if it is none.
"Copyright © 2001 Internet Multicasting Services & media.org. All Rights Reserved."