public class VisualServices
extends java.lang.Object
VisualServices
class contains static methods
that are used in conjunction with visual objects.Modifier and Type | Method and Description |
---|---|
static java.lang.reflect.Method |
findGetMethod(java.lang.Object object,
java.lang.String property)
Returns the get method for the specified object and property, or
null if no method can be found.
|
static java.lang.reflect.Method |
findGetValuesMethod(java.lang.Object object,
java.lang.String property)
Returns the get values method for the specified object and
property, or null if no method can be found.
|
static java.lang.reflect.Method |
findMethod(java.lang.Object object,
java.lang.String methodName)
Returns the first method for the specified object with the
specified name, or null if one cannot be found.
|
static java.lang.reflect.Method |
findSetMethod(java.lang.Object object,
java.lang.String property)
Returns the set method for the specified object and property, or
null if no method can be found.
|
static java.util.List |
getProperties(java.lang.Object object)
Returns a list of properties for the specified object.
|
static java.lang.Class |
getPropertyType(java.lang.Object object,
java.lang.String property)
Gets the class of the specified property, or null if the object
has no property with the specified name.
|
static boolean |
hasProperty(java.lang.Object object,
java.lang.String property)
Returns true if the object has the specified property, or false
if not.
|
public static java.lang.reflect.Method findMethod(java.lang.Object object, java.lang.String methodName)
public static java.lang.reflect.Method findGetMethod(java.lang.Object object, java.lang.String property)
public static java.lang.reflect.Method findGetValuesMethod(java.lang.Object object, java.lang.String property)
public static java.lang.reflect.Method findSetMethod(java.lang.Object object, java.lang.String property)
public static boolean hasProperty(java.lang.Object object, java.lang.String property)
object
- the object to search.property
- the property name.public static java.util.List getProperties(java.lang.Object object)
public static java.lang.Class getPropertyType(java.lang.Object object, java.lang.String property)