Package com.ibatis.common.beans
Class DomProbe
java.lang.Object
com.ibatis.common.beans.BaseProbe
com.ibatis.common.beans.DomProbe
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets an Object property from another object.protected Object
getProperty
(Object object, String property) Gets the property.getPropertyTypeForGetter
(Object object, String name) Returns the class that the getter will return when reading a property.getPropertyTypeForSetter
(Object object, String name) Returns the class that the setter expects when setting a property.String[]
getReadablePropertyNames
(Object object) Returns an array of the readable properties exposed by an object.String[]
getWriteablePropertyNames
(Object object) Returns an array of the writeable properties exposed by an object.boolean
hasReadableProperty
(Object object, String propertyName) Checks to see if an object has a readable property by a given name.boolean
hasWritableProperty
(Object object, String propertyName) Checks to see if an object has a writable property by a given name.static String
nodeToString
(Node node, String indent) Converts a DOM node to a complete xml string.void
Sets the value of a property on an object.protected void
setProperty
(Object object, String property, Object value) Sets the property.Methods inherited from class com.ibatis.common.beans.BaseProbe
getIndexedProperty, getIndexedType, setIndexedProperty
-
Constructor Details
-
DomProbe
public DomProbe()
-
-
Method Details
-
getReadablePropertyNames
Description copied from class:BaseProbe
Returns an array of the readable properties exposed by an object.- Specified by:
getReadablePropertyNames
in classBaseProbe
- Parameters:
object
- - the object- Returns:
- The array of property names
-
getWriteablePropertyNames
Description copied from class:BaseProbe
Returns an array of the writeable properties exposed by an object.- Specified by:
getWriteablePropertyNames
in classBaseProbe
- Parameters:
object
- - the object- Returns:
- The array of property names
-
getPropertyTypeForSetter
-
getPropertyTypeForGetter
-
hasWritableProperty
Description copied from interface:Probe
Checks to see if an object has a writable property by a given name.- Parameters:
object
- - the object to checkpropertyName
- - the property to check for- Returns:
- True if the property exists and is writable
-
hasReadableProperty
Description copied from interface:Probe
Checks to see if an object has a readable property by a given name.- Parameters:
object
- - the object to checkpropertyName
- - the property to check for- Returns:
- True if the property exists and is readable
-
getObject
-
setObject
-
setProperty
-
getProperty
-
nodeToString
-