org.codehaus.enunciate.template.strategies.jaxws
Class BindingTypeLoopStrategy

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,FreemarkerTemplateBlock>
              extended by org.codehaus.enunciate.template.strategies.EnunciateTemplateLoopStrategy<BindingType>
                  extended by org.codehaus.enunciate.template.strategies.jaxws.BindingTypeLoopStrategy
All Implemented Interfaces:
TemplateStrategy<FreemarkerTemplateBlock>

public class BindingTypeLoopStrategy
extends EnunciateTemplateLoopStrategy<BindingType>

Loop through the binding types of a given endpoint interface.

Author:
Ryan Heaton

Constructor Summary
BindingTypeLoopStrategy()
           
 
Method Summary
 EndpointInterface getEndpointInterface()
          The endpoint interface for which to iterate over each binding type.
protected  Iterator<BindingType> getLoop(TemplateModel model)
           
 String getVar()
          The variable into which to store the binding type.
 void setEndpointInterface(EndpointInterface endpointInterface)
          The endpoint interface for which to iterate over each binding type.
protected  void setupModelForLoop(TemplateModel model, BindingType bindingType, int index)
           
 void setVar(String var)
          The variable into which to store the binding type.
 
Methods inherited from class org.codehaus.enunciate.template.strategies.EnunciateTemplateLoopStrategy
getAnnotationProcessorEnvironment, getModel, getNamespacesToPrefixes, getNamespacesToSchemas, getNamespacesToWSDLs, getRESTEndpoints, 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

BindingTypeLoopStrategy

public BindingTypeLoopStrategy()
Method Detail

getLoop

protected Iterator<BindingType> getLoop(TemplateModel model)
                                 throws TemplateException
Specified by:
getLoop in class TemplateLoopStrategy<BindingType,FreemarkerTemplateBlock>
Throws:
TemplateException

setupModelForLoop

protected void setupModelForLoop(TemplateModel model,
                                 BindingType bindingType,
                                 int index)
                          throws TemplateException
Overrides:
setupModelForLoop in class TemplateLoopStrategy<BindingType,FreemarkerTemplateBlock>
Throws:
TemplateException

getVar

public String getVar()
The variable into which to store the binding type.

Returns:
The variable into which to store the binding type.

setVar

public void setVar(String var)
The variable into which to store the binding type.

Parameters:
var - The variable into which to store the binding type.

getEndpointInterface

public EndpointInterface getEndpointInterface()
The endpoint interface for which to iterate over each binding type.

Returns:
The endpoint interface for which to iterate over each binding type.

setEndpointInterface

public void setEndpointInterface(EndpointInterface endpointInterface)
The endpoint interface for which to iterate over each binding type.

Parameters:
endpointInterface - The endpoint interface for which to iterate over each binding type.