rewrite-api-el 2.0.0.Final

org.ocpsoft.rewrite.el
Class El

java.lang.Object
  extended by org.ocpsoft.rewrite.el.El
All Implemented Interfaces:
Binding, Retrieval, Submission
Direct Known Subclasses:
El.ElMethod, El.ElProperties, El.ElProperty

public abstract class El
extends Object
implements Binding, Retrieval

Responsible for binding to EL expressions.

Author:
Lincoln Baxter, III

Nested Class Summary
static class El.ElMethod
          Handle EL Method Invocation and Value Extraction
static class El.ElProperties
           
static class El.ElProperty
          Handle EL Property Injection and Extraction
 
Constructor Summary
El()
           
 
Method Summary
static El method(String retrieve, String submit)
          Create a new EL Method binding using distinct expressions to submit and retrieve values.
static El properties(Field submit, Field retrieve)
          Create a new EL Value binding using a single expression to submit and retrieve values.
static El properties(String submit, String retrieve)
          Create a new EL Value binding using a single expression to submit and retrieve values.
static El property(Field field)
          Create a new EL Value binding using a single expression to submit and retrieve values.
static El property(String expression)
          Create a new EL Value binding using a single expression to submit and retrieve values.
static El retrievalMethod(Method method)
          Create a new EL Method binding to retrieve values.
static El retrievalMethod(String expression)
          Create a new EL Method binding to retrieve values.
static El submissionMethod(String expression)
          Create a new EL Method binding to submit values.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.ocpsoft.rewrite.bind.Binding
supportsRetrieval, supportsSubmission
 
Methods inherited from interface org.ocpsoft.rewrite.bind.Retrieval
retrieve
 
Methods inherited from interface org.ocpsoft.rewrite.bind.Submission
submit
 

Constructor Detail

El

public El()
Method Detail

method

public static El method(String retrieve,
                        String submit)
Create a new EL Method binding using distinct expressions to submit and retrieve values. The method intended for use in submission must accept a single parameter of the expected type.


retrievalMethod

public static El retrievalMethod(String expression)
Create a new EL Method binding to retrieve values. The method must return a value of the expected type.


retrievalMethod

public static El retrievalMethod(Method method)
Create a new EL Method binding to retrieve values. This method allows the caller to supply El.ElMethod instance to refer to the method that should be invoked.


submissionMethod

public static El submissionMethod(String expression)
Create a new EL Method binding to submit values. The method must accept a single parameter of the expected type.


property

public static El property(String expression)
Create a new EL Value binding using a single expression to submit and retrieve values. The specified property must either be public, or have a publicly defined getter/setter.


property

public static El property(Field field)
Create a new EL Value binding using a single expression to submit and retrieve values. The specified property must either be public, or have a publicly defined getter/setter. Instead of an EL expression this method expects a Field argument. The EL expression will be automatically created at runtime.


properties

public static El properties(String submit,
                            String retrieve)
Create a new EL Value binding using a single expression to submit and retrieve values. The specified property must either be public, or have a publicly defined getter/setter.


properties

public static El properties(Field submit,
                            Field retrieve)
Create a new EL Value binding using a single expression to submit and retrieve values. The specified property must either be public, or have a publicly defined getter/setter. Instead of an EL expression this method expects a Field argument. The EL expression will be automatically created at runtime.


rewrite-api-el 2.0.0.Final

Copyright © 2013 OCPsoft. All Rights Reserved.