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, setUp
protected FileWritingTemplate(java.lang.String baseDir, java.lang.String loc) throws java.io.IOException
java.io.IOException
public static java.lang.String testOutputLoc(java.lang.String loc) throws java.io.IOException
java.io.IOException
public void write()
public java.lang.String getResult()
getResult
in interface GenericTemplate
protected java.lang.Object textTemplate(java.lang.String text)
Template
textTemplate
in class Template
public 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
Template
getTemplate
in class Template
ConfigurationException
public void run()
run
in interface java.lang.Runnable
public java.lang.String toString()
toString
in class java.lang.Object
public static void write(java.lang.String outputLocation, java.lang.String output)
public static java.lang.String getBaseDirectoryName()