|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TemplateLocator
A template locator stores the resource of the template and is capable of loading it.
Method Summary | |
---|---|
java.lang.String |
highlight(java.lang.String message,
int line,
int column)
Create a highlight from the resource with the position at line and column highlighted :) May return null. |
char[] |
load()
Returns a char array with the raw template data Don't forget to update the timestamp and the rawSize properties when loading the data. |
Template |
resolve(TemplateEngine engine,
java.lang.String name,
java.util.Locale locale,
java.lang.String encoding)
Resolves the template with the specified name relative to this template. |
Methods inherited from interface org.peaseplate.locator.Locator |
---|
getKey, getRawSize, getTimestamp, isOutdated, setRawSize, setTimestamp, toString |
Method Detail |
---|
char[] load() throws TemplateException
TemplateException
- on occasionTemplate resolve(TemplateEngine engine, java.lang.String name, java.util.Locale locale, java.lang.String encoding) throws TemplateException
engine
- the enginename
- the name, relative or absolutelocale
- the localeencoding
- the locale for loading
TemplateException
- on occasionjava.lang.String highlight(java.lang.String message, int line, int column)
message
- TODOline
- the linecolumn
- the column
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |