public class FileWritingTemplate extends Template implements GenericTemplate, java.lang.Runnable
| Modifier | Constructor and Description |
|---|---|
protected |
FileWritingTemplate(java.lang.String baseDir,
java.lang.String loc) |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
getBaseDirectoryName() |
java.lang.String |
getFilename() |
protected java.io.File |
getOutputDirectory() |
java.lang.String |
getOutputLocation() |
java.lang.String |
getResult() |
protected java.lang.Object |
getTemplate(java.lang.String tag,
org.w3c.dom.Element el)
if this class has an template for this tag, it creates it using the
passed in element and returns it.
|
void |
run() |
static java.lang.String |
testOutputLoc(java.lang.String loc) |
protected java.lang.Object |
textTemplate(java.lang.String text)
returns an object of the template type that this class uses, and returns
the passed in text when the getResult method of that template type is
called
|
java.lang.String |
toString() |
void |
write() |
static void |
write(java.lang.String outputLocation,
java.lang.String output) |
getCommonTemplate, parse, parse, setUpprotected FileWritingTemplate(java.lang.String baseDir,
java.lang.String loc)
throws java.io.IOException
java.io.IOExceptionpublic static java.lang.String testOutputLoc(java.lang.String loc)
throws java.io.IOException
java.io.IOExceptionpublic void write()
public java.lang.String getResult()
getResult in interface GenericTemplateprotected java.lang.Object textTemplate(java.lang.String text)
TemplatetextTemplate in class Templatepublic java.lang.String getOutputLocation()
public java.lang.String getFilename()
protected java.io.File getOutputDirectory()
protected java.lang.Object getTemplate(java.lang.String tag,
org.w3c.dom.Element el)
throws ConfigurationException
TemplategetTemplate in class TemplateConfigurationExceptionpublic void run()
run in interface java.lang.Runnablepublic java.lang.String toString()
toString in class java.lang.Objectpublic static void write(java.lang.String outputLocation,
java.lang.String output)
public static java.lang.String getBaseDirectoryName()