ELContext (Apache Tomcat 7.0.104 API Documentation)

javax.el

## Class ELContext

- java.lang.Object
- - javax.el.ELContext

- Direct Known Subclasses:
    ELContextImpl, ELContextWrapper, EvaluationContext

      public abstract class ELContext
      extends Object

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ELContext()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `Object` | `getContext(Class key)` Obtain the context object for the given key.
    `abstract ELResolver` | `getELResolver()`
    `abstract FunctionMapper` | `getFunctionMapper()`
    `Locale` | `getLocale()`
    `abstract VariableMapper` | `getVariableMapper()`
    `boolean` | `isPropertyResolved()`
    `void` | `putContext(Class key, Object contextObject)` Add an object to this EL context under the given key.
    `void` | `setLocale(Locale locale)`
    `void` | `setPropertyResolved(boolean resolved)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### ELContext

          public ELContext()

  - ### Method Detail

    - #### setPropertyResolved

          public void setPropertyResolved(boolean resolved)

    - #### isPropertyResolved

          public boolean isPropertyResolved()

    - #### putContext

          public void putContext(Class key,
                        Object contextObject)

      Add an object to this EL context under the given key.
      Parameters:
        `key` - The key under which to store the object
        `contextObject` - The object to add
      Throws:
        `NullPointerException` - If the supplied key or context is `null`

    - #### getContext

          public Object getContext(Class key)

      Obtain the context object for the given key.
      Parameters:
        `key` - The key of the required context object
      Returns:
        The value of the context object associated with the given key
      Throws:
        `NullPointerException` - If the supplied key is `null`

    - #### getELResolver

          public abstract ELResolver getELResolver()

    - #### getFunctionMapper

          public abstract FunctionMapper getFunctionMapper()

    - #### getLocale

          public Locale getLocale()

    - #### setLocale

          public void setLocale(Locale locale)

    - #### getVariableMapper

          public abstract VariableMapper getVariableMapper()

Copyright © 2000-2020 Apache Software Foundation. All Rights Reserved.