com.adobe.icc.ddg.api
Interface DataModuleResolver


public interface DataModuleResolver


Method Summary
 List resolveDataModule(DataModule dataModule, ContextData contextData)
          This method will resolve all types of Data Modules and will return list of Content objects.
 List resolveDataModule(String dataModuleID, ContextData contextData)
          This method will resolve all types of Data Modules and will return list of Content objects.
 String resolveExpressions(List expressions, ContextData contextData)
          Resolves the given list of expression.
 

Method Detail

resolveDataModule

List resolveDataModule(DataModule dataModule,
                       ContextData contextData)
                       throws ICCException
This method will resolve all types of Data Modules and will return list of Content objects. Empty list is returned even when a null data module is passed. NOTE: This will not work from flex clients (since they do not have the content bytes for a module). Such clients should use the other API, that accepts a module ID for resolving the content of that data module.

Parameters:
dataModule - DataModule whose content is to be resolved/fetched.
contextData - ContextData to resolve variables
Returns:
List of Content objects
Throws:
ICCException

resolveDataModule

List resolveDataModule(String dataModuleID,
                       ContextData contextData)
                       throws ICCException
This method will resolve all types of Data Modules and will return list of Content objects. Empty list is returned even when a null data module is passed.

Parameters:
dataModuleID - ID of the DataModule whose content is to be resolved/fetched.
contextData - ContextData to resolve variables
Returns:
List of Content objects
Throws:
ICCException

resolveExpressions

String resolveExpressions(List expressions,
                          ContextData contextData)
                          throws ICCException
Resolves the given list of expression. the expression which evaluate to 'true' would be returned as the resolved expression, using the given Context Data (which would be used to fetch values of variables within the expression).

Parameters:
expressions - The list of expressions to be resolved.
contextData - Context data to help with expression resolution.
Returns:
The expression string that resolves to true.
Throws:
ICCException


[an error occurred while processing this directive] [an error occurred while processing this directive]