org.jcon.data
Class IntrospectionLib

java.lang.Object
  extended by org.jcon.data.IntrospectionLib

public class IntrospectionLib
extends java.lang.Object

A library of introspection convenience functions.


Constructor Summary
IntrospectionLib()
           
 
Method Summary
static java.lang.Class classNamed(java.lang.String className)
          Returns a class corresponding to the given name.
static java.util.ArrayList editableFieldsFor(java.lang.Class classy)
          Returns a vector containing the names of all editable properties.
static java.util.Map fieldDefsFor(java.lang.Class classy)
          Returns a dictionary of FieldDefs, indexed by name.
static IntrospectionProfile profileFor(java.lang.Class classy)
          Returns a cached IntrospectionProfile for the given class.
static java.util.Map propertyDescriptorsFor(java.lang.Class classy)
          Returns a dictionary of PropertyDescriptors, indexed by name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IntrospectionLib

public IntrospectionLib()
Method Detail

classNamed

public static java.lang.Class classNamed(java.lang.String className)
Returns a class corresponding to the given name. Throws an IllegalArgumentException if you give it a bad name, so don't do that.


propertyDescriptorsFor

public static java.util.Map propertyDescriptorsFor(java.lang.Class classy)
Returns a dictionary of PropertyDescriptors, indexed by name.


fieldDefsFor

public static java.util.Map fieldDefsFor(java.lang.Class classy)
Returns a dictionary of FieldDefs, indexed by name.


editableFieldsFor

public static java.util.ArrayList editableFieldsFor(java.lang.Class classy)
Returns a vector containing the names of all editable properties.


profileFor

public static IntrospectionProfile profileFor(java.lang.Class classy)
Returns a cached IntrospectionProfile for the given class.