Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## uchicago.src.reflector
Class Introspector

    java.lang.Object
      uchicago.src.reflector.Introspector

    public class Introspector

extends java.lang.Object

Version:
  $Revision: 1.12 $ $Date: 2004/11/03 19:51:04 $
Author:
  Nick Collier

Field Summary
`static int` | `GET`
`static int` | `SET`

Constructor Summary
`Introspector()`

Method Summary
`java.lang.reflect.Method` | `getAccessorMethod(java.lang.String propName, int type)`
`java.lang.String` | `getPropertiesValues()` Returns a String of "property: value" for all the properties.
`java.lang.String` | `getPropertyAsString(java.lang.String propertyName)`
`java.lang.Class` | `getPropertyClass(java.lang.String propertyName)` Returns the class of the named property.
`java.util.Iterator` | `getPropertyNames()`
`java.lang.Object` | `getPropertyValue(java.lang.String propertyName)`
`java.util.Hashtable` | `getPropValues()` Get the property value pairs as a Hashtable.
`boolean` | `hasProperty(java.lang.String propName)`
`void` | `introspect(java.lang.Object o, java.lang.String[] props)`
`void` | `invokeSetMethod(java.lang.String propertyName, java.lang.Object param)`
`boolean` | `isPropertyBoolean(java.lang.String propertyName)` Is the specified property boolean.
`boolean` | `isPropertyStringable(java.lang.String propertyName)` Is the specified property amenable to being turned into a String - i.e. is it a String or a wrapper around a primitive.
`boolean` | `isReadOnly(java.lang.String propertyName)`
`boolean` | `isWriteOnly(java.lang.String propertyName)`
`void` | `printProperties()`
`void` | `reset()`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### GET

    public static final int GET

See Also:
  Constant Field Values

### SET

    public static final int SET

See Also:
  Constant Field Values

Constructor Detail

### Introspector

    public Introspector()

Method Detail

### introspect

    public void introspect(java.lang.Object o,
                           java.lang.String[] props)
                    throws java.beans.IntrospectionException

  Throws:
    `java.beans.IntrospectionException`

### getAccessorMethod

    public java.lang.reflect.Method getAccessorMethod(java.lang.String propName,
                                                      int type)

### printProperties

    public void printProperties()

### getPropertyNames

    public java.util.Iterator getPropertyNames()

### getPropertyValue

    public java.lang.Object getPropertyValue(java.lang.String propertyName)
                                      throws java.lang.reflect.InvocationTargetException,
                                             java.lang.IllegalAccessException

  Throws:
    `java.lang.reflect.InvocationTargetException`
    `java.lang.IllegalAccessException`

### isPropertyStringable

    public boolean isPropertyStringable(java.lang.String propertyName)
                                 throws java.lang.reflect.InvocationTargetException,
                                        java.lang.IllegalAccessException

  Is the specified property amenable to being turned into a String - i.e. is it a String or a wrapper around a primitive.

  Throws:
    `java.lang.reflect.InvocationTargetException`
    `java.lang.IllegalAccessException`

### getPropertyClass

    public java.lang.Class getPropertyClass(java.lang.String propertyName)

  Returns the class of the named property.

  Parameters:
    `propertyName` -
  Returns:

### isPropertyBoolean

    public boolean isPropertyBoolean(java.lang.String propertyName)
                              throws java.lang.reflect.InvocationTargetException,
                                     java.lang.IllegalAccessException

  Is the specified property boolean.

  Throws:
    `java.lang.reflect.InvocationTargetException`
    `java.lang.IllegalAccessException`

### getPropertyAsString

    public java.lang.String getPropertyAsString(java.lang.String propertyName)
                                         throws java.lang.reflect.InvocationTargetException,
                                                java.lang.IllegalAccessException

  Throws:
    `java.lang.reflect.InvocationTargetException`
    `java.lang.IllegalAccessException`

### hasProperty

    public boolean hasProperty(java.lang.String propName)

### getPropertiesValues

    public java.lang.String getPropertiesValues()
                                         throws java.lang.reflect.InvocationTargetException,
                                                java.lang.IllegalAccessException

  Returns a String of "property: value" for all the properties.

  Throws:
    `java.lang.reflect.InvocationTargetException`
    `java.lang.IllegalAccessException`

### getPropValues

    public java.util.Hashtable getPropValues()
                                      throws java.lang.reflect.InvocationTargetException,
                                             java.lang.IllegalAccessException

  Get the property value pairs as a Hashtable. The key is the property as a String and the value is the value.

  Throws:
    `java.lang.reflect.InvocationTargetException`
    `java.lang.IllegalAccessException`

### invokeSetMethod

    public void invokeSetMethod(java.lang.String propertyName,
                                java.lang.Object param)
                         throws java.lang.reflect.InvocationTargetException,
                                java.lang.IllegalAccessException

  Throws:
    `java.lang.reflect.InvocationTargetException`
    `java.lang.IllegalAccessException`

### isReadOnly

    public boolean isReadOnly(java.lang.String propertyName)

### isWriteOnly

    public boolean isWriteOnly(java.lang.String propertyName)

### reset

    public void reset()

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD