com.adobe.icc.ddg.api
Interface DataModuleResolver

All Known Implementing Classes:
DataModuleResolverImpl

public interface DataModuleResolver

Resolves the given data module.


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

Method Detail

resolveDataModule

java.util.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

java.util.List resolveDataModule(java.lang.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

java.lang.String resolveExpressions(java.util.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

resolveAllExpressions

java.util.List resolveAllExpressions(java.util.List expressions,
                                     ContextData contextData)
                                     throws ICCException
Resolves the given list of expression. All the expressions which evaluate to 'true' would be returned as the resolved expressions, 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 expressions that resolves to true.
Throws:
ICCException


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