public interface

SourceLookup

com.microstrategy.web.transform.SourceLookup

Class Overview

The SourceLookup interface assists StyleCatalog to resolve FormalParameter with dynamic sources such as preferences etc.

Summary

Constants
String SOURCE_CONSTANT A constant key used to look up a constant SourceLookup.
String SOURCE_PREFERENCE A constant key used to look up a preference SourceLookup.
Public Methods
abstract Object getValue(String source, String key, int paramType, StyleRequestContext context)
Returns the value from the specified source.
abstract boolean hasValue(String source, String key, int paramType, StyleRequestContext context)
Returns whether the specified source contains a value for the specified key and parameter type.

Constants

public static final String SOURCE_CONSTANT

A constant key used to look up a constant SourceLookup.

Constant Value: "constant"

public static final String SOURCE_PREFERENCE

A constant key used to look up a preference SourceLookup.

Constant Value: "preference"

Public Methods

public abstract Object getValue (String source, String key, int paramType, StyleRequestContext context)

Returns the value from the specified source.

Parameters
source the source name of a SourceLookup object
key the key used by the SourceLookup to resolve the dynamic value
paramType the parameter type defined in FormalParameter
context the StyleRequestContext object to resolve dynamic values.
Returns
  • the value from the specified source.
Throws
WebTransformException thrown if there is any error when looking up the dynamic value

public abstract boolean hasValue (String source, String key, int paramType, StyleRequestContext context)

Returns whether the specified source contains a value for the specified key and parameter type.

Parameters
source the source name of a SourceLookup object
key the key used by the SourceLookup to resolve the dynamic value
paramType the parameter type defined in FormalParameter
context the StyleRequestContext object to resolve dynamic values.
Returns
  • True if the is a value for the specified key and type.