Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

ognl.webobjects.* (9)

ognl: Javadoc index of package ognl.


Package Samples:

ognl.webobjects

Classes:

ObjectIndexedPropertyDescriptor: PropertyDescriptor subclass that describes an indexed set of read/write methods to get a property. Unlike IndexedPropertyDescriptor this allows the "key" to be an arbitrary object rather than just an int. Consequently it does not have a "readMethod" or "writeMethod" because it only expects a pattern like: public void set Property ( KeyType , ValueType ); public ValueType get Property ( KeyType ); and does not require the methods that access it as an array. OGNL can get away with this without losing functionality because if the object does expose the properties they are most probably in a Map and ...
Ognl: 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. If there is an error in the expression, such as the property is not found, the exception is encapsulated into an OgnlException . Other more ...
PropertyAccessor: 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. But the operational semantics of the term will vary by implementation of this interface: a bean-style implementation will get and set properties as beans do, by reflection on the target object's class, but other implementations are possible, such as one that uses the property name as a key into a map. An implementation of this interface will often require that its target objects ...
ElementsAccessor: 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. So for a collection, you would expect this method to return all the objects in that collection; while for an ordinary object you would expect this method to return just that object. An implementation of this interface will often require that its target objects all be of some particular type. For example, the MapElementsAccessor class requires that its targets all implement the Map interface.
OgnlInvokePermission: BasicPermission subclass that defines a permission token for invoking methods within OGNL. This does not override any methods (except constructors) and does not implement actions. It is similar in spirit to the java.lang.reflect.ReflectPermission class in that it guards access to methods.
IntHashMap: A Map that uses ints as the keys. Use just like any java.util.Map, except that the keys must be ints. This is much faster than creating a new Integer for each access. For non-Map access (faster) use the put(int, Object) method. This class implements Map for convenience, but this is not the most efficient usage.
DefaultMemberAccess: This class provides methods for setting up and restoring access in a Field. Java 2 provides access utilities for setting and getting fields that are non-public. This object provides coarse-grained access controls to allow access to private, protected and package protected members. This will apply to all classes and members.
DynamicSubscript: 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. In OGNL expressions, these subscripts look like special kinds of array indexes: [^] means the first element, [$] means the last, [|] means the middle, and [*] means the whole list.
Node: JJTree interface for AST nodes, as modified to handle the OGNL operations getValue and setValue. JJTree's original comment: All AST nodes must implement this interface. It provides basic machinery for constructing the parent and child relationships between nodes.
Evaluation: An Evaluation is and object that holds a node being evaluated and the source from which that node will take extract its value. It refers to child evaluations that occur as a result of the nodes' evaluation.
DefaultClassResolver: Default class resolution. Uses Class.forName() to look up classes by name. It also looks in the "java.lang" package if the class named does not give a package specifier, allowing easier usage of these classes.
MethodAccessor: This interface defines methods for callinig methods in a target object. Methods are broken up into static and instance methods for convenience. indexes into the target object, which must be an array.
MemberAccess: This interface provides a hook for preparing for accessing members of objects. The Java2 version of this method can allow access to otherwise inaccessable members, such as private fields.
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 .
EnumerationPropertyAccessor: Implementation of PropertyAccessor that provides "property" reference to "nextElement" (aliases to "next" also) and "hasMoreElements" (also aliased to "hasNext").
ObjectMethodAccessor: 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.
ObjectPropertyAccessor: 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.
EnumerationElementsAccessor: Implementation of the ElementsAccessor interface for Enumerations, which returns an iterator that passes its calls through to the target Enumeration.
NullHandler: Interface for handling null results from Chains. Object has the opportunity to substitute an object for the null and continue.
ObjectNullHandler: Implementation of NullHandler that returns null in all cases, so that NullPointerException will be thrown by the caller.
ArrayPropertyAccessor: Implementation of PropertyAccessor that uses numbers and dynamic subscripts as properties to index into Java arrays.
ObjectElementsAccessor: Implementation of ElementsAccessor that returns a single-element iterator, containing the original target object.
IteratorElementsAccessor: Implementation of the ElementsAccessor interface for Iterators, which simply returns the target iterator itself.
ListPropertyAccessor: Implementation of PropertyAccessor that uses numbers and dynamic subscripts as properties to index into Lists.
SetPropertyAccessor: Implementation of PropertyAccessor that uses numbers and dynamic subscripts as properties to index into Lists.

Home | Contact Us | Privacy Policy | Terms of Service