org.codehaus.enunciate.template.strategies.jaxb
Class SchemaLoopStrategy

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<SchemaInfo>
                  extended by org.codehaus.enunciate.template.strategies.jaxb.SchemaLoopStrategy
All Implemented Interfaces:
net.sf.jelly.apt.strategies.TemplateStrategy<net.sf.jelly.apt.freemarker.FreemarkerTemplateBlock>

public class SchemaLoopStrategy
extends EnunciateTemplateLoopStrategy<SchemaInfo>

Strategy that loops through each schema.

Author:
Ryan Heaton

Constructor Summary
SchemaLoopStrategy()
           
 
Method Summary
 SchemaInfo getCurrentSchema()
          The current schema in the loop.
protected  java.util.Iterator<SchemaInfo> getLoop(net.sf.jelly.apt.TemplateModel model)
          Get the loop through the schemas.
 java.lang.String getVar()
          The variable to which to assign the current schema in the loop.
protected  void setupModelForLoop(net.sf.jelly.apt.TemplateModel model, SchemaInfo schemaInfo, int index)
           
 void setVar(java.lang.String var)
          The variable to which to assign the current schema in the loop.
 
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

SchemaLoopStrategy

public SchemaLoopStrategy()
Method Detail

getLoop

protected java.util.Iterator<SchemaInfo> getLoop(net.sf.jelly.apt.TemplateModel model)
                                          throws net.sf.jelly.apt.TemplateException
Get the loop through the schemas.

Specified by:
getLoop in class net.sf.jelly.apt.strategies.TemplateLoopStrategy<SchemaInfo,net.sf.jelly.apt.freemarker.FreemarkerTemplateBlock>
Parameters:
model - The model to work with.
Returns:
The loop through the schemas.
Throws:
net.sf.jelly.apt.TemplateException

setupModelForLoop

protected void setupModelForLoop(net.sf.jelly.apt.TemplateModel model,
                                 SchemaInfo schemaInfo,
                                 int index)
                          throws net.sf.jelly.apt.TemplateException
Overrides:
setupModelForLoop in class net.sf.jelly.apt.strategies.TemplateLoopStrategy<SchemaInfo,net.sf.jelly.apt.freemarker.FreemarkerTemplateBlock>
Throws:
net.sf.jelly.apt.TemplateException

getVar

public java.lang.String getVar()
The variable to which to assign the current schema in the loop.

Returns:
The variable to which to assign the current schema in the loop.

setVar

public void setVar(java.lang.String var)
The variable to which to assign the current schema in the loop.

Parameters:
var - The variable to which to assign the current schema in the loop.

getCurrentSchema

public SchemaInfo getCurrentSchema()
The current schema in the loop.

Returns:
The current schema in the loop.