|
||||||||||
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>
net.sf.jelly.apt.strategies.TemplateValueStrategy<B>
public abstract class TemplateValueStrategy<B extends TemplateBlock>
Writes a value to template output.
Constructor Summary | |
---|---|
TemplateValueStrategy()
|
Method Summary | |
---|---|
protected abstract java.lang.String |
getValue()
Get the value to write to the template output. |
void |
postProcess(B block,
TemplateOutput<B> output,
TemplateModel model)
Do nothing. |
boolean |
preProcess(B block,
TemplateOutput<B> output,
TemplateModel model)
Writes the value to the output. |
boolean |
processBody(B block,
TemplateOutput<B> output,
TemplateModel model)
Process the body of the block. |
Methods inherited from class net.sf.jelly.apt.strategies.TemplateStrategyControl |
---|
invoke |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TemplateValueStrategy()
Method Detail |
---|
protected abstract java.lang.String getValue() throws TemplateException
TemplateException
public boolean preProcess(B block, TemplateOutput<B> output, TemplateModel model) throws java.io.IOException, TemplateException
value
to the output.
preProcess
in class TemplateStrategyControl<B extends TemplateBlock>
block
- The block.output
- The output.model
- The model.
java.io.IOException
TemplateException
public boolean processBody(B block, TemplateOutput<B> output, TemplateModel model) throws java.io.IOException, TemplateException
TemplateStrategyControl
processBody
in class TemplateStrategyControl<B extends TemplateBlock>
block
- The block.output
- The output.model
- The model.
java.lang.UnsupportedOperationException
- Because a value strategy shouldn't have a body.
java.io.IOException
TemplateException
public void postProcess(B block, TemplateOutput<B> output, TemplateModel model) throws java.io.IOException, TemplateException
postProcess
in class TemplateStrategyControl<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 |