org.codehaus.enunciate.template.strategies.json
Class JsonSchemaLoopStrategy
java.lang.Object
net.sf.jelly.apt.strategies.TemplateStrategyControl<B>
net.sf.jelly.apt.strategies.TemplateBlockStrategy<B>
net.sf.jelly.apt.strategies.TemplateLoopStrategy<L,net.sf.jelly.apt.freemarker.FreemarkerTemplateBlock>
org.codehaus.enunciate.template.strategies.EnunciateTemplateLoopStrategy<JsonSchemaInfo>
org.codehaus.enunciate.template.strategies.json.JsonSchemaLoopStrategy
- All Implemented Interfaces:
- net.sf.jelly.apt.strategies.TemplateStrategy<net.sf.jelly.apt.freemarker.FreemarkerTemplateBlock>
public class JsonSchemaLoopStrategy
- extends EnunciateTemplateLoopStrategy<JsonSchemaInfo>
Strategy for looping over JSON schemas.
- Author:
- Steven Cummings
| Methods inherited from class net.sf.jelly.apt.strategies.TemplateLoopStrategy |
preProcess, processBody |
| Methods inherited from class net.sf.jelly.apt.strategies.TemplateBlockStrategy |
postProcess |
| 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 |
JsonSchemaLoopStrategy
public JsonSchemaLoopStrategy()
getLoop
protected java.util.Iterator<JsonSchemaInfo> getLoop(net.sf.jelly.apt.TemplateModel model)
-
- Specified by:
getLoop in class net.sf.jelly.apt.strategies.TemplateLoopStrategy<JsonSchemaInfo,net.sf.jelly.apt.freemarker.FreemarkerTemplateBlock>
setupModelForLoop
protected void setupModelForLoop(net.sf.jelly.apt.TemplateModel model,
JsonSchemaInfo schema,
int index)
throws net.sf.jelly.apt.TemplateException
-
- Overrides:
setupModelForLoop in class net.sf.jelly.apt.strategies.TemplateLoopStrategy<JsonSchemaInfo,net.sf.jelly.apt.freemarker.FreemarkerTemplateBlock>
- Throws:
net.sf.jelly.apt.TemplateException
getCurrentSchema
public JsonSchemaInfo getCurrentSchema()
- The current schema in the loop.
- Returns:
- The current schema in the loop.