com.ibatis.common.beans
Class DomProbe

java.lang.Object
  extended by com.ibatis.common.beans.BaseProbe
      extended by com.ibatis.common.beans.DomProbe
所有已实现接口:
Probe

public class DomProbe
extends BaseProbe

A Probe implementation for working with DOM objects


构造器摘要
DomProbe()
           
 
方法摘要
 java.lang.Object getObject(java.lang.Object object, java.lang.String name)
          Gets an Object property from another object
protected  java.lang.Object getProperty(java.lang.Object object, java.lang.String property)
           
 java.lang.Class getPropertyTypeForGetter(java.lang.Object object, java.lang.String name)
          Returns the class that the getter will return when reading a property
 java.lang.Class getPropertyTypeForSetter(java.lang.Object object, java.lang.String name)
          Returns the class that the setter expects when setting a property
 java.lang.String[] getReadablePropertyNames(java.lang.Object object)
          Returns an array of the readable properties exposed by an object
 java.lang.String[] getWriteablePropertyNames(java.lang.Object object)
          Returns an array of the writeable properties exposed by an object
 boolean hasReadableProperty(java.lang.Object object, java.lang.String propertyName)
          Checks to see if an object has a readable property by a given name
 boolean hasWritableProperty(java.lang.Object object, java.lang.String propertyName)
          Checks to see if an object has a writable property by a given name
static java.lang.String nodeToString(org.w3c.dom.Node node, java.lang.String indent)
          Converts a DOM node to a complete xml string
 void setObject(java.lang.Object object, java.lang.String name, java.lang.Object value)
          Sets the value of a property on an object
protected  void setProperty(java.lang.Object object, java.lang.String property, java.lang.Object value)
           
 
类方法继承: com.ibatis.common.beans.BaseProbe
getIndexedProperty, getIndexedType, setIndexedProperty
 
类方法继承: java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造器详细信息

DomProbe

public DomProbe()
方法详细信息

getReadablePropertyNames

public java.lang.String[] getReadablePropertyNames(java.lang.Object object)
Description copied from class: BaseProbe
Returns an array of the readable properties exposed by an object

规范说明:
getReadablePropertyNames in class BaseProbe
参数:
object - - the object
返回:
The array of property names

getWriteablePropertyNames

public java.lang.String[] getWriteablePropertyNames(java.lang.Object object)
Description copied from class: BaseProbe
Returns an array of the writeable properties exposed by an object

规范说明:
getWriteablePropertyNames in class BaseProbe
参数:
object - - the object
返回:
The array of property names

getPropertyTypeForSetter

public java.lang.Class getPropertyTypeForSetter(java.lang.Object object,
                                                java.lang.String name)
Description copied from interface: Probe
Returns the class that the setter expects when setting a property

参数:
object - - the object to check
name - - the name of the property
返回:
The type of the property

getPropertyTypeForGetter

public java.lang.Class getPropertyTypeForGetter(java.lang.Object object,
                                                java.lang.String name)
Description copied from interface: Probe
Returns the class that the getter will return when reading a property

参数:
object - - the object to check
name - - the name of the property
返回:
The type of the property

hasWritableProperty

public boolean hasWritableProperty(java.lang.Object object,
                                   java.lang.String propertyName)
Description copied from interface: Probe
Checks to see if an object has a writable property by a given name

参数:
object - - the object to check
propertyName - - the property to check for
返回:
True if the property exists and is writable

hasReadableProperty

public boolean hasReadableProperty(java.lang.Object object,
                                   java.lang.String propertyName)
Description copied from interface: Probe
Checks to see if an object has a readable property by a given name

参数:
object - - the object to check
propertyName - - the property to check for
返回:
True if the property exists and is readable

getObject

public java.lang.Object getObject(java.lang.Object object,
                                  java.lang.String name)
Description copied from interface: Probe
Gets an Object property from another object

参数:
object - - the object
name - - the property name
返回:
The property value (as an Object)

setObject

public void setObject(java.lang.Object object,
                      java.lang.String name,
                      java.lang.Object value)
Description copied from interface: Probe
Sets the value of a property on an object

参数:
object - - the object to change
name - - the name of the property to set
value - - the new value to set

setProperty

protected void setProperty(java.lang.Object object,
                           java.lang.String property,
                           java.lang.Object value)
规范说明:
setProperty in class BaseProbe

getProperty

protected java.lang.Object getProperty(java.lang.Object object,
                                       java.lang.String property)
规范说明:
getProperty in class BaseProbe

nodeToString

public static java.lang.String nodeToString(org.w3c.dom.Node node,
                                            java.lang.String indent)
Converts a DOM node to a complete xml string

参数:
node - - the node to process
indent - - how to indent the children of the node
返回:
The node as a String