2362N/A * Copyright (c) 1996, 2010, Oracle and/or its affiliates. All rights reserved. 0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 0N/A * This code is free software; you can redistribute it and/or modify it 0N/A * under the terms of the GNU General Public License version 2 only, as 2362N/A * published by the Free Software Foundation. Oracle designates this 0N/A * particular file as subject to the "Classpath" exception as provided 2362N/A * by Oracle in the LICENSE file that accompanied this code. 0N/A * This code is distributed in the hope that it will be useful, but WITHOUT 0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 0N/A * version 2 for more details (a copy is included in the LICENSE file that 0N/A * accompanied this code). 0N/A * You should have received a copy of the GNU General Public License version 0N/A * 2 along with this work; if not, write to the Free Software Foundation, 0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 2362N/A * or visit www.oracle.com if you need additional information or have any 0N/A * The FeatureDescriptor class is the common baseclass for PropertyDescriptor, 0N/A * EventSetDescriptor, and MethodDescriptor, etc. 0N/A * It supports some common information that can be set and retrieved for 0N/A * any of the introspection descriptors. 0N/A * In addition it provides an extension mechanism so that arbitrary 0N/A * Constructs a <code>FeatureDescriptor</code>. 0N/A * Gets the programmatic name of this feature. 0N/A * Sets the programmatic name of this feature. 0N/A * Gets the localized display name of this feature. 0N/A * This defaults to the same as its programmatic name from getName. 0N/A * Sets the localized display name of this feature. 0N/A * @param displayName The localized display name for the 0N/A * The "expert" flag is used to distinguish between those features that are 0N/A * intended for expert users from those that are intended for normal users. 0N/A * @return True if this feature is intended for use by experts only. 0N/A * The "expert" flag is used to distinguish between features that are 0N/A * intended for expert users from those that are intended for normal users. 0N/A * @param expert True if this feature is intended for use by experts only. 0N/A * The "hidden" flag is used to identify features that are intended only 0N/A * for tool use, and which should not be exposed to humans. 0N/A * @return True if this feature should be hidden from human users. 0N/A * The "hidden" flag is used to identify features that are intended only 0N/A * for tool use, and which should not be exposed to humans. 0N/A * @param hidden True if this feature should be hidden from human users. 0N/A * The "preferred" flag is used to identify features that are particularly 0N/A * important for presenting to humans. 0N/A * @return True if this feature should be preferentially shown to human users. 0N/A * The "preferred" flag is used to identify features that are particularly 0N/A * important for presenting to humans. 0N/A * @param preferred True if this feature should be preferentially shown 0N/A * Gets the short description of this feature. 0N/A * @return A localized short description associated with this 0N/A * You can associate a short descriptive string with a feature. Normally 0N/A * these descriptive strings should be less than about 40 characters. 0N/A * @param text A (localized) short description to be associated with 0N/A * Associate a named attribute with this feature. 0N/A * @param attributeName The locale-independent name of the attribute 0N/A * @param value The value. 0N/A * Retrieve a named attribute with this feature. 0N/A * @param attributeName The locale-independent name of the attribute 0N/A * @return The value of the attribute. May be null if 0N/A * the attribute is unknown. 0N/A * Gets an enumeration of the locale-independent names of this 0N/A * @return An enumeration of the locale-independent names of any 0N/A * attributes that have been registered with setValue. 0N/A * Package-private constructor, 0N/A * Merge information from two FeatureDescriptors. 0N/A * The merged hidden and expert flags are formed by or-ing the values. 0N/A * In the event of other conflicts, the second argument (y) is 0N/A * given priority over the first argument (x). 0N/A * @param x The first (lower priority) MethodDescriptor 0N/A * @param y The second (higher priority) MethodDescriptor 0N/A * Package-private dup constructor 0N/A * This must isolate the new object from any changes to the old object. 243N/A * Copies all values from the specified attribute table. 243N/A * If some attribute is exist its value should be overridden. 243N/A * @param table the attribute table with new values 243N/A * Returns the initialized attribute table. 243N/A * @return the initialized attribute table 243N/A * Sets the "transient" attribute according to the annotation. 243N/A * If the "transient" attribute is already set 243N/A * it should not be changed. 243N/A * @param annotation the annotation of the element of the feature 243N/A * Indicates whether the feature is transient. 243N/A * @return {@code true} if the feature is transient, 243N/A * {@code false} otherwise 0N/A // Package private methods for recreating the weak/soft referent 0N/A * Creates a new soft reference that refers to the given object. 0N/A * @return a new soft reference or <code>null</code> if object is <code>null</code> 0N/A * @see SoftReference 0N/A * Creates a new weak reference that refers to the given object. 0N/A * @return a new weak reference or <code>null</code> if object is <code>null</code> 0N/A * @see WeakReference 0N/A * Resolves the return type of the method. 0N/A * @param base the class that contains the method in the hierarchy 0N/A * @param method the object that represents the method 0N/A * @return a class identifying the return type of the method 0N/A * @see Method#getGenericReturnType 0N/A * @see Method#getReturnType 0N/A * Resolves the parameter types of the method. 0N/A * @param base the class that contains the method in the hierarchy 0N/A * @param method the object that represents the method 0N/A * @return an array of classes identifying the parameter types of the method 0N/A * @see Method#getGenericParameterTypes 0N/A * @see Method#getParameterTypes 2172N/A * Returns a string representation of the object. 2172N/A * @return a string representation of the object