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

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

public class WebMethodLoopStrategy
extends EnunciateTemplateLoopStrategy<WebMethod>

A loop strategy for all the web methods of an endpoint interface.

Author:
Ryan Heaton

Constructor Summary
WebMethodLoopStrategy()
           
 
Method Summary
 EndpointInterface getEndpointInterface()
          The endpoint interface.
protected  java.util.Iterator<WebMethod> getLoop(net.sf.jelly.apt.TemplateModel model)
           
 java.lang.String getVar()
          The variable into which to store the current web method.
 void setEndpointInterface(EndpointInterface endpointInterface)
          The endpoint interface.
protected  void setupModelForLoop(net.sf.jelly.apt.TemplateModel model, WebMethod method, int index)
           
 void setVar(java.lang.String var)
          The variable into which to store the current web method.
 
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

WebMethodLoopStrategy

public WebMethodLoopStrategy()
Method Detail

getLoop

protected java.util.Iterator<WebMethod> getLoop(net.sf.jelly.apt.TemplateModel model)
                                         throws net.sf.jelly.apt.TemplateException
Specified by:
getLoop in class net.sf.jelly.apt.strategies.TemplateLoopStrategy<WebMethod,net.sf.jelly.apt.freemarker.FreemarkerTemplateBlock>
Throws:
net.sf.jelly.apt.TemplateException

setupModelForLoop

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

getEndpointInterface

public EndpointInterface getEndpointInterface()
The endpoint interface.

Returns:
The endpoint interface.

setEndpointInterface

public void setEndpointInterface(EndpointInterface endpointInterface)
The endpoint interface.

Parameters:
endpointInterface - The endpoint interface.

getVar

public java.lang.String getVar()
The variable into which to store the current web method.

Returns:
The variable into which to store the current web method.

setVar

public void setVar(java.lang.String var)
The variable into which to store the current web method.

Parameters:
var - The variable into which to store the current web method.