|
EclipseLink 1.2.0, build 'v20091016-r5565' API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.persistence.sdo.helper.XPathEngine
public class XPathEngine
Purpose: Perform operations based on SDO XPath against DataObjects.
Field Summary | |
---|---|
protected static XPathEngine |
defaultXPathEngine
|
Method Summary | |
---|---|
java.lang.Object |
convertObjectToValueByPath(java.lang.String path,
java.lang.Class cls,
DataObject caller)
access the wanted values through path and convert it into required java class. |
java.lang.Object |
get(java.lang.String path,
DataObject caller)
When accessing values corresponding to properties of DataObject by path base accessors, the accessed getters will pass informations to this method to process information and acquire wanted values. |
static XPathEngine |
getInstance()
|
boolean |
isSet(java.lang.String path,
DataObject caller)
Handle queries about setting status of a property through path base access. |
void |
set(java.lang.String path,
java.lang.Object value,
DataObject caller,
boolean convertValue)
Set a property's value through the path base access. |
void |
unset(java.lang.String path,
DataObject caller)
Unset the value of a property through the path base access. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static XPathEngine defaultXPathEngine
Method Detail |
---|
public static XPathEngine getInstance()
public boolean isSet(java.lang.String path, DataObject caller)
path
- the String representation of path based accesscaller
- the DataObject that pass path information in
public void unset(java.lang.String path, DataObject caller)
path
- the String representation of path based accesscaller
- the DataObject that pass path information inpublic void set(java.lang.String path, java.lang.Object value, DataObject caller, boolean convertValue)
path
- the String representation of path based accessvalue
- the value to be set as the target property's valuecaller
- the DataObject that pass path information inconvertValue
- boolean used for set if we should convert the valuepublic java.lang.Object get(java.lang.String path, DataObject caller)
path
- the String representation of path based accesscaller
- the DataObject that pass path information in
public java.lang.Object convertObjectToValueByPath(java.lang.String path, java.lang.Class cls, DataObject caller) throws java.lang.ClassCastException
path
- string representation of accessing pathcls
- the java class that accessed value is to be converted tocaller
- the DataObject that pass the path in
java.lang.ClassCastException
|
EclipseLink 1.2.0, build 'v20091016-r5565' API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |