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.
| Modifier and Type | Field and Description |
|---|---|
| private Reference | |
| private String | |
| private boolean | |
| private String | |
| private boolean | |
| private String | |
| private Hashtable | |
| private static final String |
| Access | Constructor and Description |
|---|---|
| public | |
| pack-priv | FeatureDescriptor(FeatureDescriptor
The first (lower priority) MethodDescriptor x, FeatureDescriptor The second (higher priority) MethodDescriptor y)Package-private constructor, Merge information from two FeatureDescriptors. |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| pack-priv void | |
| pack-priv static void | |
| pack-priv static void | |
| pack-priv static void | |
| public Enumeration | Returns: An enumeration of the locale-independent names of any attributes that have been registered with setValue.Gets an enumeration of the locale-independent names of this feature. |
| pack-priv Class | |
| public String | Returns: The localized display name for the property/method/event. This defaults to the same as its programmatic name from getName.Gets the localized display name of this feature. |
| public String | Returns: The programmatic name of the property/method/eventGets the programmatic name of this feature. |
| pack-priv static Class | Returns: an array of classes identifying the parameter types of the methodthe class that contains the method in the hierarchy base, Method the object that represents the method method)Resolves the parameter types of the method. |
| pack-priv static Class | Returns: a class identifying the return type of the methodthe class that contains the method in the hierarchy base, Method the object that represents the method method)Resolves the return type of the method. |
| public String | Returns: A localized short description associated with this property/method/event. This defaults to be the display name.Gets the short description of this feature. |
| pack-priv static <T> Reference | Returns: a new soft reference ornull if object is nullCreates a new soft reference that refers to the given object. |
| private Hashtable | |
| public Object | |
| pack-priv static <T> Reference | Returns: a new weak reference ornull if object is nullCreates a new weak reference that refers to the given object. |
| public boolean | Returns: True if this feature is intended for use by experts only.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 | 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. |
| public boolean | 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. |
| pack-priv boolean | Returns: true if the feature is transient,
false otherwiseIndicates whether the feature is transient. |
| pack-priv void | |
| public void | setDisplayName(String
The localized display name for the
property/method/event. displayName)Sets the localized display name of this feature. |
| public void | setExpert(boolean
True if this feature is intended for use by experts only. 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
True if this feature should be hidden from human users. 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 | |
| public void | setPreferred(boolean
True if this feature should be preferentially shown
to human users. preferred)The "preferred" flag is used to identify features that are particularly important for presenting to humans. |
| public void | setShortDescription(String
A (localized) short description to be associated with
this property/method/event. text)You can associate a short descriptive string with a feature. |
| pack-priv void | setTransient(Transient
the annotation of the element of the feature annotation)Sets the "transient" attribute according to the annotation. |
| public void | |
| public String | Returns: a string representation of the objectOverrides java. Returns a string representation of the object. |
| classRef | back to summary |
|---|---|
| private Reference<? extends Class<?>> classRef | |
| displayName | back to summary |
|---|---|
| private String displayName | |
| expert | back to summary |
|---|---|
| private boolean expert | |
| name | back to summary |
|---|---|
| private String name | |
| preferred | back to summary |
|---|---|
| private boolean preferred | |
| shortDescription | back to summary |
|---|---|
| private String shortDescription | |
| table | back to summary |
|---|---|
| private Hashtable<String, Object> table | |
| TRANSIENT | back to summary |
|---|---|
| private static final String TRANSIENT | |
| FeatureDescriptor | back to summary |
|---|---|
| public FeatureDescriptor() Constructs a | |
| FeatureDescriptor | back to summary |
|---|---|
| pack-priv 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).
| |
| FeatureDescriptor | back to summary |
|---|---|
| pack-priv FeatureDescriptor(FeatureDescriptor old) | |
| addTable | back to summary |
|---|---|
| private void addTable(Hashtable<String, Object> table) Copies all values from the specified attribute table. If some attribute is exist its value should be overridden. | |
| appendTo | back to summary |
|---|---|
| pack-priv void appendTo(StringBuilder sb) | |
| appendTo | back to summary |
|---|---|
| pack-priv static void appendTo(StringBuilder sb, String name, Reference<?> reference) | |
| appendTo | back to summary |
|---|---|
| pack-priv static void appendTo(StringBuilder sb, String name, Object value) | |
| appendTo | back to summary |
|---|---|
| pack-priv static void appendTo(StringBuilder sb, String name, boolean value) | |
| attributeNames | back to summary |
|---|---|
| public Enumeration Gets an enumeration of the locale-independent names of this feature.
| |
| getClass0 | back to summary |
|---|---|
| pack-priv Class | |
| getDisplayName | back to summary |
|---|---|
| public String getDisplayName() Gets the localized display name of this feature.
| |
| getName | back to summary |
|---|---|
| public String getName() Gets the programmatic name of this feature.
| |
| getParameterTypes | back to summary |
|---|---|
| pack-priv static Class Resolves the parameter types of the method.
| |
| getReturnType | back to summary |
|---|---|
| pack-priv static Class Resolves the return type of the method.
| |
| getShortDescription | back to summary |
|---|---|
| public String getShortDescription() Gets the short description of this feature.
| |
| getSoftReference | back to summary |
|---|---|
| pack-priv static <T> Reference Creates a new soft reference that refers to the given object.
| |
| getTable | back to summary |
|---|---|
| private Hashtable Returns the initialized attribute table. | |
| getValue | back to summary |
|---|---|
| public Object getValue(String attributeName) Retrieve a named attribute with this feature. | |
| getWeakReference | back to summary |
|---|---|
| pack-priv static <T> Reference Creates a new weak reference that refers to the given object.
| |
| isExpert | back to summary |
|---|---|
| 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.
| |
| isHidden | back to summary |
|---|---|
| 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.
| |
| isPreferred | back to summary |
|---|---|
| public boolean isPreferred() The "preferred" flag is used to identify features that are particularly important for presenting to humans.
| |
| isTransient | back to summary |
|---|---|
| pack-priv boolean isTransient() Indicates whether the feature is transient.
| |
| setClass0 | back to summary |
|---|---|
| pack-priv void setClass0(Class<?> cls) | |
| setDisplayName | back to summary |
|---|---|
| public void setDisplayName(String displayName) Sets the localized display name of this feature.
| |
| setExpert | back to summary |
|---|---|
| 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.
| |
| setHidden | back to summary |
|---|---|
| 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.
| |
| setName | back to summary |
|---|---|
| public void setName(String name) Sets the programmatic name of this feature.
| |
| setPreferred | back to summary |
|---|---|
| public void setPreferred(boolean preferred) The "preferred" flag is used to identify features that are particularly important for presenting to humans.
| |
| setShortDescription | back to summary |
|---|---|
| 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.
| |
| setTransient | back to summary |
|---|---|
| pack-priv void setTransient(Transient annotation) Sets the "transient" attribute according to the annotation. If the "transient" attribute is already set it should not be changed.
| |
| setValue | back to summary |
|---|---|
| public void setValue(String attributeName, Object value) Associate a named attribute with this feature. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Returns a string representation of the object. | |