Uses of Class
ognl.OgnlException
Packages that use OgnlException
Package
Description
OGNL stands for Object-Graph Navigation Language; it is an expression language
for getting and setting properties of Java objects.
-
Uses of OgnlException in ognl
Subclasses of OgnlException in ognlModifier and TypeClassDescriptionclassException thrown if a malformed OGNL expression is encountered.classException 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 tosetValue.classException thrown if a method or constructor call fails.classException thrown if a property is attempted to be extracted from an object that does not have such a property.Methods in ognl that throw OgnlExceptionModifier and TypeMethodDescriptionstatic ObjectOgnlRuntime.callConstructor(OgnlContext context, String className, Object[] args) static ObjectOgnlRuntime.callMethod(OgnlContext context, Object target, String methodName, Object[] args) Invokes the specified method against the target object.static ObjectOgnlRuntime.callMethod(OgnlContext context, Object target, String methodName, String propertyName, Object[] args) Deprecated.static ObjectOgnlRuntime.callStaticMethod(OgnlContext context, String className, String methodName, Object[] args) protected ObjectSimpleNode.evaluateGetValueBody(OgnlContext context, Object source) protected voidSimpleNode.evaluateSetValueBody(OgnlContext context, Object target, Object value) static StringOgnlRuntime.getChildSource(OgnlContext context, Object target, Node child) Attempts to get the java source string represented by the specific child expression via theJavaSource.toGetSourceString(OgnlContext,Object)interface method.static StringOgnlRuntime.getChildSource(OgnlContext context, Object target, Node child, boolean forceConversion) Attempts to get the java source string represented by the specific child expression via theJavaSource.toGetSourceString(OgnlContext,Object)interface method.ElementsAccessor.getElements(Object target) Returns an iterator over the elements of the given target object.static ElementsAccessorOgnlRuntime.getElementsAccessor(Class cls) static MethodOgnlRuntime.getGetMethod(OgnlContext context, Class targetClass, String propertyName) static ObjectOgnlRuntime.getIndexedProperty(OgnlContext context, Object source, String name, Object index) intASTProperty.getIndexedPropertyType(OgnlContext context, Object source) Returns true if this property is described by an IndexedPropertyDescriptor and that if followed by an index specifier it will call the index get/set methods rather than go through property accessors.static intOgnlRuntime.getIndexedPropertyType(OgnlContext context, Class sourceClass, String name) Determines the index property type, if any.static MethodAccessorOgnlRuntime.getMethodAccessor(Class cls) static final ObjectOgnlRuntime.getMethodValue(OgnlContext context, Object target, String propertyName) static final ObjectOgnlRuntime.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 NullHandlerOgnlRuntime.getNullHandler(Class cls) ObjectPropertyAccessor.getPossibleProperty(Map context, Object target, String name) Returns OgnlRuntime.NotFound if the property does not exist.ArrayPropertyAccessor.getProperty(Map context, Object target, Object name) ASTProperty.getProperty(OgnlContext context, Object source) EnumerationPropertyAccessor.getProperty(Map context, Object target, Object name) IteratorPropertyAccessor.getProperty(Map context, Object target, Object name) ListPropertyAccessor.getProperty(Map context, Object target, Object name) MapPropertyAccessor.getProperty(Map context, Object target, Object name) ObjectPropertyAccessor.getProperty(Map context, Object target, Object oname) static ObjectOgnlRuntime.getProperty(OgnlContext context, Object source, Object name) PropertyAccessor.getProperty(Map context, Object target, Object name) Extracts and returns the property of the given name from the given target object.SetPropertyAccessor.getProperty(Map context, Object target, Object name) static PropertyAccessorOgnlRuntime.getPropertyAccessor(Class cls) static PropertyDescriptorOgnlRuntime.getPropertyDescriptor(Class targetClass, String propertyName) This method returns a PropertyDescriptor for the given class and property name using a Map lookup (using getPropertyDescriptorsMap()).static MapOgnlRuntime.getPropertyDescriptors(Class targetClass) This method returns the property descriptors for the given class as a Map.static MethodOgnlRuntime.getSetMethod(OgnlContext context, Class targetClass, String propertyName) static ObjectOgnlRuntime.getStaticField(OgnlContext context, String className, String fieldName) Node.getValue(OgnlContext context, Object source) Extracts the value from the given source object that is appropriate for this node within the given context.static ObjectEvaluates the given OGNL expression tree to extract a value from the given root object.static ObjectEvaluates the given OGNL expression tree to extract a value from the given root object.static ObjectEvaluates the given OGNL expression tree to extract a value from the given root object.static ObjectEvaluates the given OGNL expression tree to extract a value from the given root object.static ObjectConvenience method that combines calls toparseExpressionandgetValue.static ObjectConvenience method that combines calls toparseExpressionandgetValue.static ObjectEvaluates the given OGNL expression to extract a value from the given root object in a given contextstatic ObjectEvaluates the given OGNL expression to extract a value from the given root object in a given contextfinal ObjectSimpleNode.getValue(OgnlContext context, Object source) protected ObjectASTAnd.getValueBody(OgnlContext context, Object source) protected ObjectASTChain.getValueBody(OgnlContext context, Object source) protected ObjectASTConst.getValueBody(OgnlContext context, Object source) protected ObjectASTCtor.getValueBody(OgnlContext context, Object source) protected ObjectASTInstanceof.getValueBody(OgnlContext context, Object source) protected ObjectASTList.getValueBody(OgnlContext context, Object source) protected ObjectASTMethod.getValueBody(OgnlContext context, Object source) protected ObjectASTOr.getValueBody(OgnlContext context, Object source) protected ObjectASTProperty.getValueBody(OgnlContext context, Object source) protected ObjectASTRootVarRef.getValueBody(OgnlContext context, Object source) protected ObjectASTSequence.getValueBody(OgnlContext context, Object source) protected ObjectASTStaticField.getValueBody(OgnlContext context, Object source) protected ObjectASTStaticMethod.getValueBody(OgnlContext context, Object source) protected ObjectASTThisVarRef.getValueBody(OgnlContext context, Object source) protected ObjectASTVarRef.getValueBody(OgnlContext context, Object source) protected abstract ObjectSimpleNode.getValueBody(OgnlContext context, Object source) Subclasses implement this method to do the actual work of extracting the appropriate value from the source object.static booleanOgnlRuntime.hasGetMethod(OgnlContext context, Object target, Class targetClass, String propertyName) booleanObjectPropertyAccessor.hasGetProperty(Map context, Object target, Object oname) booleanObjectPropertyAccessor.hasGetProperty(OgnlContext context, Object target, Object oname) static final booleanOgnlRuntime.hasGetProperty(OgnlContext context, Object target, Object oname) static final booleanOgnlRuntime.hasSetMethod(OgnlContext context, Object target, Class targetClass, String propertyName) booleanObjectPropertyAccessor.hasSetProperty(Map context, Object target, Object oname) booleanObjectPropertyAccessor.hasSetProperty(OgnlContext context, Object target, Object oname) static final booleanOgnlRuntime.hasSetProperty(OgnlContext context, Object target, Object oname) static booleanbooleanExpressionNode.isConstant(OgnlContext context) static booleanOgnl.isConstant(Object tree) Same asOgnl.isConstant(Object, java.util.Map)- only theMapcontext is created for you.static booleanOgnl.isConstant(Object tree, Map context) Checks if the specifiedNodeinstance represents a constant expression.static booleanOgnl.isConstant(String expression) Same asOgnl.isConstant(String, java.util.Map)- only theMapinstance is created for you.static booleanOgnl.isConstant(String expression, Map context) Checks if the specified expression represents a constant expression.booleanSimpleNode.isConstant(OgnlContext context) static booleanOgnlRuntime.isInstance(OgnlContext context, Object value, String className) booleanASTConst.isNodeConstant(OgnlContext context) booleanASTStaticField.isNodeConstant(OgnlContext context) booleanExpressionNode.isNodeConstant(OgnlContext context) Returns true iff this node is constant without respect to the children.booleanSimpleNode.isNodeConstant(OgnlContext context) Returns true iff this node is constant without respect to the children.booleanASTProperty.isNodeSimpleProperty(OgnlContext context) booleanSimpleNode.isNodeSimpleProperty(OgnlContext context) booleanASTChain.isSimpleNavigationChain(OgnlContext context) static booleanOgnl.isSimpleNavigationChain(Object tree) static booleanOgnl.isSimpleNavigationChain(Object tree, Map context) static booleanOgnl.isSimpleNavigationChain(String expression) static booleanOgnl.isSimpleNavigationChain(String expression, Map context) booleanSimpleNode.isSimpleNavigationChain(OgnlContext context) static booleanOgnl.isSimpleProperty(Object tree) static booleanOgnl.isSimpleProperty(Object tree, Map context) static booleanOgnl.isSimpleProperty(String expression) static booleanOgnl.isSimpleProperty(String expression, Map context) booleanSimpleNode.isSimpleProperty(OgnlContext context) static ObjectOgnl.parseExpression(String expression) Parses the given OGNL expression and returns a tree representation of the expression that can be used byOgnlstatic methods.static booleanOgnlRuntime.setFieldValue(OgnlContext context, Object target, String propertyName, Object value) static voidOgnlRuntime.setIndexedProperty(OgnlContext context, Object source, String name, Object index, Object value) static booleanOgnlRuntime.setMethodValue(OgnlContext context, Object target, String propertyName, Object value) static booleanOgnlRuntime.setMethodValue(OgnlContext context, Object target, String propertyName, Object value, boolean checkAccessAndExistence) ObjectPropertyAccessor.setPossibleProperty(Map context, Object target, String name, Object value) Returns OgnlRuntime.NotFound if the property does not exist.voidArrayPropertyAccessor.setProperty(Map context, Object target, Object name, Object value) voidEnumerationPropertyAccessor.setProperty(Map context, Object target, Object name, Object value) voidIteratorPropertyAccessor.setProperty(Map context, Object target, Object name, Object value) voidListPropertyAccessor.setProperty(Map context, Object target, Object name, Object value) voidMapPropertyAccessor.setProperty(Map context, Object target, Object name, Object value) voidObjectPropertyAccessor.setProperty(Map context, Object target, Object oname, Object value) static voidOgnlRuntime.setProperty(OgnlContext context, Object target, Object name, Object value) voidPropertyAccessor.setProperty(Map context, Object target, Object name, Object value) Sets the value of the property of the given name in the given target object.voidNode.setValue(OgnlContext context, Object target, Object value) Sets the given value in the given target as appropriate for this node within the given context.static voidEvaluates the given OGNL expression tree to insert a value into the object graph rooted at the given root object.static voidEvaluates the given OGNL expression tree to insert a value into the object graph rooted at the given root object.static voidConvenience method that combines calls toparseExpressionandsetValue.static voidEvaluates the given OGNL expression to insert a value into the object graph rooted at the given root object given the context.final voidSimpleNode.setValue(OgnlContext context, Object target, Object value) protected voidASTAnd.setValueBody(OgnlContext context, Object target, Object value) protected voidASTChain.setValueBody(OgnlContext context, Object target, Object value) protected voidASTOr.setValueBody(OgnlContext context, Object target, Object value) protected voidASTProperty.setValueBody(OgnlContext context, Object target, Object value) protected voidASTRootVarRef.setValueBody(OgnlContext context, Object target, Object value) protected voidASTSequence.setValueBody(OgnlContext context, Object target, Object value) protected voidASTThisVarRef.setValueBody(OgnlContext context, Object target, Object value) protected voidASTVarRef.setValueBody(OgnlContext context, Object target, Object value) protected voidSimpleNode.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.
OgnlRuntime.callMethod(OgnlContext, Object, String, Object[])instead.