com.unitesk.requality.report
Class Template
java.lang.Object
com.unitesk.requality.report.Template
public class Template
- extends java.lang.Object
Constructor Summary |
Template(java.lang.String reportPath)
|
Method Summary |
boolean |
copyDir(java.lang.String source,
java.lang.String location)
Copies catalogue into selected place. |
boolean |
copyFile(java.lang.String source,
java.lang.String location)
Copies file into selected place. |
static Template |
fromXml(java.lang.String path,
java.io.Reader reader)
|
java.lang.String |
getId()
|
java.lang.String |
getName()
|
java.lang.String |
getReportPath()
|
java.util.List<TemplateFile> |
getTemplates()
|
java.lang.String |
load(java.io.Reader reader)
|
java.lang.String |
load(java.lang.String location)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Template
public Template(java.lang.String reportPath)
getReportPath
public java.lang.String getReportPath()
load
public java.lang.String load(java.lang.String location)
throws java.io.IOException
- Throws:
java.io.IOException
load
public java.lang.String load(java.io.Reader reader)
throws java.io.IOException
- Throws:
java.io.IOException
copyDir
public boolean copyDir(java.lang.String source,
java.lang.String location)
- Copies catalogue into selected place.
- Parameters:
source
- path to catalogue which must be copied.location
- path to where catalogue must be copied.
- Returns:
- true if coping was successful, false - otherwise.
copyFile
public boolean copyFile(java.lang.String source,
java.lang.String location)
- Copies file into selected place.
- Parameters:
source
- path to file which must be copied.location
- path to location where file must be copied.
- Returns:
- true if coping successful, false - otherwise.
fromXml
public static Template fromXml(java.lang.String path,
java.io.Reader reader)
throws java.io.IOException
- Throws:
java.io.IOException
getTemplates
public java.util.List<TemplateFile> getTemplates()
getId
public java.lang.String getId()
getName
public java.lang.String getName()