Package noaa.coastwatch.gui.visual
Class VisualServices
java.lang.Object
noaa.coastwatch.gui.visual.VisualServices
The
VisualServices
class contains static methods
that are used in conjunction with visual objects.- Since:
- 3.1.7
- Author:
- Peter Hollemans
-
Method Summary
Modifier and TypeMethodDescriptionstatic Method
findGetMethod
(Object object, String property) Returns the get method for the specified object and property, or null if no method can be found.static Method
findGetValuesMethod
(Object object, String property) Returns the get values method for the specified object and property, or null if no method can be found.static Method
findMethod
(Object object, String methodName) Returns the first method for the specified object with the specified name, or null if one cannot be found.static Method
findSetMethod
(Object object, String property) Returns the set method for the specified object and property, or null if no method can be found.static List
getProperties
(Object object) Returns a list of properties for the specified object.static Class
getPropertyType
(Object object, String property) Gets the class of the specified property, or null if the object has no property with the specified name.static boolean
hasProperty
(Object object, String property) Returns true if the object has the specified property, or false if not.
-
Method Details
-
findMethod
Returns the first method for the specified object with the specified name, or null if one cannot be found. -
findGetMethod
Returns the get method for the specified object and property, or null if no method can be found. -
findGetValuesMethod
Returns the get values method for the specified object and property, or null if no method can be found. -
findSetMethod
Returns the set method for the specified object and property, or null if no method can be found. -
hasProperty
Returns true if the object has the specified property, or false if not. An object only has the property if there exist get and set methods for the property.- Parameters:
object
- the object to search.property
- the property name.- Returns:
- true if the property is found, or false if not.
-
getProperties
Returns a list of properties for the specified object. Properties are defined as those values which have corresponding get and set methods. -
getPropertyType
Gets the class of the specified property, or null if the object has no property with the specified name.
-