Package com.day.cq.reporting
Interface ValueResolver
-
public interface ValueResolver
This interface must be implemented by classes that are used for resolving cell values.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
configure(Node configNode)
Configures the value resolver from the specified data node.CellValue
resolve(Session session, CellValue value, Context context)
Resolves the specified value.
-
-
-
Method Detail
-
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 benull
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 resolvecontext
- 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
-
-