The FeatureDescriptor class is the common baseclass for PropertyDescriptor,
EventSetDescriptor, and MethodDescriptor, etc.
It supports some common information that can be set and retrieved for
any of the introspection descriptors.
In addition it provides an extension mechanism so that arbitrary
attribute/value pairs can be associated with a design feature.
Constructs a
FeatureDescriptor.
Gets the programmatic name of this feature.
- Returns:
- The programmatic name of the property/method/event
Sets the programmatic name of this feature.
- Parameters:
name The programmatic name of the property/method/event
Gets the localized display name of this feature.
- Returns:
- The localized display name for the property/method/event.
This defaults to the same as its programmatic name from getName.
Sets the localized display name of this feature.
- Parameters:
displayName The localized display name for the
property/method/event.
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 feature is intended for use by experts only.
The "expert" flag is used to distinguish between features that are
intended for expert users from those that are intended for normal users.
- Parameters:
expert True if this feature is intended for use by experts only.
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 feature should be hidden from human users.
The "hidden" flag is used to identify features that are intended only
for tool use, and which should not be exposed to humans.
- Parameters:
hidden True if this feature should be hidden from human users.
The "preferred" flag is used to identify features that are particularly
important for presenting to humans.
- Returns:
- True if this feature should be preferentially shown to human users.
The "preferred" flag is used to identify features that are particularly
important for presenting to humans.
- Parameters:
preferred True if this feature should be preferentially shown
to human users.
Gets the short description of this feature.
- Returns:
- A localized short description associated with this
property/method/event. This defaults to be the display name.
You can associate a short descriptive string with a feature. Normally
these descriptive strings should be less than about 40 characters.
- Parameters:
text A (localized) short description to be associated with
this property/method/event.
Associate a named attribute with this feature.
- Parameters:
attributeName The locale-independent name of the attributevalue The value.
Retrieve a named attribute with this feature.
- Parameters:
attributeName The locale-independent name of the attribute- Returns:
- The value of the attribute. May be null if
the attribute is unknown.
Gets an enumeration of the locale-independent names of this
feature.
- Returns:
- An enumeration of the locale-independent names of any
attributes that have been registered with setValue.
Package-private constructor,
Merge information from two FeatureDescriptors.
The merged hidden and expert flags are formed by or-ing the values.
In the event of other conflicts, the second argument (y) is
given priority over the first argument (x).
- Parameters:
x The first (lower priority) MethodDescriptory The second (higher priority) MethodDescriptor
if (y.shortDescription != null) { if (y.displayName != null) { if (y.classRef != null) { Create a Reference wrapper for the object.
- Parameters:
obj object that will be wrappedsoft true if a SoftReference should be created; otherwise Soft- Returns:
- a Reference or null if obj is null.
Returns an object from a Reference wrapper.
- Returns:
- the Object in a wrapper or null.
return (ref == null) ? null : (Object)ref.get();
Creates a new soft reference that refers to the given object.
Creates a new weak reference that refers to the given object.
Resolves the return type of the method.
Resolves the parameter types of the method.