|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Template
A representation of the physical layout of generated code.
A Template
class defines what the generated code should look like.
It can accept injected state and use that state to dynamically generate
source code.
Method Summary | |
---|---|
void |
injectView(String viewName,
Object viewState)
Inject view state into a Template . |
void |
reset()
Removes all previously injected view state from a Template . |
void |
write(Writer writer)
Writes a Template along with any injected view state
to the given Writer . |
Method Detail |
---|
void injectView(String viewName, Object viewState)
Template
.
A Template
should recognize view state
by a name. Thereforce, this method will inject
the given view state object for the given name.
viewName
- the name of the view stateviewState
- the view state objectvoid reset()
Template
.
void write(Writer writer) throws IOException
Template
along with any injected view state
to the given Writer
.
writer
- a Java Writer
to which the Template
and its view state should be written
IOException
- if there is an error writing to the Java Writer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |