Interface Probe

All Known Implementing Classes:
BaseProbe, ComplexBeanProbe, DomProbe, GenericProbe

public interface Probe
A Probe is an object that is used to work with beans, DOM objects, or other objects.
  • Method Details

    • getObject

      Object getObject(Object object, String name)
      Gets an Object property from another object.
      Parameters:
      object - - the object
      name - - the property name
      Returns:
      The property value (as an Object)
    • setObject

      void setObject(Object object, String name, Object value)
      Sets the value of a property on an object.
      Parameters:
      object - - the object to change
      name - - the name of the property to set
      value - - the new value to set
    • getPropertyTypeForSetter

      Class getPropertyTypeForSetter(Object object, String name)
      Returns the class that the setter expects when setting a property.
      Parameters:
      object - - the object to check
      name - - the name of the property
      Returns:
      The type of the property
    • getPropertyTypeForGetter

      Class getPropertyTypeForGetter(Object object, String name)
      Returns the class that the getter will return when reading a property.
      Parameters:
      object - - the object to check
      name - - the name of the property
      Returns:
      The type of the property
    • hasWritableProperty

      boolean hasWritableProperty(Object object, String propertyName)
      Checks to see if an object has a writable property by a given name.
      Parameters:
      object - - the object to check
      propertyName - - the property to check for
      Returns:
      True if the property exists and is writable
    • hasReadableProperty

      boolean hasReadableProperty(Object object, String propertyName)
      Checks to see if an object has a readable property by a given name.
      Parameters:
      object - - the object to check
      propertyName - - the property to check for
      Returns:
      True if the property exists and is readable