org.patterncoder.source
Interface PatternSourceManager

All Known Implementing Classes:
XMLSourceHandler

public interface PatternSourceManager

Classes implementing this interface deal with providing the location of pattern files.


Method Summary
 java.io.File getClassTemplate(java.lang.String template)
          Returns the template file specified by the name of the template.
 java.io.File getImage(java.lang.String image)
          Returns a pattern image file specified by the name of the image.
 java.util.ArrayList<java.lang.String> getSourceFiles()
          Returns an ArrayList of Pattern source files.
 

Method Detail

getImage

java.io.File getImage(java.lang.String image)
                      throws java.io.FileNotFoundException
Returns a pattern image file specified by the name of the image.

Parameters:
image - the image required.
Returns:
the image file.
Throws:
java.io.FileNotFoundException - thrown if directory not found.

getSourceFiles

java.util.ArrayList<java.lang.String> getSourceFiles()
                                                     throws java.io.FileNotFoundException,
                                                            java.lang.Exception
Returns an ArrayList of Pattern source files. The ArrayList contains objects of type String.

Returns:
the list of pattern source files.
Throws:
java.io.FileNotFoundException - thrown if directory not found.
java.lang.Exception

getClassTemplate

java.io.File getClassTemplate(java.lang.String template)
                              throws java.io.FileNotFoundException
Returns the template file specified by the name of the template.

Parameters:
template - the template required.
Returns:
the template file.
Throws:
java.io.FileNotFoundException - thrown if directory not found.