javax.datamining.task
Interface ImportTaskFactory

All Superinterfaces:
Factory

public interface ImportTaskFactory
extends Factory

A factory class that creates instances of ImportTask.

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

Method Summary
 ImportTask create()
          Creates an empty instance of ImportTask.
 ImportTask create(java.lang.String uri, boolean populateSummary)
          Creates an instance of ImportTask with the import data pointed to by the given URI.
 boolean supportsCapability(NamedObject objectType, ImportExportFormat exportFormat)
          Returns true if the specified named object type can be imported in the specified format.
 

Method Detail

create

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

Returns:
ImportTask
Throws:
JDMException

create

public ImportTask create(java.lang.String uri,
                         boolean populateSummary)
                  throws JDMException
Creates an instance of ImportTask with the import data pointed to by the given URI. The summary of the import data is created if the flag populateSummary is true.

Parameters:
uri -
populateSummary -
Returns:
ImportTask
Throws:
JDMException

supportsCapability

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

Any implementation must support import 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 import task.
Returns:
boolean
Throws:
JDMException