|
|||||||||||
PREV NEXT | FRAMES NO FRAMES |
Uses of OgnlException in ognl |
Subclasses of OgnlException in ognl | |
class |
ExpressionSyntaxException
Exception thrown if a malformed OGNL expression is encountered. |
class |
InappropriateExpressionException
Exception thrown if an OGNL expression is evaluated in the wrong context; the usual case is when an expression that does not end in a property reference is passed to setValue . |
class |
MethodFailedException
Exception thrown if a method or constructor call fails. |
class |
NoSuchPropertyException
Exception thrown if a property is attempted to be extracted from an object that does not have such a property. |
Methods in ognl that throw OgnlException | |
Object |
SetPropertyAccessor.getProperty(Map context,
Object target,
Object name)
|
Object |
Node.getValue(OgnlContext context,
Object source)
Extracts the value from the given source object that is appropriate for this node within the given context. |
void |
Node.setValue(OgnlContext context,
Object target,
Object value)
Sets the given value in the given target as appropriate for this node within the given context. |
Object |
PropertyAccessor.getProperty(Map context,
Object target,
Object name)
Extracts and returns the property of the given name from the given target object. |
void |
PropertyAccessor.setProperty(Map context,
Object target,
Object name,
Object value)
Sets the value of the property of the given name in the given target object. |
static boolean |
OgnlOps.in(Object v1,
Object v2)
|
Object |
ObjectPropertyAccessor.getPossibleProperty(Map context,
Object target,
String name)
Returns OgnlRuntime.NotFound if the property does not exist. |
Object |
ObjectPropertyAccessor.setPossibleProperty(Map context,
Object target,
String name,
Object value)
Returns OgnlRuntime.NotFound if the property does not exist. |
boolean |
ObjectPropertyAccessor.hasGetProperty(OgnlContext context,
Object target,
Object oname)
|
boolean |
ObjectPropertyAccessor.hasGetProperty(Map context,
Object target,
Object oname)
|
boolean |
ObjectPropertyAccessor.hasSetProperty(OgnlContext context,
Object target,
Object oname)
|
boolean |
ObjectPropertyAccessor.hasSetProperty(Map context,
Object target,
Object oname)
|
Object |
ObjectPropertyAccessor.getProperty(Map context,
Object target,
Object oname)
|
void |
ObjectPropertyAccessor.setProperty(Map context,
Object target,
Object oname,
Object value)
|
Enumeration |
ElementsAccessor.getElements(Object target)
Returns an iterator over the elements of the given target object. |
Object |
MapPropertyAccessor.getProperty(Map context,
Object target,
Object name)
|
void |
MapPropertyAccessor.setProperty(Map context,
Object target,
Object name,
Object value)
|
Object |
ArrayPropertyAccessor.getProperty(Map context,
Object target,
Object name)
|
void |
ArrayPropertyAccessor.setProperty(Map context,
Object target,
Object name,
Object value)
|
static Object |
Ognl.parseExpression(String expression)
Parses the given OGNL expression and returns a tree representation of the expression that can be used by Ognl static methods. |
static Object |
Ognl.getValue(Object tree,
Map context,
Object root)
Evaluates the given OGNL expression tree to extract a value from the given root object. |
static Object |
Ognl.getValue(Object tree,
Map context,
Object root,
Class resultType)
Evaluates the given OGNL expression tree to extract a value from the given root object. |
static Object |
Ognl.getValue(String expression,
Map context,
Object root)
Evaluates the given OGNL expression to extract a value from the given root object in a given context |
static Object |
Ognl.getValue(String expression,
Map context,
Object root,
Class resultType)
Evaluates the given OGNL expression to extract a value from the given root object in a given context |
static Object |
Ognl.getValue(Object tree,
Object root)
Evaluates the given OGNL expression tree to extract a value from the given root object. |
static Object |
Ognl.getValue(Object tree,
Object root,
Class resultType)
Evaluates the given OGNL expression tree to extract a value from the given root object. |
static Object |
Ognl.getValue(String expression,
Object root)
Convenience method that combines calls to parseExpression and
getValue . |
static Object |
Ognl.getValue(String expression,
Object root,
Class resultType)
Convenience method that combines calls to parseExpression and
getValue . |
static void |
Ognl.setValue(Object tree,
Map context,
Object root,
Object value)
Evaluates the given OGNL expression tree to insert a value into the object graph rooted at the given root object. |
static void |
Ognl.setValue(String expression,
Map context,
Object root,
Object value)
Evaluates the given OGNL expression to insert a value into the object graph rooted at the given root object given the context. |
static void |
Ognl.setValue(Object tree,
Object root,
Object value)
Evaluates the given OGNL expression tree to insert a value into the object graph rooted at the given root object. |
static void |
Ognl.setValue(String expression,
Object root,
Object value)
Convenience method that combines calls to parseExpression and
setValue . |
static boolean |
Ognl.isConstant(Object tree,
Map context)
|
static boolean |
Ognl.isConstant(String expression,
Map context)
|
static boolean |
Ognl.isConstant(Object tree)
|
static boolean |
Ognl.isConstant(String expression)
|
static boolean |
Ognl.isSimpleProperty(Object tree,
Map context)
|
static boolean |
Ognl.isSimpleProperty(String expression,
Map context)
|
static boolean |
Ognl.isSimpleProperty(Object tree)
|
static boolean |
Ognl.isSimpleProperty(String expression)
|
static boolean |
Ognl.isSimpleNavigationChain(Object tree,
Map context)
|
static boolean |
Ognl.isSimpleNavigationChain(String expression,
Map context)
|
static boolean |
Ognl.isSimpleNavigationChain(Object tree)
|
static boolean |
Ognl.isSimpleNavigationChain(String expression)
|
Object |
ListPropertyAccessor.getProperty(Map context,
Object target,
Object name)
|
void |
ListPropertyAccessor.setProperty(Map context,
Object target,
Object name,
Object value)
|
Object |
IteratorPropertyAccessor.getProperty(Map context,
Object target,
Object name)
|
void |
IteratorPropertyAccessor.setProperty(Map context,
Object target,
Object name,
Object value)
|
boolean |
ExpressionNode.isNodeConstant(OgnlContext context)
Returns true iff this node is constant without respect to the children. |
boolean |
ExpressionNode.isConstant(OgnlContext context)
|
Object |
EnumerationPropertyAccessor.getProperty(Map context,
Object target,
Object name)
|
void |
EnumerationPropertyAccessor.setProperty(Map context,
Object target,
Object name,
Object value)
|
protected Object |
SimpleNode.evaluateGetValueBody(OgnlContext context,
Object source)
|
protected void |
SimpleNode.evaluateSetValueBody(OgnlContext context,
Object target,
Object value)
|
Object |
SimpleNode.getValue(OgnlContext context,
Object source)
|
protected abstract Object |
SimpleNode.getValueBody(OgnlContext context,
Object source)
Subclasses implement this method to do the actual work of extracting the appropriate value from the source object. |
void |
SimpleNode.setValue(OgnlContext context,
Object target,
Object value)
|
protected void |
SimpleNode.setValueBody(OgnlContext context,
Object target,
Object value)
Subclasses implement this method to do the actual work of setting the appropriate value in the target object. |
boolean |
SimpleNode.isNodeConstant(OgnlContext context)
Returns true iff this node is constant without respect to the children. |
boolean |
SimpleNode.isConstant(OgnlContext context)
|
boolean |
SimpleNode.isNodeSimpleProperty(OgnlContext context)
|
boolean |
SimpleNode.isSimpleProperty(OgnlContext context)
|
boolean |
SimpleNode.isSimpleNavigationChain(OgnlContext context)
|
static boolean |
OgnlRuntime.isInstance(OgnlContext context,
Object value,
String className)
|
static Object |
OgnlRuntime.callStaticMethod(OgnlContext context,
String className,
String methodName,
Object[] args)
|
static Object |
OgnlRuntime.callMethod(OgnlContext context,
Object target,
String methodName,
String propertyName,
Object[] args)
|
static Object |
OgnlRuntime.callConstructor(OgnlContext context,
String className,
Object[] args)
|
static Object |
OgnlRuntime.getMethodValue(OgnlContext context,
Object target,
String propertyName)
|
static Object |
OgnlRuntime.getMethodValue(OgnlContext context,
Object target,
String propertyName,
boolean checkAccessAndExistence)
If the checkAccessAndExistence flag is true this method will check to see if the method exists and if it is accessible according to the context's MemberAccess. |
static boolean |
OgnlRuntime.setMethodValue(OgnlContext context,
Object target,
String propertyName,
Object value)
|
static boolean |
OgnlRuntime.setMethodValue(OgnlContext context,
Object target,
String propertyName,
Object value,
boolean checkAccessAndExistence)
|
static boolean |
OgnlRuntime.setFieldValue(OgnlContext context,
Object target,
String propertyName,
Object value)
|
static Object |
OgnlRuntime.getStaticField(OgnlContext context,
String className,
String fieldName)
|
static Method |
OgnlRuntime.getGetMethod(OgnlContext context,
Class targetClass,
String propertyName)
|
static boolean |
OgnlRuntime.hasGetMethod(OgnlContext context,
Object target,
Class targetClass,
String propertyName)
|
static Method |
OgnlRuntime.getSetMethod(OgnlContext context,
Class targetClass,
String propertyName)
|
static boolean |
OgnlRuntime.hasSetMethod(OgnlContext context,
Object target,
Class targetClass,
String propertyName)
|
static boolean |
OgnlRuntime.hasGetProperty(OgnlContext context,
Object target,
Object oname)
|
static boolean |
OgnlRuntime.hasSetProperty(OgnlContext context,
Object target,
Object oname)
|
static Map |
OgnlRuntime.getPropertyDescriptors(Class targetClass)
This method returns the property descriptors for the given class as a Map |
static PropertyDescriptor |
OgnlRuntime.getPropertyDescriptor(Class targetClass,
String propertyName)
This method returns a PropertyDescriptor for the given class and property name using a Map lookup (using getPropertyDescriptorsMap()). |
static MethodAccessor |
OgnlRuntime.getMethodAccessor(Class cls)
|
static PropertyAccessor |
OgnlRuntime.getPropertyAccessor(Class cls)
|
static ElementsAccessor |
OgnlRuntime.getElementsAccessor(Class cls)
|
static NullHandler |
OgnlRuntime.getNullHandler(Class cls)
|
static Object |
OgnlRuntime.getProperty(OgnlContext context,
Object source,
Object name)
|
static void |
OgnlRuntime.setProperty(OgnlContext context,
Object target,
Object name,
Object value)
|
static int |
OgnlRuntime.getIndexedPropertyType(OgnlContext context,
Class sourceClass,
String name)
Determines the index property type, if any. |
static Object |
OgnlRuntime.getIndexedProperty(OgnlContext context,
Object source,
String name,
Object index)
|
static void |
OgnlRuntime.setIndexedProperty(OgnlContext context,
Object source,
String name,
Object index,
Object value)
|
|
OGNL Project Page | ||||||||||
PREV NEXT | FRAMES NO FRAMES |