javax.datamining.task
Interface ExportTaskFactory

All Superinterfaces:
Factory

public interface ExportTaskFactory
extends Factory

A factory class that creates instances of ExportTask.

Author:
JSR-73 Java Data Mining Expert Group
See Also:
Factory

Method Summary
 ExportTask create()
          Creates an empty instance of ExportTask.
 boolean supportsCapability(NamedObject objectType, ImportExportFormat exportFormat)
          Returns true if the specified named object type can be exported into the specified format.
 

Method Detail

create

public ExportTask create()
                  throws JDMException
Creates an empty instance of ExportTask.

Returns:
ExportTask
Throws:
JDMException

supportsCapability

public boolean supportsCapability(NamedObject objectType,
                                  ImportExportFormat exportFormat)
                           throws JDMException
Returns true if the specified named object type can be exported into the specified format. Returns false otherwise. If either parameter is null, this method returns true if the non-null parameter is supported for export.

Any implementation must support export of models in its native format. Therefore, this method returns true for model and the system default format.

Parameters:
objectType - The type of the object.
exportFormat - The capability of export task.
Returns:
boolean
Throws:
JDMException