org.codehaus.enunciate.template.strategies.json
Class JsonSchemaLoopStrategy

java.lang.Object
  extended by net.sf.jelly.apt.strategies.TemplateStrategyControl<B>
      extended by net.sf.jelly.apt.strategies.TemplateBlockStrategy<B>
          extended by net.sf.jelly.apt.strategies.TemplateLoopStrategy<L,net.sf.jelly.apt.freemarker.FreemarkerTemplateBlock>
              extended by org.codehaus.enunciate.template.strategies.EnunciateTemplateLoopStrategy<JsonSchemaInfo>
                  extended by 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

Constructor Summary
JsonSchemaLoopStrategy()
           
 
Method Summary
 JsonSchemaInfo getCurrentSchema()
          The current schema in the loop.
protected  java.util.Iterator<JsonSchemaInfo> getLoop(net.sf.jelly.apt.TemplateModel model)
          
protected  void setupModelForLoop(net.sf.jelly.apt.TemplateModel model, JsonSchemaInfo schema, int index)
          
 
Methods inherited from class org.codehaus.enunciate.template.strategies.EnunciateTemplateLoopStrategy
getAnnotationProcessorEnvironment, getIdsToJsonSchemas, getModel, getNamespacesToPrefixes, getNamespacesToSchemas, getNamespacesToWSDLs, isVerbose, lookupPrefix, lookupSchema, lookupWSDL
 
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
 

Constructor Detail

JsonSchemaLoopStrategy

public JsonSchemaLoopStrategy()
Method Detail

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.