public class FieldIntrospector extends Object implements Introspector
During construction, one can choose for either deep introspection (i.e.
including fields from all superclasses), or regular introspection (inlude
declared fields only). (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.
Constructor and Description |
---|
FieldIntrospector()
constructs a new FieldIntrospector
|
FieldIntrospector(boolean useDeepIntrospection)
constructs a new FieldIntrospector
|
Modifier and Type | Method and Description |
---|---|
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.
|
public FieldIntrospector()
public FieldIntrospector(boolean useDeepIntrospection)
useDeepIntrospection
- whether to use deep introspectionpublic Property[] getProperties(Object introspected)
getProperties
in interface Introspector
introspected
- the introspected objectIntrospector.getProperties(Object)
public Property getProperty(Object introspected, String property)
Introspector
getProperty
in interface Introspector
introspected
- The introspected object.property
- The name of the property to be retrievedIntrospector.getProperty(Object,
String)
public String[] getPropertyNames(Object introspected)
Introspector
getPropertyNames
in interface Introspector
introspected
- The introspected object.Introspector.getPropertyNames(Object)
Copyright © 2002-2012 Delft University of Technology, the Netherlands. All Rights Reserved.