jess
Class DefaultClassResearcher

java.lang.Object
  extended by jess.DefaultClassResearcher
All Implemented Interfaces:
ClassResearcher

public class DefaultClassResearcher
extends java.lang.Object
implements ClassResearcher

(C) 2013 Sandia Corporation


Nested Class Summary
 
Nested classes/interfaces inherited from interface jess.ClassResearcher
ClassResearcher.Property
 
Constructor Summary
DefaultClassResearcher(Rete engine)
           
 
Method Summary
 ClassResearcher.Property[] getBeanProperties(java.lang.String clazz)
          Return a list of the JavaBeans properties of a class.
 ClassResearcher.Property[] getPublicInstanceFields(java.lang.String clazz)
          Return a list of the public instance fields of a class.
 java.lang.String resolveClassName(java.lang.String clazz)
          Return the fully-qualified name of a class, based on Jess's current import tables.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultClassResearcher

public DefaultClassResearcher(Rete engine)
Method Detail

resolveClassName

public java.lang.String resolveClassName(java.lang.String clazz)
                                  throws java.lang.ClassNotFoundException
Description copied from interface: ClassResearcher
Return the fully-qualified name of a class, based on Jess's current import tables.

Specified by:
resolveClassName in interface ClassResearcher
Parameters:
clazz - the name of a class, either just the class part, or the fully-qualified name
Returns:
the full name of the class
Throws:
java.lang.ClassNotFoundException - if the class can't be found

getBeanProperties

public ClassResearcher.Property[] getBeanProperties(java.lang.String clazz)
                                             throws java.lang.ClassNotFoundException,
                                                    JessException
Description copied from interface: ClassResearcher
Return a list of the JavaBeans properties of a class. The definition should be the same as used by the java.beans.Introspector class.

Specified by:
getBeanProperties in interface ClassResearcher
Parameters:
clazz - the name of the class to look at
Returns:
a list of Property objects describing the JavaBeans properties of the class
Throws:
java.lang.ClassNotFoundException - if the class can't be found
JessException - if anything else goes wrong

getPublicInstanceFields

public ClassResearcher.Property[] getPublicInstanceFields(java.lang.String clazz)
                                                   throws java.lang.ClassNotFoundException,
                                                          JessException
Description copied from interface: ClassResearcher
Return a list of the public instance fields of a class.

Specified by:
getPublicInstanceFields in interface ClassResearcher
Parameters:
clazz - the name of the class to look at
Returns:
a list of Property objects describing the public instance fields of the class
Throws:
java.lang.ClassNotFoundException - if the class can't be found
JessException - if anything else goes wrong

© 2013 Sandia Corporation