org.codehaus.enunciate.modules.c
Class AccessorLoopStrategy

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<Accessor>
                  extended by 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

Constructor Summary
AccessorLoopStrategy()
           
 
Method Summary
protected  java.util.Iterator<Accessor> getLoop(net.sf.jelly.apt.TemplateModel model)
           
 TypeDefinition getTypeDefinition()
           
 java.lang.String getVar()
           
 boolean isAttributes()
           
 boolean isElements()
           
 boolean isValue()
           
 void setAttributes(boolean attributes)
           
 void setElements(boolean elements)
           
 void setTypeDefinition(TypeDefinition typeDefinition)
           
protected  void setupModelForLoop(net.sf.jelly.apt.TemplateModel model, Accessor accessor, int index)
           
 void setValue(boolean value)
           
 void setVar(java.lang.String var)
           
 
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

AccessorLoopStrategy

public AccessorLoopStrategy()
Method Detail

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)