nl.tudelft.simulation.introspection
Class AbstractSuppressIntrospector

java.lang.Object
  extended by nl.tudelft.simulation.introspection.AbstractSuppressIntrospector
All Implemented Interfaces:
Introspector

public abstract class AbstractSuppressIntrospector
extends Object
implements Introspector

The AbstractSupressIntrospector.

(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

Field Summary
protected  Introspector parent
          the parent introspector
 
Constructor Summary
AbstractSuppressIntrospector(Introspector parent)
          Constructor for AbstractSuppressIntrospector.
 
Method Summary
 Property[] getProperties(Object arg0)
           
 Property getProperty(Object arg0, String arg1)
          Retrieves the {see Property}with a given name from an introspected object.
 String[] getPropertyNames(Object arg0)
          Retrieves the names of the properties of the introspected object.
protected  boolean suppress(Class type)
          Method suppress.
protected abstract  boolean suppress(String propertyName)
          Method suppress.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

parent

protected Introspector parent
the parent introspector

Constructor Detail

AbstractSuppressIntrospector

public AbstractSuppressIntrospector(Introspector parent)
Constructor for AbstractSuppressIntrospector.

Parameters:
parent - the parent introspector
Method Detail

getProperties

public Property[] getProperties(Object arg0)
Specified by:
getProperties in interface Introspector
Parameters:
arg0 - 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)

getPropertyNames

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

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

getProperty

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

Specified by:
getProperty in interface Introspector
Parameters:
arg0 - The introspected object.
arg1 - 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)

suppress

protected boolean suppress(Class type)
Method suppress.

Parameters:
type - the type of tyhe class
Returns:
boolean whether to supress

suppress

protected abstract boolean suppress(String propertyName)
Method suppress.

Parameters:
propertyName - the propertyName
Returns:
whether to supress


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