net.datacrow.fileimporters
Class MusicAlbumImporter

java.lang.Object
  extended by net.datacrow.fileimporters.FileImporter
      extended by net.datacrow.fileimporters.MusicAlbumImporter
All Implemented Interfaces:
ISynchronizerClient

public class MusicAlbumImporter
extends FileImporter

Music file importer. Creates music album for music file collections.

Author:
Robert Jan van der Waals

Field Summary
protected  java.util.Collection<DcObject> albums
           
 
Constructor Summary
MusicAlbumImporter()
           
 
Method Summary
protected  void afterImport()
          Called after finishing the whole parsing process.
protected  void afterParse(DcObject dco)
          Called after parsing a single file.
 void beforeParse()
          To be executed before a file is parsed.
 boolean canImportArt()
          Indicates if local art can be used.
 java.lang.String[] getDefaultSupportedFileTypes()
           
 DcObject parse(java.lang.String filename, int directoryUsage)
          Parses a file and extracts its information.
 void showUI()
          Opens the import dialog.
 
Methods inherited from class net.datacrow.fileimporters.FileImporter
addMessage, allowDirectoryRegistration, allowReparsing, enableActions, getClient, getContainer, getItemPickMode, getModule, getName, getRegion, getSearchMode, getServer, getSupportedFileTypes, initialize, initProgressBar, isCancelled, isReparseFiles, parse, parse, setClient, setImages, updateProgressBar, useOnlineService
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

albums

protected final java.util.Collection<DcObject> albums
Constructor Detail

MusicAlbumImporter

public MusicAlbumImporter()
Method Detail

getDefaultSupportedFileTypes

public java.lang.String[] getDefaultSupportedFileTypes()
Specified by:
getDefaultSupportedFileTypes in class FileImporter

beforeParse

public void beforeParse()
Description copied from class: FileImporter
To be executed before a file is parsed.

Overrides:
beforeParse in class FileImporter

showUI

public void showUI()
Opens the import dialog.

Overrides:
showUI in class FileImporter
See Also:
MusicFileImportDialog

canImportArt

public boolean canImportArt()
Description copied from class: FileImporter
Indicates if local art can be used.

Overrides:
canImportArt in class FileImporter
Returns:
false

afterParse

protected void afterParse(DcObject dco)
Description copied from class: FileImporter
Called after parsing a single file.

Overrides:
afterParse in class FileImporter

afterImport

protected void afterImport()
Description copied from class: FileImporter
Called after finishing the whole parsing process.

Overrides:
afterImport in class FileImporter

parse

public DcObject parse(java.lang.String filename,
                      int directoryUsage)
Description copied from class: FileImporter
Parses a file and extracts its information.

Specified by:
parse in class FileImporter
Parameters:
filename - The file to check.
directoryUsage - A free interpretation of the directory usage. Depends on a specific implementation.