public final class Template
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
HTML_TEMPLATE_PATH
Bundle relative path of the HTML template file.
|
private static java.lang.String |
PATTERN
Normalization pattern used for creating project and file name.
|
Modifier | Constructor and Description |
---|---|
private |
Template()
Private constructor for avoiding instantiation.
|
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getHTMLTemplate()
Getter for the HTML template content.
|
static java.lang.String |
getTemplate(java.lang.String path,
java.lang.Class<?> loader)
Retrieves the template file content of the given path
using the given loader for retrieving the file stream.
|
static java.lang.String |
normalize(java.lang.String name)
Normalizes the given name by removing
all non alphanumeric character.
|
private static final java.lang.String PATTERN
private static final java.lang.String HTML_TEMPLATE_PATH
public static java.lang.String normalize(java.lang.String name)
name
- Name to normalize.public static java.lang.String getTemplate(java.lang.String path, java.lang.Class<?> loader)
path
- Path to retrieve template file from.loader
- Class instance used to retrieve template file stream from.public static java.lang.String getHTMLTemplate()