Home » openjdk-7 » java » beans » [javadoc | source]
java.beans
public class: FeatureDescriptor [javadoc | source]
java.lang.Object
   java.beans.FeatureDescriptor

Direct Known Subclasses:
    MethodDescriptor, IndexedPropertyDescriptor, BeanDescriptor, ParameterDescriptor, EventSetDescriptor, PropertyDescriptor

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.
Constructor:
 public FeatureDescriptor() 
 FeatureDescriptor(FeatureDescriptor old) 
 FeatureDescriptor(FeatureDescriptor x,
    FeatureDescriptor y) 
    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) MethodDescriptor
    y - The second (higher priority) MethodDescriptor
Method from java.beans.FeatureDescriptor Summary:
appendTo,   appendTo,   appendTo,   appendTo,   attributeNames,   getClass0,   getDisplayName,   getName,   getParameterTypes,   getReturnType,   getShortDescription,   getSoftReference,   getValue,   getWeakReference,   isExpert,   isHidden,   isPreferred,   isTransient,   setClass0,   setDisplayName,   setExpert,   setHidden,   setName,   setPreferred,   setShortDescription,   setTransient,   setValue,   toString
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from java.beans.FeatureDescriptor Detail:
  void appendTo(StringBuilder sb) 
 static  void appendTo(StringBuilder sb,
    String name,
    Reference reference) 
 static  void appendTo(StringBuilder sb,
    String name,
    Object value) 
 static  void appendTo(StringBuilder sb,
    String name,
    boolean value) 
 public Enumeration<String> attributeNames() 
    Gets an enumeration of the locale-independent names of this feature.
 Class getClass0() 
 public String getDisplayName() 
    Gets the localized display name of this feature.
 public String getName() 
    Gets the programmatic name of this feature.
 static Class[] getParameterTypes(Class base,
    Method method) 
    Resolves the parameter types of the method.
 static Class getReturnType(Class base,
    Method method) 
    Resolves the return type of the method.
 public String getShortDescription() 
    Gets the short description of this feature.
 static Reference<T> getSoftReference(T object) 
    Creates a new soft reference that refers to the given object.
 public Object getValue(String attributeName) 
    Retrieve a named attribute with this feature.
 static Reference<T> getWeakReference(T object) 
    Creates a new weak reference that refers to the given object.
 public boolean isExpert() 
    The "expert" flag is used to distinguish between those features that are intended for expert users from those that are intended for normal users.
 public boolean isHidden() 
    The "hidden" flag is used to identify features that are intended only for tool use, and which should not be exposed to humans.
 public boolean isPreferred() 
    The "preferred" flag is used to identify features that are particularly important for presenting to humans.
 boolean isTransient() 
    Indicates whether the feature is transient.
  void setClass0(Class cls) 
 public  void setDisplayName(String displayName) 
    Sets the localized display name of this feature.
 public  void setExpert(boolean expert) 
    The "expert" flag is used to distinguish between features that are intended for expert users from those that are intended for normal users.
 public  void setHidden(boolean hidden) 
    The "hidden" flag is used to identify features that are intended only for tool use, and which should not be exposed to humans.
 public  void setName(String name) 
    Sets the programmatic name of this feature.
 public  void setPreferred(boolean preferred) 
    The "preferred" flag is used to identify features that are particularly important for presenting to humans.
 public  void setShortDescription(String text) 
    You can associate a short descriptive string with a feature. Normally these descriptive strings should be less than about 40 characters.
  void setTransient(Transient annotation) 
    Sets the "transient" attribute according to the annotation. If the "transient" attribute is already set it should not be changed.
 public  void setValue(String attributeName,
    Object value) 
    Associate a named attribute with this feature.
 public String toString() 
    Returns a string representation of the object.