com.unitesk.requality.report
public class Template extends java.lang.Object
Constructor and Description |
---|
Template(java.lang.String reportPath) |
Modifier and Type | Method and Description |
---|---|
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() |
boolean |
getReadOnly() |
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) |
public java.lang.String getReportPath()
public java.lang.String load(java.lang.String location) throws java.io.IOException
java.io.IOException
public java.lang.String load(java.io.Reader reader) throws java.io.IOException
java.io.IOException
public boolean copyDir(java.lang.String source, java.lang.String location)
source
- path to catalogue which must be copied.location
- path to where catalogue must be copied.public boolean copyFile(java.lang.String source, java.lang.String location)
source
- path to file which must be copied.location
- path to location where file must be copied.public static Template fromXml(java.lang.String path, java.io.Reader reader) throws java.io.IOException
java.io.IOException
public java.util.List<TemplateFile> getTemplates()
public java.lang.String getId()
public boolean getReadOnly()
public java.lang.String getName()