Java Doc for FeatureDescriptor.java in  » 6.0-JDK-Core » beans » java » beans » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Home
Java Source Code / Java Documentation
1.6.0 JDK Core
2.6.0 JDK Modules
3.6.0 JDK Modules com.sun
4.6.0 JDK Modules com.sun.java
5.6.0 JDK Modules sun
6.6.0 JDK Platform
7.Ajax
8.Apache Harmony Java SE
9.Aspect oriented
10.Authentication Authorization
11.Blogger System
12.Build
13.Byte Code
14.Cache
15.Chart
16.Chat
17.Code Analyzer
18.Collaboration
19.Content Management System
20.Database Client
21.Database DBMS
22.Database JDBC Connection Pool
23.Database ORM
24.Development
25.EJB Server
26.ERP CRM Financial
27.ESB
28.Forum
29.Game
30.GIS
31.Graphic 3D
32.Graphic Library
33.Groupware
34.HTML Parser
35.IDE
36.IDE Eclipse
37.IDE Netbeans
38.Installer
39.Internationalization Localization
40.Inversion of Control
41.Issue Tracking
42.J2EE
43.J2ME
44.JBoss
45.JMS
46.JMX
47.Library
48.Mail Clients
49.Music
50.Net
51.Parser
52.PDF
53.Portal
54.Profiler
55.Project Management
56.Report
57.RSS RDF
58.Rule Engine
59.Science
60.Scripting
61.Search Engine
62.Security
63.Sevlet Container
64.Source Control
65.Swing Library
66.Template Engine
67.Test Coverage
68.Testing
69.UML
70.Web Crawler
71.Web Framework
72.Web Mail
73.Web Server
74.Web Services
75.Web Services apache cxf 2.2.6
76.Web Services AXIS2
77.Wiki Engine
78.Workflow Engines
79.XML
80.XML UI
Java Source Code / Java Documentation » 6.0 JDK Core » beans » java.beans 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   java.beans.FeatureDescriptor

All known Subclasses:   java.beans.EventSetDescriptor,  java.beans.BeanDescriptor,  java.beans.ParameterDescriptor,  java.beans.PropertyDescriptor,  java.beans.MethodDescriptor,
FeatureDescriptor
public class FeatureDescriptor (Code)
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 Summary
public  FeatureDescriptor()
     Constructs a FeatureDescriptor.
 FeatureDescriptor(FeatureDescriptor x, FeatureDescriptor y)
     Package-private constructor, Merge information from two FeatureDescriptors.
 FeatureDescriptor(FeatureDescriptor old)
    

Method Summary
public  java.util.Enumeration<String>attributeNames()
     Gets an enumeration of the locale-independent names of this feature.
static  ReferencecreateReference(Object obj, boolean soft)
     Create a Reference wrapper for the object.
static  ReferencecreateReference(Object obj)
    
 ClassgetClass0()
    
public  StringgetDisplayName()
     Gets the localized display name of this feature.
public  StringgetName()
     Gets the programmatic name of this feature.
static  ObjectgetObject(Reference ref)
     Returns an object from a Reference wrapper.
static  Class[]getParameterTypes(Class base, Method method)
     Resolves the parameter types of the method.
static  ClassgetReturnType(Class base, Method method)
     Resolves the return type of the method.
public  StringgetShortDescription()
     Gets the short description of this feature. A localized short description associated with this property/method/event.
static  Reference<T>getSoftReference(T object)
     Creates a new soft reference that refers to the given object.
public  ObjectgetValue(String attributeName)
     Retrieve a named attribute with this feature.
Parameters:
  attributeName - The locale-independent name of the attribute The value of the attribute.
static  Reference<T>getWeakReference(T object)
     Creates a new weak reference that refers to the given object.
public  booleanisExpert()
     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  booleanisHidden()
     The "hidden" flag is used to identify features that are intended only for tool use, and which should not be exposed to humans.
public  booleanisPreferred()
     The "preferred" flag is used to identify features that are particularly important for presenting to humans.
 voidsetClass0(Class cls)
    
public  voidsetDisplayName(String displayName)
     Sets the localized display name of this feature.
