ognl

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Scripting » OGNL » ognl 
ognl
OGNL Overview

OGNL stands for Object-Graph Navigation Language; it is an expression language for getting and setting properties of Java objects. You use the same expression for both getting and setting the value of a property.

OGNL started out as a way to set up associations between UI components and controllers using property names. As the desire for more complicated associations grew, Drew Davidson created what he called KVCL, for Key-Value Coding Language, egged on by Luke Blanshard. Luke then reimplemented the language using ANTLR, came up with the new name, and, egged on by Drew, filled it out to its current state.

We pronounce OGNL as a word, like the last syllables of a drunken pronunciation of "orthogonal" or like "ogg-null".

Java Source File NameTypeComment
ArrayElementsAccessor.javaClass Implementation of ElementsAccessor that returns an iterator over a Java array.
ArrayPropertyAccessor.javaClass Implementation of PropertyAccessor that uses numbers and dynamic subscripts as properties to index into Java arrays.
ASTAdd.javaClass
ASTAnd.javaClass
ASTAssign.javaClass
ASTBitAnd.javaClass
ASTBitNegate.javaClass
ASTBitOr.javaClass
ASTChain.javaClass
ASTConst.javaClass
ASTCtor.javaClass
ASTDivide.javaClass
ASTEq.javaClass
ASTEval.javaClass
ASTGreater.javaClass
ASTGreaterEq.javaClass
ASTIn.javaClass
ASTInstanceof.javaClass
ASTKeyValue.javaClass
ASTLess.javaClass
ASTLessEq.javaClass
ASTList.javaClass
ASTMap.javaClass
ASTMethod.javaClass
ASTMultiply.javaClass
ASTNegate.javaClass
ASTNot.javaClass
ASTNotEq.javaClass
ASTNotIn.javaClass
ASTOr.javaClass
ASTProject.javaClass
ASTProperty.javaClass
ASTRemainder.javaClass
ASTRootVarRef.javaClass
ASTSelect.javaClass
ASTSelectFirst.javaClass
ASTSelectLast.javaClass
ASTSequence.javaClass
ASTShiftLeft.javaClass
ASTShiftRight.javaClass
ASTStaticField.javaClass
ASTStaticMethod.javaClass
ASTSubtract.javaClass
ASTTest.javaClass
ASTThisVarRef.javaClass
ASTUnsignedShiftRight.javaClass
ASTVarRef.javaClass
ASTXor.javaClass
ClassResolver.javaInterface This interface defines an object that will resolve a class from a string and a ognl context table.
CollectionElementsAccessor.javaClass Implementation of ElementsAccessor that returns a collection's iterator.
DefaultClassResolver.javaClass Default class resolution.
DefaultMemberAccess.javaClass This class provides methods for setting up and restoring access in a Field.
DefaultTypeConverter.javaClass Default type conversion.
DynamicSubscript.javaClass This class has predefined instances that stand for OGNL's special "dynamic subscripts" for getting at the first, middle, or last elements of a list.
ElementsAccessor.javaInterface This interface defines a method for getting the "elements" of an object, which means any objects that naturally would be considered to be contained by the object.
EnumerationElementsAccessor.javaClass Implementation of the ElementsAccessor interface for Enumerations, which returns an iterator that passes its calls through to the target Enumeration.
EnumerationIterator.javaClass
EnumerationPropertyAccessor.javaClass Implementation of PropertyAccessor that provides "property" reference to "nextElement" (aliases to "next" also) and "hasMoreElements" (also aliased to "hasNext").
Evaluation.javaClass An Evaluation is and object that holds a node being evaluated and the source from which that node will take extract its value.
EvaluationPool.javaClass
ExpressionNode.javaClass
ExpressionSyntaxException.javaClass Exception thrown if a malformed OGNL expression is encountered.
InappropriateExpressionException.javaClass 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.
IntHashMap.javaClass A Map that uses ints as the keys.
IteratorElementsAccessor.javaClass Implementation of the ElementsAccessor interface for Iterators, which simply returns the target iterator itself.
IteratorEnumeration.javaClass
IteratorPropertyAccessor.javaClass Implementation of PropertyAccessor that provides "property" reference to "next" and "hasNext".
JavaCharStream.javaClass An implementation of interface CharStream, where the stream is assumed to contain only ASCII characters (with java-like unicode escape processing).
JJTOgnlParserState.javaClass
ListPropertyAccessor.javaClass Implementation of PropertyAccessor that uses numbers and dynamic subscripts as properties to index into Lists.
MapElementsAccessor.javaClass Implementation of ElementsAccessor that returns an iterator over the map's values.
MapPropertyAccessor.javaClass Implementation of PropertyAccessor that sets and gets properties by storing and looking up values in Maps.
MemberAccess.javaInterface This interface provides a hook for preparing for accessing members of objects.
MethodAccessor.javaInterface This interface defines methods for callinig methods in a target object.
MethodFailedException.javaClass Exception thrown if a method or constructor call fails.
Node.javaInterface JJTree interface for AST nodes, as modified to handle the OGNL operations getValue and setValue.
NoSuchPropertyException.javaClass Exception thrown if a property is attempted to be extracted from an object that does not have such a property.
NullHandler.javaInterface Interface for handling null results from Chains.
NumberElementsAccessor.javaClass Implementation of ElementsAccessor that returns an iterator over integers from 0 up to the given target.
NumericTypes.javaInterface This interface defines some useful constants for describing the various possible numeric types of OGNL.
ObjectArrayPool.javaClass
ObjectElementsAccessor.javaClass Implementation of ElementsAccessor that returns a single-element iterator, containing the original target object.
ObjectIndexedPropertyDescriptor.javaClass

