Interface ValueResolver


public interface ValueResolver
This interface must be implemented by classes that are used for resolving cell values.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    configure(Node configNode)
    Configures the value resolver from the specified data node.
    resolve(Session session, CellValue value, Context context)
    Resolves the specified value.
  • Method Details

    • configure

      void configure(Node configNode) throws RepositoryException
      Configures the value resolver from the specified data node.
      Parameters:
      configNode - The node the value resolver is configured from; may be null if no explicit configuration is available (resolver should initialize itself with default values in that case)
      Throws:
      RepositoryException - if configuring the resolver has failed
    • resolve

      CellValue resolve(Session session, CellValue value, Context context) throws RepositoryException
      Resolves the specified value.
      Parameters:
      session - The session to be used for resolving the value (managed by caller)
      value - The value to resolve
      context - The context the report is configured to be used from
      Returns:
      The resolved value
      Throws:
      RepositoryException - if the value could not be resolved due to a repository problem