|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.6.0) E13403-07 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.javatools.db.property.PropertyHelper
public class PropertyHelper
Helper class that allows you to get the value for a given property (path) on an object. Doesn't use the core Property API but instead just looks for get methods, making it more flexible for property frameworks such as SXML and DDL generation.
Constructor Summary | |
---|---|
PropertyHelper()
|
Method Summary | |
---|---|
static PropertyInfo |
findPropertyInfo(java.lang.Class clz,
java.lang.String propPath,
java.lang.Class<? extends DBObjectProvider> proClz)
If the given property path is supported for the given object class this method returns the PropertyInfo associated with that property. |
static PropertyInfo |
findPropertyInfo(java.lang.String type,
java.lang.String propPath,
java.lang.Class<? extends DBObjectProvider> proClz)
If the given property path is supported for the given object class this method returns the PropertyInfo associated with that property. |
Difference |
getChildDifference(Difference diff,
java.lang.String propPath)
Traverses the given difference looking for a Difference heirachy that matches the given property path, and returns the Difference at the end of that path if one is found. |
java.lang.Object |
getPropertyValue(java.lang.Object obj,
java.lang.String propPath)
Gets the value for the given property path on the given object. |
java.lang.Object |
getPropertyValueOrFail(java.lang.Object obj,
java.lang.String propPath)
Gets the value for the given property path on the given object. |
boolean |
isValidProperty(java.lang.Object obj,
java.lang.String propName,
java.lang.Object context)
Returns true if the given propName is a valid property for the given object. |
void |
setPropertyValue(java.lang.Object bean,
java.lang.String propPath,
java.lang.Object value)
Sets property value on a given object. |
void |
setPropertyValueOrFail(java.lang.Object bean,
java.lang.String propPath,
java.lang.Object value)
Sets property value on a given object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PropertyHelper()
Method Detail |
---|
public java.lang.Object getPropertyValue(java.lang.Object obj, java.lang.String propPath)
public java.lang.Object getPropertyValueOrFail(java.lang.Object obj, java.lang.String propPath) throws MissingPropertyException
MissingPropertyException
public boolean isValidProperty(java.lang.Object obj, java.lang.String propName, java.lang.Object context)
obj
- the object the property is forpropName
- the property namecontext
- the context (parent) object
public void setPropertyValue(java.lang.Object bean, java.lang.String propPath, java.lang.Object value)
public void setPropertyValueOrFail(java.lang.Object bean, java.lang.String propPath, java.lang.Object value) throws MissingPropertyException
MissingPropertyException
public Difference getChildDifference(Difference diff, java.lang.String propPath) throws MissingPropertyException
diff
- the parent DifferencepropPath
- the property path to resolve from the object in the parent
Difference.
MissingPropertyException
- if the path is invalidpublic static PropertyInfo findPropertyInfo(java.lang.String type, java.lang.String propPath, java.lang.Class<? extends DBObjectProvider> proClz)
type
- the object typepropPath
- the property pathproClz
- the provider class to filter the supported properties by
public static PropertyInfo findPropertyInfo(java.lang.Class clz, java.lang.String propPath, java.lang.Class<? extends DBObjectProvider> proClz)
clz
- the object classpropPath
- the property pathproClz
- the provider class to filter the supported properties by
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.6.0) E13403-07 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |