|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--fccsc.manager.util.TemplateManager
Constructor Summary | |
TemplateManager()
|
Method Summary | |
static java.lang.String |
display()
Display a listing of all loaded template files. |
static void |
init(java.lang.String p_directoryPath)
Initializes this manager with the location (directory path) of template files to load. |
static void |
load(java.lang.String p_fileName)
Loads a (*.template) file from our root directory path provided in the constructor of this object. |
static void |
loadAll()
Loads all the (*.template) files from our root directory path provided in the constructor of this object. |
static java.lang.String |
populate(java.lang.String p_templateName,
java.lang.String p_data)
Parses and loads the specified template with the given data. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TemplateManager()
Method Detail |
public static void init(java.lang.String p_directoryPath)
p_directoryPath
- the absolute directory path, i.e... D:\\manager\\templatespublic static java.lang.String display()
public static void loadAll()
public static void load(java.lang.String p_fileName)
p_fileName
- the template file to load.public static java.lang.String populate(java.lang.String p_templateName, java.lang.String p_data)
p_templateName
- the template to parse and load.p_data
- the data to insert into the template.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |