org.codehaus.enunciate.template.strategies.jaxws
Class ThrownWebFaultLoopStrategy
java.lang.Object
net.sf.jelly.apt.strategies.TemplateStrategyControl<B>
net.sf.jelly.apt.strategies.TemplateBlockStrategy<B>
net.sf.jelly.apt.strategies.TemplateLoopStrategy<L,net.sf.jelly.apt.freemarker.FreemarkerTemplateBlock>
org.codehaus.enunciate.template.strategies.EnunciateTemplateLoopStrategy<WebFault>
org.codehaus.enunciate.template.strategies.jaxws.ThrownWebFaultLoopStrategy
- All Implemented Interfaces:
- net.sf.jelly.apt.strategies.TemplateStrategy<net.sf.jelly.apt.freemarker.FreemarkerTemplateBlock>
public class ThrownWebFaultLoopStrategy
- extends EnunciateTemplateLoopStrategy<WebFault>
Loop through the thrown web faults of a given web method.
- Author:
- Ryan Heaton
|
Method Summary |
protected java.util.Iterator<WebFault> |
getLoop(net.sf.jelly.apt.TemplateModel model)
|
java.lang.String |
getVar()
The variable into which to put the current thrown web fault. |
WebMethod |
getWebMethod()
The web method to iterate over each thrown web fault. |
protected void |
setupModelForLoop(net.sf.jelly.apt.TemplateModel model,
WebFault webFault,
int index)
|
void |
setVar(java.lang.String var)
The variable into which to put the current thrown web fault. |
void |
setWebMethod(WebMethod webMethod)
The web method to iterate over each thrown web fault. |
| 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 |
ThrownWebFaultLoopStrategy
public ThrownWebFaultLoopStrategy()
getLoop
protected java.util.Iterator<WebFault> getLoop(net.sf.jelly.apt.TemplateModel model)
throws net.sf.jelly.apt.TemplateException
- Specified by:
getLoop in class net.sf.jelly.apt.strategies.TemplateLoopStrategy<WebFault,net.sf.jelly.apt.freemarker.FreemarkerTemplateBlock>
- Throws:
net.sf.jelly.apt.TemplateException
setupModelForLoop
protected void setupModelForLoop(net.sf.jelly.apt.TemplateModel model,
WebFault webFault,
int index)
throws net.sf.jelly.apt.TemplateException
- Overrides:
setupModelForLoop in class net.sf.jelly.apt.strategies.TemplateLoopStrategy<WebFault,net.sf.jelly.apt.freemarker.FreemarkerTemplateBlock>
- Throws:
net.sf.jelly.apt.TemplateException
getWebMethod
public WebMethod getWebMethod()
- The web method to iterate over each thrown web fault.
- Returns:
- The web method to iterate over each thrown web fault.
setWebMethod
public void setWebMethod(WebMethod webMethod)
- The web method to iterate over each thrown web fault.
- Parameters:
webMethod - The web method to iterate over each thrown web fault.
getVar
public java.lang.String getVar()
- The variable into which to put the current thrown web fault.
- Returns:
- The variable into which to put the current thrown web fault.
setVar
public void setVar(java.lang.String var)
- The variable into which to put the current thrown web fault.
- Parameters:
var - The variable into which to put the current thrown web fault.