/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/**
* This class contains utilities useful for JavaBeans regression testing.
*/
public final class BeanUtils {
/**
* Disables instantiation.
*/
private BeanUtils() {
}
/**
* Returns a bean descriptor for specified class.
*
* @param type the class to introspect
* @return a bean descriptor
*/
try {
} catch (IntrospectionException exception) {
}
}
/**
* Returns an array of property descriptors for specified class.
*
* @param type the class to introspect
* @return an array of property descriptors
*/
try {
} catch (IntrospectionException exception) {
}
}
/**
* Returns an array of event set descriptors for specified class.
*
* @param type the class to introspect
* @return an array of event set descriptors
*/
try {
} catch (IntrospectionException exception) {
}
}
/**
* Finds an event set descriptor for the class
* that matches the event set name.
*
* @param type the class to introspect
* @param name the name of the event set to search
* @return the {@code EventSetDescriptor} or {@code null}
*/
return esd;
}
}
return null;
}
/**
* Finds a property descriptor for the class
* that matches the property name.
*
* @param type the class to introspect
* @param name the name of the property to search
* @return the {@code PropertyDescriptor}, {@code IndexedPropertyDescriptor} or {@code null}
*/
return pd;
}
}
return null;
}
/**
* Returns a event set descriptor for the class
* that matches the property name.
*
* @param type the class to introspect
* @param name the name of the event set to search
* @return the {@code EventSetDescriptor}
*/
return esd;
}
}
/**
* Returns a property descriptor for the class
* that matches the property name.
*
* @param type the class to introspect
* @param name the name of the property to search
* @return the {@code PropertyDescriptor}
*/
return pd;
}
}
/**
* Returns an indexed property descriptor for the class
* that matches the property name.
*
* @param type the class to introspect
* @param name the name of the property to search
* @return the {@code IndexedPropertyDescriptor}
*/
if (pd instanceof IndexedPropertyDescriptor) {
return (IndexedPropertyDescriptor) pd;
}
}
/**
* Reports all the interesting information in an Indexed/PropertyDescrptor.
*/
if (pd instanceof IndexedPropertyDescriptor) {
}
}
/**
* Reports all the interesting information in an EventSetDescriptor
*/
}
/**
* Reports all the interesting information in a MethodDescriptor
*/
}
}