|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.patterncoder.source.XMLSourceHandler
public class XMLSourceHandler
Deals with the directories required by the extension. Any objects requireing directory information, should declare an instance of this class.
Method Summary | |
---|---|
java.io.File |
getClassTemplate(java.lang.String template)
Returns the template file of a given template name. |
java.io.File |
getImage(java.lang.String image)
Returns the image file of the associated image name. |
static XMLSourceHandler |
getInstance()
Controls the creation of the singleton object. |
java.util.ArrayList<java.lang.String> |
getSourceFiles()
Returns an ArrayList of File objects. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static XMLSourceHandler getInstance()
public java.io.File getImage(java.lang.String image) throws java.io.FileNotFoundException
getImage
in interface PatternSourceManager
image
- the name of the image required.
java.io.FileNotFoundException
- thrown if the image file cannot be found.public java.util.ArrayList<java.lang.String> getSourceFiles() throws java.io.FileNotFoundException, java.lang.Exception
getSourceFiles
in interface PatternSourceManager
java.lang.Exception
- thrown if a general exception occurs.
java.io.FileNotFoundException
- thrown if the source file can not be found.public java.io.File getClassTemplate(java.lang.String template) throws java.io.FileNotFoundException
getClassTemplate
in interface PatternSourceManager
template
- the name of the template file.
java.io.FileNotFoundException
- thrown if the template file can not be found.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |