com.microstrategy.web.transform.SourceLookup |
The SourceLookup
interface assists StyleCatalog
to
resolve FormalParameter
with dynamic sources such as preferences
etc.
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.
|
A constant key used to look up a constant SourceLookup.
A constant key used to look up a preference SourceLookup.
Returns the value from the specified source.
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. |
WebTransformException | thrown if there is any error when looking up the dynamic value |
---|
Returns whether the specified source contains a value for the specified key and parameter type.
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. |
True
if the is a value for the specified key and type.