nl.tudelft.simulation.introspection.beans
Class BeanIntrospector

java.lang.Object
  extended bynl.tudelft.simulation.introspection.beans.BeanIntrospector
All Implemented Interfaces:
Introspector

public class BeanIntrospector
extends java.lang.Object
implements Introspector

The Bean introspector provides a simplified JavaBean TM implementation of the introspection interfaces. Its behavior adhers to the following:

(c) copyright 2003-2004 Delft University of Technology , the Netherlands.
See for project information www.simulation.tudelft.nl
License of use: General Public License (GPL) , no warranty

Since:
1.4
Version:
1.1 Apr 15, 2004
Author:
Niels Lang Peter Jacobs

Constructor Summary
BeanIntrospector()
           
 
Method Summary
 Property[] getProperties(java.lang.Object introspected)
           
 Property getProperty(java.lang.Object introspected, java.lang.String property)
          Retrieves the {see Property}with a given name from an introspected object.
 java.lang.String[] getPropertyNames(java.lang.Object introspected)
          Retrieves the names of the properties of the introspected object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BeanIntrospector

public BeanIntrospector()
Method Detail

getProperties

public Property[] getProperties(java.lang.Object introspected)
Specified by:
getProperties in interface Introspector
Parameters:
introspected - the introspected object
Returns:
Retrieves properties of the introspected object. The properties' values can themselves be introspectable. An empty array is returned if no introspected object has been set.
See Also:
Introspector.getProperties(Object)

getProperty

public Property getProperty(java.lang.Object introspected,
                            java.lang.String property)
Description copied from interface: Introspector
Retrieves the {see Property}with a given name from an introspected object.

Specified by:
getProperty in interface Introspector
Parameters:
introspected - The introspected object.
property - The name of the property to be retrieved
Returns:
A {see Property}instance for the given object and property name.
See Also:
Introspector.getProperty(Object, String)

getPropertyNames

public java.lang.String[] getPropertyNames(java.lang.Object introspected)
Description copied from interface: Introspector
Retrieves the names of the properties of the introspected object.

Specified by:
getPropertyNames in interface Introspector
Parameters:
introspected - The introspected object.
Returns:
An unordered array of the introspected object's property names.
See Also:
Introspector.getPropertyNames(Object)


Copyright © 2002-2004 Delft University of Technology, the Netherlands. All Rights Reserved.