ter.API
Class Inspector

java.lang.Object
  |
  +--ter.API.Inspector

public class Inspector
extends java.lang.Object

Title: Class Inspector

Description: The inspector grab the classifier to study an create an AdvancedAnalyser with it, after, it control the positionment on the hierachy an use tree of the classifier.

Version:
1.1

Constructor Summary
Inspector(java.lang.Class theclass)
          test program
Inspector(java.lang.String thename)
          Deprecated. use Inspector(Class theclass) only for testing purpose
 
Method Summary
 void addClassifierAnalyser(ClassifierAnalyser ca)
          adds this classifier to the list of the classifiers
 java.util.ArrayList getAdvancedAnalysers()
          Deprecated. use ter.API.Inspector#removeClassifierAnalyser(ClassifierAnalyser)
 ClassifierAnalyser getClassifierAnalyser(java.lang.Class theClass)
          returns a ClassidierAnalyser from a dependance of this inspector
 ClassifierAnalyser getClassifierAnalyser(java.lang.String className)
          returns a ClassidierAnalyser from a dependance of this inspector
 java.util.Iterator getClassifierAnalyserIterator()
          get an iterator over the list of classifiers analysers
 java.util.Hashtable getClassifierAnalysers()
           
 java.lang.String getClassifierName()
          get the name of the main inspected class
 java.lang.Class getClassInspected()
          get the main inspected class
 ClassifierAnalyser getMainClassifier()
          returns the Classifier of the class of this inspector
 java.lang.ClassLoader getMainClassLoader()
           
 void removeClassifierAnalyser(ClassifierAnalyser ca)
          removes this classifier from the list of the classifiers
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Inspector

public Inspector(java.lang.Class theclass)
test program

Parameters:
theclass - the clasifier to study

Inspector

public Inspector(java.lang.String thename)
Deprecated. use Inspector(Class theclass) only for testing purpose

Parameters:
thename - the name of the inspector
See Also:
Inspector(Class theclass)
Method Detail

getMainClassLoader

public java.lang.ClassLoader getMainClassLoader()
Returns:
the mainClassifierClassLoader

addClassifierAnalyser

public void addClassifierAnalyser(ClassifierAnalyser ca)
adds this classifier to the list of the classifiers

Parameters:
ca - the classifier to add

removeClassifierAnalyser

public void removeClassifierAnalyser(ClassifierAnalyser ca)
removes this classifier from the list of the classifiers

Parameters:
ca - the clasifer to remove

getAdvancedAnalysers

public java.util.ArrayList getAdvancedAnalysers()
Deprecated. use ter.API.Inspector#removeClassifierAnalyser(ClassifierAnalyser)

Returns:
returns the arraylist of classifiers
See Also:
getClassifierAnalyser(String className), addClassifierAnalyser(ClassifierAnalyser ca), removeClassifierAnalyser(ClassifierAnalyser)

getClassifierAnalyser

public ClassifierAnalyser getClassifierAnalyser(java.lang.String className)
returns a ClassidierAnalyser from a dependance of this inspector

Parameters:
className - the full name of the class
Returns:
null if the class could not be loaded

getClassifierAnalyser

public ClassifierAnalyser getClassifierAnalyser(java.lang.Class theClass)
returns a ClassidierAnalyser from a dependance of this inspector

Parameters:
theClass - the class class
Returns:
null if the class could not be loaded

getMainClassifier

public ClassifierAnalyser getMainClassifier()
returns the Classifier of the class of this inspector

Returns:
the Classifier of the class of this inspector

getClassifierAnalyserIterator

public java.util.Iterator getClassifierAnalyserIterator()
get an iterator over the list of classifiers analysers

Returns:
an iterator over the list of classifiers analysers

getClassifierName

public java.lang.String getClassifierName()
get the name of the main inspected class

Returns:
the name of the main inspected class

getClassInspected

public java.lang.Class getClassInspected()
get the main inspected class

Returns:
the main inspected class

getClassifierAnalysers

public java.util.Hashtable getClassifierAnalysers()