com.adobe.icc.ddg
Class DataModuleResolverImpl

java.lang.Object
  extended by com.adobe.icc.ddg.DataModuleResolverImpl
All Implemented Interfaces:
DataModuleResolver

public class DataModuleResolverImpl
extends java.lang.Object
implements DataModuleResolver

This class contains methods to resolves all types of Data Modules.


Field Summary
static java.lang.Double MM_TO_POINT_FACTOR
           
 
Constructor Summary
DataModuleResolverImpl()
           
 
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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MM_TO_POINT_FACTOR

public static final java.lang.Double MM_TO_POINT_FACTOR
Constructor Detail

DataModuleResolverImpl

public DataModuleResolverImpl()
Method Detail

resolveDataModule

public 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.

Specified by:
resolveDataModule in interface DataModuleResolver
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

resolveDataModule

public 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.

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

resolveExpressions

public 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).

Specified by:
resolveExpressions in interface DataModuleResolver
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

public 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).

Specified by:
resolveAllExpressions in interface DataModuleResolver
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]