PropertyDescriptor subclass that describes an indexed set of read/write methods to get a property.

ObjectMethodAccessor.javaClass Implementation of PropertyAccessor that uses reflection on the target object's class to find a field or a pair of set/get methods with the given property name.
ObjectNullHandler.javaClass Implementation of NullHandler that returns null in all cases, so that NullPointerException will be thrown by the caller.
ObjectPropertyAccessor.javaClass Implementation of PropertyAccessor that uses reflection on the target object's class to find a field or a pair of set/get methods with the given property name.
Ognl.javaClass

This class provides static methods for parsing and interpreting OGNL expressions.

The simplest use of the Ognl class is to get the value of an expression from an object, without extra context or pre-parsing.

 import ognl.Ognl;
 import ognl.OgnlException;
 try {
 result = Ognl.getValue(expression, root);
 } catch (OgnlException ex) {
 // Report error or recover
 }
 

This will parse the expression given and evaluate it against the root object given, returning the result.

OgnlContext.javaClass
OgnlException.javaClass Superclass for OGNL exceptions, incorporating an optional encapsulated exception.
OgnlInvokePermission.javaClass BasicPermission subclass that defines a permission token for invoking methods within OGNL.
OgnlOps.javaClass This is an abstract class with static methods that define the operations of OGNL.
OgnlParser.javaClass OgnlParser is a JavaCC parser class; it translates OGNL expressions into abstract syntax trees (ASTs) that can then be interpreted by the getValue and setValue methods.
OgnlParserConstants.javaInterface
OgnlParserTokenManager.javaClass
OgnlParserTreeConstants.javaInterface
OgnlRuntime.javaClass This is an abstract class with static methods that define runtime caching information in OGNL.
ParseException.javaClass This exception is thrown when parse errors are encountered.
PropertyAccessor.javaInterface This interface defines methods for setting and getting a property from a target object. A "property" in this case is a named data value that takes the generic form of an Object---the same definition as is used by beans.
SetPropertyAccessor.javaClass Implementation of PropertyAccessor that uses numbers and dynamic subscripts as properties to index into Lists.
SimpleNode.javaClass
Token.javaClass Describes the input token stream.
TokenMgrError.javaClass
TypeConverter.javaInterface Interface for accessing the type conversion facilities within a context.
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.