net.datacrow.filerenamer
Class FilePatterns

java.lang.Object
  extended by net.datacrow.filerenamer.FilePatterns

public class FilePatterns
extends java.lang.Object

Holder of saved file patterns.

Author:
Robert Jan van der Waals

Constructor Summary
FilePatterns()
           
 
Method Summary
static void add(FilePattern fp)
          Adds a file pattern to this collection.
static void delete(FilePattern fp)
          Removes a file pattern.
static boolean exists(FilePattern fp)
          Checks if a file pattern is part of this collection.
static java.util.Collection<FilePattern> get(int module)
          Retrieves all file patterns for the specified module.
static void load()
          Loads the file patterns from file (XML format).
static void save()
          Save all file patterns to disk (XML format).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FilePatterns

public FilePatterns()
Method Detail

load

public static void load()
Loads the file patterns from file (XML format).


exists

public static boolean exists(FilePattern fp)
Checks if a file pattern is part of this collection.

Parameters:
fp -

save

public static void save()
Save all file patterns to disk (XML format).


delete

public static void delete(FilePattern fp)
Removes a file pattern.

Parameters:
fp -

get

public static java.util.Collection<FilePattern> get(int module)
Retrieves all file patterns for the specified module.

Parameters:
module -
Returns:
An empty or fille collection.

add

public static void add(FilePattern fp)
Adds a file pattern to this collection.

Parameters:
fp -