Class El

java.lang.Object
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
  • Constructor Details

    • El

      public El()
  • Method Details

    • 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 Method instance to refer to the method that should be invoked.
    • retrievalMethod

      public static El retrievalMethod(Class<?> clazz, String methodName)
      Create a new EL Method binding to retrieve values. This method allows the caller to supply the Class representing the type of the target object and the method name 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.
    • property

      public static El property(Class<?> clazz, String fieldName)
      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 the Class representing the type of the target object and the field name. 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.