Example usage for Java org.springframework.beans BeanUtils fields, constructors, methods, implement or subclass
The text is from its open source code.
void | copyProperties(Object source, Object target) Copy the property values of the given source bean into the target bean. |
void | copyProperties(Object source, Object target, Class> editable) Copy the property values of the given source bean into the given target bean, only setting properties defined in the given "editable" class (or interface). |
void | copyProperties(Object source, Object target, String... ignoreProperties) Copy the property values of the given source bean into the given target bean, ignoring the given "ignoreProperties". |
void | copyProperties(Object source, Object target, @Nullable Class> editable, @Nullable String... ignoreProperties) Copy the property values of the given source bean into the given target bean. |
Method | findDeclaredMethod(Class> clazz, String methodName, Class>... paramTypes) Find a method with the given method name and the given parameter types, declared on the given class or one of its superclasses. |
Method | findDeclaredMethodWithMinimalParameters(Class> clazz, String methodName) Find a method with the given method name and minimal parameters (best case: none), declared on the given class or one of its superclasses. |
PropertyEditor | findEditorByConvention(@Nullable Class> targetType) Find a JavaBeans PropertyEditor following the 'Editor' suffix convention (e.g. |
Method | findMethod(Class> clazz, String methodName, Class>... paramTypes) Find a method with the given method name and the given parameter types, declared on the given class or one of its superclasses. |
Method | findMethodWithMinimalParameters(Class> clazz, String methodName) Find a method with the given method name and minimal parameters (best case: none), declared on the given class or one of its superclasses. |
Method | findMethodWithMinimalParameters(Method[] methods, String methodName) Find a method with the given method name and minimal parameters (best case: none) in the given list of methods. |
Constructor | findPrimaryConstructor(Class Return the primary constructor of the provided class. |
PropertyDescriptor | findPropertyForMethod(Method method) Find a JavaBeans PropertyDescriptor for the given method, with the method either being the read method or the write method for that bean property. |
PropertyDescriptor | findPropertyForMethod(Method method, Class> clazz) Find a JavaBeans PropertyDescriptor for the given method, with the method either being the read method or the write method for that bean property. |
Class> | findPropertyType(String propertyName, @Nullable Class>... beanClasses) Determine the bean property type for the given property from the given classes/interfaces, if possible. |
PropertyDescriptor | getPropertyDescriptor(Class> clazz, String propertyName) Retrieve the JavaBeans PropertyDescriptors for the given property. |
PropertyDescriptor[] | getPropertyDescriptors(Class> clazz) Retrieve the JavaBeans PropertyDescriptor s of a given class. |
MethodParameter | getWriteMethodParameter(PropertyDescriptor pd) Obtain a new MethodParameter object for the write method of the specified property. |
T | instantiate(Class Convenience method to instantiate a class using its no-arg constructor. |
T | instantiateClass(Class Instantiate a class using its 'primary' constructor (for Kotlin classes, potentially having default arguments declared) or its default constructor (for regular Java classes, expecting a standard no-arg setup). |
T | instantiateClass(Class> clazz, Class Instantiate a class using its no-arg constructor and return the new instance as the specified assignable type. |
T | instantiateClass(Constructor Convenience method to instantiate a class using the given constructor. |
boolean | isSimpleProperty(Class> clazz) Check if the given type represents a "simple" property: a primitive, a String or other CharSequence, a Number, a Date, a Temporal, a URI, a URL, a Locale, a Class, or a corresponding array. |
boolean | isSimpleValueType(Class> clazz) Check if the given type represents a "simple" value type: a primitive, an enum, a String or other CharSequence, a Number, a Date, a Temporal, a URI, a URL, a Locale or a Class. |
Method | resolveSignature(String signature, Class> clazz) Parse a method signature in the form methodName[([arg_list])] , where arg_list is an optional, comma-separated list of fully-qualified type names, and attempts to resolve that signature against the supplied Class . |