Package com.ibatis.common.beans
Class BaseProbe
java.lang.Object
com.ibatis.common.beans.BaseProbe
- All Implemented Interfaces:
Probe
- Direct Known Subclasses:
ComplexBeanProbe,DomProbe,GenericProbe
Abstract class used to help development of Probe implementations.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ObjectgetIndexedProperty(Object object, String indexedName) Gets the indexed property.protected ClassgetIndexedType(Object object, String indexedName) Gets the indexed type.protected abstract ObjectgetProperty(Object object, String property) Gets the property.abstract String[]getReadablePropertyNames(Object object) Returns an array of the readable properties exposed by an object.abstract String[]getWriteablePropertyNames(Object object) Returns an array of the writeable properties exposed by an object.protected voidsetIndexedProperty(Object object, String indexedName, Object value) Sets the indexed property.protected abstract voidsetProperty(Object object, String property, Object value) Sets the property.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.ibatis.common.beans.Probe
getObject, getPropertyTypeForGetter, getPropertyTypeForSetter, hasReadableProperty, hasWritableProperty, setObject
-
Constructor Details
-
BaseProbe
public BaseProbe()
-
-
Method Details
-
setProperty
Sets the property.- Parameters:
object- the objectproperty- the propertyvalue- the value
-
getProperty
Gets the property.- Parameters:
object- the objectproperty- the property- Returns:
- the property
-
getReadablePropertyNames
Returns an array of the readable properties exposed by an object.- Parameters:
object- - the object- Returns:
- The array of property names
-
getWriteablePropertyNames
Returns an array of the writeable properties exposed by an object.- Parameters:
object- - the object- Returns:
- The array of property names
-
getIndexedProperty
Gets the indexed property.- Parameters:
object- the objectindexedName- the indexed name- Returns:
- the indexed property
-
getIndexedType
Gets the indexed type.- Parameters:
object- the objectindexedName- the indexed name- Returns:
- the indexed type
-
setIndexedProperty
Sets the indexed property.- Parameters:
object- the objectindexedName- the indexed namevalue- the value
-