public interface ITemplateResource extends Serializable
| Modifier and Type | Method and Description |
|---|---|
String |
asTemplateContent()
Return template content as a string.
|
ICodeType |
codeType(RythmEngine engine)
Return code type suggested by this resource, e.g.
|
Throwable |
getError() |
Object |
getKey()
The unique identifier used to fetch this resource by a
resource loader |
ITemplateResourceLoader |
getLoader()
Return the loader that loaded this resource
|
String |
getSuggestedClassName()
Propose a name of generated java class for this resource
|
boolean |
isValid()
Whether this resource is a valid resource
|
boolean |
refresh()
Refresh resource if necessary
|
void |
setError(Throwable error) |
Object getKey()
resource loaderString getSuggestedClassName()
String asTemplateContent()
boolean refresh()
boolean isValid()
ICodeType codeType(RythmEngine engine)
ITemplateResourceLoader getLoader()
Throwable getError()
void setError(Throwable error)
error - the error to setCopyright 2013-2016, The Rythm Engine project