nl.tudelft.simulation.introspection
Interface Introspector

All Known Implementing Classes:
AbstractSuppressIntrospector, BeanIntrospector, FieldIntrospector

public interface Introspector

The introspector provides introspection services, i.e. property discovery and manipulation, for any object.

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

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

Method Summary
 Property[] getProperties(Object introspected)
           
 Property getProperty(Object introspected, String property)
          Retrieves the {see Property}with a given name from an introspected object.
 String[] getPropertyNames(Object introspected)
          Retrieves the names of the properties of the introspected object.
 

Method Detail

getProperties

Property[] getProperties(Object introspected)
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.

getPropertyNames

String[] getPropertyNames(Object introspected)
Retrieves the names of the properties of the introspected object.

Parameters:
introspected - The introspected object.
Returns:
An unordered array of the introspected object's property names.

getProperty

Property getProperty(Object introspected,
                     String property)
Retrieves the {see Property}with a given name from an introspected object.

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.


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