|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.sf.javadocbuilder.templatesources.filesystem.FilesystemTemplateSource
Field Summary | |
private java.util.Vector |
directories
holds the list of directories where to look for file templates |
private java.util.Vector |
extensions
holds extensions accepted as templates |
private static java.util.logging.Logger |
log
|
Constructor Summary | |
FilesystemTemplateSource()
|
Method Summary | |
private void |
addTemplatesFrom(java.util.Vector ret,
java.lang.String dirName)
Reads the d directory and puts all velocity tempaltes (.vm) in the ret vector |
private boolean |
extensionAccepted(java.lang.String string)
|
java.lang.String |
getDescription()
A brief description of this template source. |
java.lang.String |
getId()
A string that uniquely identifies the extension (suggested plugin id). |
java.lang.String |
getName()
Gets the visible name of the template source |
net.sf.javadocbuilder.ITemplate |
getTemplateById(java.lang.String id)
Gets the first template identified by the given name. |
net.sf.javadocbuilder.ITemplate[] |
getTemplates()
Gets an array of all templates available at the template source. |
private void |
internalAddDirectories(java.util.Vector aDirectories,
java.lang.String dir,
boolean flag)
Adds directory dir to aDirectories vector adding child dirs if flag is true. |
private void |
loadDirectories()
Loads configured directories into the directories vector. |
private void |
setExtensions(java.lang.String extensionsString)
Sets the extensions vector from the comma separated list in the extensionString. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private java.util.Vector extensions
private java.util.Vector directories
private static java.util.logging.Logger log
Constructor Detail |
public FilesystemTemplateSource()
Method Detail |
public net.sf.javadocbuilder.ITemplate[] getTemplates()
ITemplateSource
getTemplates
in interface ITemplateSource
private void loadDirectories()
private void setExtensions(java.lang.String extensionsString)
private void internalAddDirectories(java.util.Vector aDirectories, java.lang.String dir, boolean flag)
private void addTemplatesFrom(java.util.Vector ret, java.lang.String dirName)
ret
- vector that will receive the ITemplateSources in the directorydirName
- directory to searchprivate boolean extensionAccepted(java.lang.String string)
string
-
public net.sf.javadocbuilder.ITemplate getTemplateById(java.lang.String id)
ITemplateSource
getTemplateById
in interface ITemplateSource
public java.lang.String getName()
ITemplateSource
getName
in interface ITemplateSource
public java.lang.String getDescription()
ITemplateSource
getDescription
in interface ITemplateSource
public java.lang.String getId()
ITemplateSource
getId
in interface ITemplateSource
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |