Public Member Functions

cern.gp.beans.PropertyInfo Interface Reference

Inheritance diagram for cern.gp.beans.PropertyInfo:
cern.gp.beans.PropertyInfoSupport

List of all members.

Public Member Functions

String getName ()
String getDisplayName ()
boolean isExpert ()
boolean isHidden ()
Boolean isCacheable ()
Class getPropertyEditorClass ()
void updatePropertyDescriptor (PropertyDescriptor propertyDescriptor)

Detailed Description

This interface defines information that can be returned for a given property. It is similar to the java.beans. PropertyDescriptor but it aims to be a complementary and ligther version of it.

The properties of a JavaBean are describe using the PropertyDescriptor returned by the BeanInfo. If you provide an explicit BeanInfo you can use the PropertyDescriptor to specify the needed information (expert, hidden, PropertyEditor ...) and you do not need to use this interface.

If you do not provide an explicit BeanInfo you cannot specify that information as the PropertyDescriptor will be automatically generated by the Introspector. In this case, you can returned an array of PropertyInfo specifying the proper information directly from your bean. The node representing the bean will invoke the method to get that array of PropertyInfo and use the information from it.

Version:
Revision:
1.2
Date:
2006/09/25 08:52:36
Author:
Lionel Mestre

Member Function Documentation

String cern.gp.beans.PropertyInfo.getDisplayName (  ) 

Returns the display name of the property

Returns:
the display name of the property

Implemented in cern.gp.beans.PropertyInfoSupport.

String cern.gp.beans.PropertyInfo.getName (  ) 

Returns the name of the property

Returns:
the name of the property

Implemented in cern.gp.beans.PropertyInfoSupport.

Class cern.gp.beans.PropertyInfo.getPropertyEditorClass (  ) 

Gets an explicit PropertyEditor Class for this property. The method will return "null" for indicating that no special editor has been registered, so the PropertyEditorManager should be used to locate a suitable PropertyEditor.

Returns:
An explicit PropertyEditor Class for this property or null.

Implemented in cern.gp.beans.PropertyInfoSupport.

Boolean cern.gp.beans.PropertyInfo.isCacheable (  ) 

Returns a boolean indicating the caching strategy for this property. Three value can be returned :

  • null : no caching strategy specified, the property inherit from the one defined for the bean or from the default one if the bean does not specified one.
  • True : the property can be cached. This will override the caching strategy defined at the bean level. It is the responsibility of the bean to send PropertyChangeEvent to update the cached value
  • False : the property cannot be cached. This will override the caching strategy defined at the bean level.
Returns:
null, True or False depending the caching strategy specified.

Implemented in cern.gp.beans.PropertyInfoSupport.

boolean cern.gp.beans.PropertyInfo.isExpert (  ) 

Returns if this property is expert. The "expert" flag is used to distinguish between those features that are intended for expert users from those that are intended for normal users.

Returns:
true if this property is intended for use by experts only

Implemented in cern.gp.beans.PropertyInfoSupport.

boolean cern.gp.beans.PropertyInfo.isHidden (  ) 

Returns if this property is hidden. The "hidden" flag is used to identify features that are intended only for tool use, and which should not be exposed to humans.

Returns:
true if this property should be hidden from human users.

Implemented in cern.gp.beans.PropertyInfoSupport.

void cern.gp.beans.PropertyInfo.updatePropertyDescriptor ( PropertyDescriptor  propertyDescriptor  ) 

Update the given PropertyDescriptor with the information contained in this PropertyInfo

Parameters:
propertyDescriptor the PropertyDescriptor to update

Implemented in cern.gp.beans.PropertyInfoSupport.


The documentation for this interface was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties