org.codehaus.enunciate.modules.c
Class AccessorLoopStrategy
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<Accessor>
org.codehaus.enunciate.modules.c.AccessorLoopStrategy
- All Implemented Interfaces:
- net.sf.jelly.apt.strategies.TemplateStrategy<net.sf.jelly.apt.freemarker.FreemarkerTemplateBlock>
public class AccessorLoopStrategy
- extends EnunciateTemplateLoopStrategy<Accessor>
Strategy for looping through all accessors (including those of the superclass) for a given type definition.
- Author:
- Ryan Heaton
| 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 |
AccessorLoopStrategy
public AccessorLoopStrategy()
getLoop
protected java.util.Iterator<Accessor> getLoop(net.sf.jelly.apt.TemplateModel model)
throws net.sf.jelly.apt.TemplateException
- Specified by:
getLoop in class net.sf.jelly.apt.strategies.TemplateLoopStrategy<Accessor,net.sf.jelly.apt.freemarker.FreemarkerTemplateBlock>
- Throws:
net.sf.jelly.apt.TemplateException
setupModelForLoop
protected void setupModelForLoop(net.sf.jelly.apt.TemplateModel model,
Accessor accessor,
int index)
throws net.sf.jelly.apt.TemplateException
- Overrides:
setupModelForLoop in class net.sf.jelly.apt.strategies.TemplateLoopStrategy<Accessor,net.sf.jelly.apt.freemarker.FreemarkerTemplateBlock>
- Throws:
net.sf.jelly.apt.TemplateException
getVar
public java.lang.String getVar()
setVar
public void setVar(java.lang.String var)
getTypeDefinition
public TypeDefinition getTypeDefinition()
setTypeDefinition
public void setTypeDefinition(TypeDefinition typeDefinition)
isAttributes
public boolean isAttributes()
setAttributes
public void setAttributes(boolean attributes)
isElements
public boolean isElements()
setElements
public void setElements(boolean elements)
isValue
public boolean isValue()
setValue
public void setValue(boolean value)