Class BaseProbe

java.lang.Object
com.ibatis.common.beans.BaseProbe
All Implemented Interfaces:
Probe
Direct Known Subclasses:
ComplexBeanProbe, DomProbe, GenericProbe

public abstract class BaseProbe extends Object implements Probe
Abstract class used to help development of Probe implementations.
  • Constructor Details

    • BaseProbe

      public BaseProbe()
  • Method Details

    • setProperty

      protected abstract void setProperty(Object object, String property, Object value)
      Sets the property.
      Parameters:
      object - the object
      property - the property
      value - the value
    • getProperty

      protected abstract Object getProperty(Object object, String property)
      Gets the property.
      Parameters:
      object - the object
      property - the property
      Returns:
      the property
    • getReadablePropertyNames

      public abstract String[] getReadablePropertyNames(Object object)
      Returns an array of the readable properties exposed by an object.
      Parameters:
      object - - the object
      Returns:
      The array of property names
    • getWriteablePropertyNames

      public abstract String[] getWriteablePropertyNames(Object object)
      Returns an array of the writeable properties exposed by an object.
      Parameters:
      object - - the object
      Returns:
      The array of property names
    • getIndexedProperty

      protected Object getIndexedProperty(Object object, String indexedName)
      Gets the indexed property.
      Parameters:
      object - the object
      indexedName - the indexed name
      Returns:
      the indexed property
    • getIndexedType

      protected Class getIndexedType(Object object, String indexedName)
      Gets the indexed type.
      Parameters:
      object - the object
      indexedName - the indexed name
      Returns:
      the indexed type
    • setIndexedProperty

      protected void setIndexedProperty(Object object, String indexedName, Object value)
      Sets the indexed property.
      Parameters:
      object - the object
      indexedName - the indexed name
      value - the value