com.ibatis.common.beans
Class BaseProbe

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

public abstract class BaseProbe
extends java.lang.Object
implements Probe

Abstract class used to help development of Probe implementations


Constructor Summary
BaseProbe()
           
 
Method Summary
protected  java.lang.Object getIndexedProperty(java.lang.Object object, java.lang.String indexedName)
           
protected  java.lang.Class getIndexedType(java.lang.Object object, java.lang.String indexedName)
           
protected abstract  java.lang.Object getProperty(java.lang.Object object, java.lang.String property)
           
abstract  java.lang.String[] getReadablePropertyNames(java.lang.Object object)
          Returns an array of the readable properties exposed by an object
abstract  java.lang.String[] getWriteablePropertyNames(java.lang.Object object)
          Returns an array of the writeable properties exposed by an object
protected  void setIndexedProperty(java.lang.Object object, java.lang.String indexedName, java.lang.Object value)
           
protected abstract  void setProperty(java.lang.Object object, java.lang.String property, java.lang.Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.ibatis.common.beans.Probe
getObject, getPropertyTypeForGetter, getPropertyTypeForSetter, hasReadableProperty, hasWritableProperty, setObject
 

Constructor Detail

BaseProbe

public BaseProbe()
Method Detail

setProperty

protected abstract void setProperty(java.lang.Object object,
                                    java.lang.String property,
                                    java.lang.Object value)

getProperty

protected abstract java.lang.Object getProperty(java.lang.Object object,
                                                java.lang.String property)

getReadablePropertyNames

public abstract java.lang.String[] getReadablePropertyNames(java.lang.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 java.lang.String[] getWriteablePropertyNames(java.lang.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 java.lang.Object getIndexedProperty(java.lang.Object object,
                                              java.lang.String indexedName)

getIndexedType

protected java.lang.Class getIndexedType(java.lang.Object object,
                                         java.lang.String indexedName)

setIndexedProperty

protected void setIndexedProperty(java.lang.Object object,
                                  java.lang.String indexedName,
                                  java.lang.Object value)