|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibatis.common.beans.BaseProbe
com.ibatis.common.beans.DomProbe
Constructor Summary | |
DomProbe()
|
Method Summary | |
private org.w3c.dom.Element |
findNestedNodeByName(org.w3c.dom.Element element,
java.lang.String name,
boolean create)
|
private org.w3c.dom.Element |
findNodeByName(org.w3c.dom.Element element,
java.lang.String name,
int index,
boolean create)
|
private java.lang.Object |
getElementValue(org.w3c.dom.Element element)
|
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)
|
private org.w3c.dom.Element |
resolveElement(java.lang.Object object)
|
private void |
setElementValue(org.w3c.dom.Element element,
java.lang.Object value)
|
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)
|
Methods inherited from class com.ibatis.common.beans.BaseProbe |
getIndexedProperty, setIndexedProperty |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DomProbe()
Method Detail |
public java.lang.String[] getReadablePropertyNames(java.lang.Object object)
BaseProbe
getReadablePropertyNames
in class BaseProbe
object
- - the object
public java.lang.String[] getWriteablePropertyNames(java.lang.Object object)
BaseProbe
getWriteablePropertyNames
in class BaseProbe
object
- - the object
public java.lang.Class getPropertyTypeForSetter(java.lang.Object object, java.lang.String name)
Probe
object
- - the object to checkname
- - the name of the property
public java.lang.Class getPropertyTypeForGetter(java.lang.Object object, java.lang.String name)
Probe
object
- - the object to checkname
- - the name of the property
public boolean hasWritableProperty(java.lang.Object object, java.lang.String propertyName)
Probe
object
- - the object to checkpropertyName
- - the property to check for
public boolean hasReadableProperty(java.lang.Object object, java.lang.String propertyName)
Probe
object
- - the object to checkpropertyName
- - the property to check for
public java.lang.Object getObject(java.lang.Object object, java.lang.String name)
Probe
object
- - the objectname
- - the property name
public void setObject(java.lang.Object object, java.lang.String name, java.lang.Object value)
Probe
object
- - the object to changename
- - the name of the property to setvalue
- - the new value to setprotected void setProperty(java.lang.Object object, java.lang.String property, java.lang.Object value)
setProperty
in class BaseProbe
protected java.lang.Object getProperty(java.lang.Object object, java.lang.String property)
getProperty
in class BaseProbe
private org.w3c.dom.Element resolveElement(java.lang.Object object)
private void setElementValue(org.w3c.dom.Element element, java.lang.Object value)
private java.lang.Object getElementValue(org.w3c.dom.Element element)
private org.w3c.dom.Element findNestedNodeByName(org.w3c.dom.Element element, java.lang.String name, boolean create)
private org.w3c.dom.Element findNodeByName(org.w3c.dom.Element element, java.lang.String name, int index, boolean create)
public static java.lang.String nodeToString(org.w3c.dom.Node node, java.lang.String indent)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |