Static Public Member Functions

cern.gp.beans.BeanTagger Class Reference

List of all members.

Static Public Member Functions

static void setCacheable (FeatureDescriptor featureDescriptor, boolean cacheable)
static Boolean isCacheable (FeatureDescriptor featureDescriptor)
static void setExpandable (FeatureDescriptor featureDescriptor, boolean expandable)
static boolean isExpandable (FeatureDescriptor featureDescriptor)
static void setDefaultAction (FeatureDescriptor featureDescriptor, String defaultAction)
static void setDefaultAction (BeanInfo beanInfo, String defaultAction)
static String getDefaultAction (FeatureDescriptor featureDescriptor)
static String getDefaultAction (BeanInfo beanInfo)
static void addActions (FeatureDescriptor featureDescriptor, String[] actions)
static String[] getActions (FeatureDescriptor featureDescriptor)
static String[] getActions (BeanInfo beanInfo)
static void addActions (BeanInfo beanInfo, String[] actions)

Detailed Description

Utility class that can tag a Property or a BeanInfo to add information to it. The available static methods describe what information it is possible to add.

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

Member Function Documentation

static void cern.gp.beans.BeanTagger.addActions ( FeatureDescriptor  featureDescriptor,
String[]  actions 
) [static]

Adds classes of available actions to this descriptor. If the featureDescriptor already defines some actions the existing ones and the new ones are merged together.

Parameters:
actionClasses an array of the class of available action(s)

References cern.gp.beans.BeanTagger.getActions().

Referenced by cern.gp.beans.BeanTagger.addActions().

static void cern.gp.beans.BeanTagger.addActions ( BeanInfo  beanInfo,
String[]  actions 
) [static]

Adds classes of available actions to this BeanInfo. If the BeanInfo already defines some actions the existing ones and the new ones are merged together.

Parameters:
actionClasses an array of the class of available action(s)

References cern.gp.beans.BeanTagger.addActions().

static String [] cern.gp.beans.BeanTagger.getActions ( FeatureDescriptor  featureDescriptor  )  [static]

Gets the class of available actions for this descriptor

Returns:
an array of class of available actions for this descriptor

Referenced by cern.gp.beans.BeanTagger.addActions(), and cern.gp.beans.BeanTagger.getActions().

static String [] cern.gp.beans.BeanTagger.getActions ( BeanInfo  beanInfo  )  [static]

Gets the class of available actions for this BeanInfo

Returns:
an array of class of available actions for this BeanInfo

References cern.gp.beans.BeanTagger.getActions().

static String cern.gp.beans.BeanTagger.getDefaultAction ( BeanInfo  beanInfo  )  [static]

Gets the default action qualified name for this BeanInfo

Parameters:
beanInfo the BeanInfo to get the default action from
Returns:
the qualified name of the default action or null is not specified

References cern.gp.beans.BeanTagger.getDefaultAction().

static String cern.gp.beans.BeanTagger.getDefaultAction ( FeatureDescriptor  featureDescriptor  )  [static]

Gets the default action qualified name for this FeatureDescriptor

Parameters:
featureDescriptor the FeatureDescriptor to get the default action from
Returns:
the qualified name of the default action or null is not specified

Referenced by cern.gp.beans.BeanTagger.getDefaultAction().

static Boolean cern.gp.beans.BeanTagger.isCacheable ( FeatureDescriptor  featureDescriptor  )  [static]

Checks if the given FeatureDescriptor is cacheable

Returns:
true if and only if this FeatureDescriptor is cacheable.
static boolean cern.gp.beans.BeanTagger.isExpandable ( FeatureDescriptor  featureDescriptor  )  [static]

Checks if this FeatureDescriptor is expandable which neams that it can be expanded into a list of more FeatureDescriptors

Returns:
true if and only if this FeatureDescriptor is expandable.
static void cern.gp.beans.BeanTagger.setCacheable ( FeatureDescriptor  featureDescriptor,
boolean  cacheable 
) [static]

Adds the information that this FeatureDescriptor is cacheable which neams that its value(s) can be cached. If it is a PropertyDescriptor it means that the value of the property can be cached. If it is a BeanDescriptor it means that all property values can be cached

Parameters:
featureDescriptor the FeatureDescriptor to tag as expandable.
cacheable whether the value(s) of the FeatureDescriptor can be cached or not
static void cern.gp.beans.BeanTagger.setDefaultAction ( FeatureDescriptor  featureDescriptor,
String  defaultAction 
) [static]

Sets the default action qualified name for this FeatureDescriptor

Parameters:
featureDescriptor the FeatureDescriptor to tag with the default action
defaultAction the qualified name of the default action

Referenced by cern.gp.beans.BeanTagger.setDefaultAction().

static void cern.gp.beans.BeanTagger.setDefaultAction ( BeanInfo  beanInfo,
String  defaultAction 
) [static]

Sets the default action qualified name for this BeanInfo

Parameters:
beanInfo the BeanInfo to tag with the default action.
defaultAction the qualified name of the default action

References cern.gp.beans.BeanTagger.setDefaultAction().

static void cern.gp.beans.BeanTagger.setExpandable ( FeatureDescriptor  featureDescriptor,
boolean  expandable 
) [static]

Adds the information that this FeatureDescriptor is expandable which neams that it can be expanded into a list of more FeatureDescriptors

Parameters:
featureDescriptor the FeatureDescriptor to tag as expandable.
expandable whether the FeatureDescriptor is expandable or not

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