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

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

public class WebMessageLoopStrategy
extends EnunciateTemplateLoopStrategy<WebMessage>

Loop through the web messages unique to either a web method or a wsdl. Priority is given to the specified web method.

Author:
Ryan Heaton

Constructor Summary
WebMessageLoopStrategy()
           
 
Method Summary
protected  java.util.Iterator<WebMessage> getLoop(net.sf.jelly.apt.TemplateModel model)
           
 java.lang.String getVar()
          The variable in which to put the message.
 WebMethod getWebMethod()
          The web method.
 WsdlInfo getWsdl()
          The wsdl containing the web messages.
 boolean isConsiderFacets()
           
 boolean isIncludeFaults()
          Whether or not to include faults.
 boolean isIncludeHeaders()
          Whether or not to include headers.
 boolean isIncludeInput()
          Whether or not to include input.
 boolean isIncludeOutput()
          Whether or not to include output.
 void setConsiderFacets(boolean considerFacets)
           
 void setIncludeFaults(boolean includeFaults)
          Whether or not to include faults.
 void setIncludeHeaders(boolean includeHeaders)
          Whether or not to include headers.
 void setIncludeInput(boolean includeInput)
          Whether or not to include input.
 void setIncludeOutput(boolean includeOutput)
          Whether or not to include output.
protected  void setupModelForLoop(net.sf.jelly.apt.TemplateModel model, WebMessage webMessage, int index)
           
 void setVar(java.lang.String var)
          The variable in which to put the message.
 void setWebMethod(WebMethod webMethod)
          The web method.
 void setWsdl(WsdlInfo wsdl)
          The wsdl containing the web messages.
 
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

WebMessageLoopStrategy

public WebMessageLoopStrategy()
Method Detail

getLoop

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

setupModelForLoop

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

getVar

public java.lang.String getVar()
The variable in which to put the message.

Returns:
The variable in which to put the message.

setVar

public void setVar(java.lang.String var)
The variable in which to put the message.

Parameters:
var - The variable in which to put the message.

isIncludeInput

public boolean isIncludeInput()
Whether or not to include input.

Returns:
Whether or not to include input.

setIncludeInput

public void setIncludeInput(boolean includeInput)
Whether or not to include input.

Parameters:
includeInput - Whether or not to include input.

isIncludeOutput

public boolean isIncludeOutput()
Whether or not to include output.

Returns:
Whether or not to include output.

setIncludeOutput

public void setIncludeOutput(boolean includeOutput)
Whether or not to include output.

Parameters:
includeOutput - Whether or not to include output.

isIncludeHeaders

public boolean isIncludeHeaders()
Whether or not to include headers.

Returns:
Whether or not to include headers.

setIncludeHeaders

public void setIncludeHeaders(boolean includeHeaders)
Whether or not to include headers.

Parameters:
includeHeaders - Whether or not to include headers.

isIncludeFaults

public boolean isIncludeFaults()
Whether or not to include faults.

Returns:
Whether or not to include faults.

setIncludeFaults

public void setIncludeFaults(boolean includeFaults)
Whether or not to include faults.

Parameters:
includeFaults - Whether or not to include faults.

isConsiderFacets

public boolean isConsiderFacets()

setConsiderFacets

public void setConsiderFacets(boolean considerFacets)

getWebMethod

public WebMethod getWebMethod()
The web method.

Returns:
The web method.

setWebMethod

public void setWebMethod(WebMethod webMethod)
The web method.

Parameters:
webMethod - The web method.

getWsdl

public WsdlInfo getWsdl()
The wsdl containing the web messages.

Returns:
The wsdl containing the web messages.

setWsdl

public void setWsdl(WsdlInfo wsdl)
The wsdl containing the web messages.

Parameters:
wsdl - The wsdl containing the web messages.