|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.jelly.apt.strategies.TemplateStrategyControl<B>
public abstract class TemplateStrategyControl<B extends TemplateBlock>
Base strategy class that goes through a specific control process when invoked.
Constructor Summary | |
---|---|
TemplateStrategyControl()
|
Method Summary | |
---|---|
void |
invoke(B block,
TemplateOutput<B> output,
TemplateModel model)
Invoke the strategy using the control process. |
abstract void |
postProcess(B block,
TemplateOutput<B> output,
TemplateModel model)
Post-process the strategy. |
abstract boolean |
preProcess(B block,
TemplateOutput<B> output,
TemplateModel model)
Pre-process the strategy. |
abstract boolean |
processBody(B block,
TemplateOutput<B> output,
TemplateModel model)
Process the body of the block. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TemplateStrategyControl()
Method Detail |
---|
public abstract boolean preProcess(B block, TemplateOutput<B> output, TemplateModel model) throws java.io.IOException, TemplateException
java.io.IOException
TemplateException
public abstract boolean processBody(B block, TemplateOutput<B> output, TemplateModel model) throws java.io.IOException, TemplateException
block
- The block.output
- The output.model
- The model.
java.io.IOException
TemplateException
public abstract void postProcess(B block, TemplateOutput<B> output, TemplateModel model) throws java.io.IOException, TemplateException
block
- The block.output
- The output.model
- The model.
java.io.IOException
TemplateException
public void invoke(B block, TemplateOutput<B> output, TemplateModel model) throws java.io.IOException, TemplateException
invoke
in interface TemplateStrategy<B extends TemplateBlock>
block
- The block.output
- The output.model
- The model.
java.io.IOException
TemplateException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |