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

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

public class WsdlLoopStrategy
extends EnunciateTemplateLoopStrategy<WsdlInfo>

Strategy that loops through each WSDL.

Author:
Ryan Heaton

Constructor Summary
WsdlLoopStrategy()
           
 
Method Summary
 WsdlInfo getCurrentWsdl()
          The current wsdl in the loop.
protected  java.util.Iterator<WsdlInfo> getLoop(net.sf.jelly.apt.TemplateModel model)
          The loop through the WSDLs.
 java.lang.String getVar()
          The variable to which to assign the current wsdl in the loop.
protected  void setupModelForLoop(net.sf.jelly.apt.TemplateModel model, WsdlInfo wsdlInfo, int index)
          Sets the namespace variable value, and establishes the namespace and endpoint interfaces for the current wsdl.
 void setVar(java.lang.String var)
          The variable to which to assign the current wsdl 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

WsdlLoopStrategy

public WsdlLoopStrategy()
Method Detail

getLoop

protected java.util.Iterator<WsdlInfo> getLoop(net.sf.jelly.apt.TemplateModel model)
                                        throws net.sf.jelly.apt.TemplateException
The loop through the WSDLs.

Specified by:
getLoop in class net.sf.jelly.apt.strategies.TemplateLoopStrategy<WsdlInfo,net.sf.jelly.apt.freemarker.FreemarkerTemplateBlock>
Returns:
The loop through the WSDLs.
Throws:
net.sf.jelly.apt.TemplateException

setupModelForLoop

protected void setupModelForLoop(net.sf.jelly.apt.TemplateModel model,
                                 WsdlInfo wsdlInfo,
                                 int index)
                          throws net.sf.jelly.apt.TemplateException
Sets the namespace variable value, and establishes the namespace and endpoint interfaces for the current wsdl.

Overrides:
setupModelForLoop in class net.sf.jelly.apt.strategies.TemplateLoopStrategy<WsdlInfo,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 wsdl in the loop.

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

setVar

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

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

getCurrentWsdl

public WsdlInfo getCurrentWsdl()
The current wsdl in the loop.

Returns:
The current wsdl in the loop.