com.sas.dataselectors.export
Class ExportSelectorAdapterFactory

com.sas.dataselectors.export.ExportSelectorAdapterFactory

public class ExportSelectorAdapterFactory

This class is a factory of ExportSelectorInterface and OLAPExportSelectorInterface instances.

Since:
3.1

Constructor Summary
ExportSelectorAdapterFactory()
           
 
Method Summary
static ExportSelectorInterface getAdapter(java.lang.Object model)
          Returns an instance of an ExportSelectorInterface depending on the type of the received model.
static OLAPExportSelectorInterface getOLAPAdapter(java.lang.Object model)
          Returns an instance of OLAPExportSelectorInterface.
static ExportSelectorInterface getRelationalAdapter(java.lang.Object model)
          Returns an instance of ExportSelectorInterface.
 

Constructor Detail

ExportSelectorAdapterFactory

public ExportSelectorAdapterFactory()
Method Detail

getRelationalAdapter

public static ExportSelectorInterface getRelationalAdapter(java.lang.Object model)
Returns an instance of ExportSelectorInterface.

Parameters:
model - the model containing the data to be exported.
Returns:
an instance of ExportSelectorInterface.

getOLAPAdapter

public static OLAPExportSelectorInterface getOLAPAdapter(java.lang.Object model)
Returns an instance of OLAPExportSelectorInterface.

Parameters:
model - the model containing the data to be exported.
Returns:
an instance of OLAPExportSelectorInterface.

getAdapter

public static ExportSelectorInterface getAdapter(java.lang.Object model)
Returns an instance of an ExportSelectorInterface depending on the type of the received model.

Parameters:
model - the model containing the data to be exported. It can be either a TableModel or a OLAPDataSetInterface.
Returns:
an instance of ExportSelectorInterface. An ExportSelector adapter to non multidimensional (relational) data is returned if the model is a TableModel. An ExportSelector adapter to multidimensional data is returned if the model is a OLAPDataSetInterface. Null is returned if the model is null of if it's neither a TableModel nor a OLAPDataSetInterface.
See Also:
BaseExportSelectorAdapter, OLAPExportSelectorAdapter



Copyright © 2009 SAS Institute Inc. All Rights Reserved.