public  voidsetExpert(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  voidsetHidden(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  voidsetName(String name)
     Sets the programmatic name of this feature.
public  voidsetPreferred(boolean preferred)
     The "preferred" flag is used to identify features that are particularly important for presenting to humans.
public  voidsetShortDescription(String text)
     You can associate a short descriptive string with a feature.
public  voidsetValue(String attributeName, Object value)
     Associate a named attribute with this feature.


Constructor Detail
FeatureDescriptor
public FeatureDescriptor()(Code)
Constructs a FeatureDescriptor.



FeatureDescriptor
FeatureDescriptor(FeatureDescriptor x, FeatureDescriptor y)(Code)
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
Parameters:
  y - The second (higher priority) MethodDescriptor



FeatureDescriptor
FeatureDescriptor(FeatureDescriptor old)(Code)




Method Detail
attributeNames
public java.util.Enumeration<String> attributeNames()(Code)
Gets an enumeration of the locale-independent names of this feature. An enumeration of the locale-independent names of any attributes that have been registered with setValue.



createReference
static Reference createReference(Object obj, boolean soft)(Code)
Create a Reference wrapper for the object.
Parameters:
  obj - object that will be wrapped
Parameters:
  soft - true if a SoftReference should be created; otherwise Soft a Reference or null if obj is null.



createReference
static Reference createReference(Object obj)(Code)



getClass0
Class getClass0()(Code)



getDisplayName
public String getDisplayName()(Code)
Gets the localized display name of this feature. The localized display name for the property/method/event.This defaults to the same as its programmatic name from getName.



getName
public String getName()(Code)
Gets the programmatic name of this feature. The programmatic name of the property/method/event



getObject
static Object getObject(Reference ref)(Code)
Returns an object from a Reference wrapper. the Object in a wrapper or null.



getParameterTypes
static Class[] getParameterTypes(Class base, Method method)(Code)
Resolves the parameter types of the method.
Parameters:
  base - the class that contains the method in the hierarchy
Parameters:
  method - the object that represents the method an array of classes identifying the parameter types of the method
See Also:   Method.getGenericParameterTypes
See Also:   Method.getParameterTypes



getReturnType
static Class getReturnType(Class base, Method method)(Code)
Resolves the return type of the method.
Parameters:
  base - the class that contains the method in the hierarchy
Parameters:
  method - the object that represents the method a class identifying the return type of the method
See Also:   Method.getGenericReturnType
See Also:   Method.getReturnType



getShortDescription
public String getShortDescription()(Code)
Gets the short description of this feature. A localized short description associated with this property/method/event. This defaults to be the display name.



getSoftReference
static Reference<T> getSoftReference(T object)(Code)
Creates a new soft reference that refers to the given object. a new soft reference or null if object is null
See Also:   SoftReference



getValue
public Object getValue(String attributeName)(Code)
Retrieve a named attribute with this feature.
Parameters:
  attributeName - The locale-independent name of the attribute The value of the attribute. May be null ifthe attribute is unknown.



getWeakReference
static Reference<T> getWeakReference(T object)(Code)
Creates a new weak reference that refers to the given object. a new weak reference or null if object is null
See Also:   WeakReference



isExpert
public boolean isExpert()(Code)
The "expert" flag is used to distinguish between those features that are intended for expert users from those that are intended for normal users. True if this feature is intended for use by experts only.



isHidden
public boolean isHidden()(Code)
The "hidden" flag is used to identify features that are intended only for tool use, and which should not be exposed to humans. True if this feature should be hidden from human users.



isPreferred
public boolean isPreferred()(Code)
The "preferred" flag is used to identify features that are particularly important for presenting to humans. True if this feature should be preferentially shown to human users.



setClass0
void setClass0(Class cls)(Code)



setDisplayName
public void setDisplayName(String displayName)(Code)
Sets the localized display name of this feature.
Parameters:
  displayName - The localized display name for theproperty/method/event.



setExpert
public void setExpert(boolean expert)(Code)
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.



setHidden
public void setHidden(boolean hidden)(Code)
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.



setName
public void setName(String name)(Code)
Sets the programmatic name of this feature.
Parameters:
  name - The programmatic name of the property/method/event



setPreferred
public void setPreferred(boolean preferred)(Code)
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 shownto human users.



setShortDescription
public void setShortDescription(String text)(Code)
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 withthis property/method/event.



setValue
public void setValue(String attributeName, Object value)(Code)
Associate a named attribute with this feature.
Parameters:
  attributeName - The locale-independent name of the attribute
Parameters:
  value - The value.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.