org.apache.tapestry5.internal

## Class SingleKeySymbolProvider

- java.lang.Object
- - org.apache.tapestry5.internal.SingleKeySymbolProvider

- All Implemented Interfaces:
    SymbolProvider

      public class SingleKeySymbolProvider
      extends java.lang.Object
      implements SymbolProvider

  Implementation of `SymbolProvider` that only supports a single key/value pair.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `SingleKeySymbolProvider(java.lang.String symbolName, java.lang.String value)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `java.lang.String` | `valueForSymbol(java.lang.String symbolName)` Returns the value for the symbol, or null if this provider can not provide a value.

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

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

- - ### Constructor Detail

    - #### SingleKeySymbolProvider

          public SingleKeySymbolProvider(java.lang.String symbolName,
                                         java.lang.String value)

  - ### Method Detail

    - #### valueForSymbol

          public java.lang.String valueForSymbol(java.lang.String symbolName)

      Description copied from interface: `SymbolProvider`
      Returns the value for the symbol, or null if this provider can not provide a value. The value itself may contain symbols that will be recursively expanded.
      Specified by:
        `valueForSymbol` in interface `SymbolProvider`
      Returns:
        the value or null

${project.version} - Copyright © 2003-2015 The Apache Software Foundation.