|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ITemplateResource
Implement a template resource which can be load from some where. For example, a file in a file system or an input stream from the network, or even from the database
| Method Summary | |
|---|---|
String |
asTemplateContent()
Return template content as a string. |
ICodeType |
codeType(RythmEngine engine)
Return code type suggested by this resource, e.g. |
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 |
| Method Detail |
|---|
Object getKey()
resource loader
String getSuggestedClassName()
String asTemplateContent()
boolean refresh()
boolean isValid()
ICodeType codeType(RythmEngine engine)
ITemplateResourceLoader getLoader()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||