org.codehaus.enunciate.template.strategies
Class EnunciateTemplateLoopStrategy<L>

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<L>
All Implemented Interfaces:
net.sf.jelly.apt.strategies.TemplateStrategy<net.sf.jelly.apt.freemarker.FreemarkerTemplateBlock>
Direct Known Subclasses:
AccessorLoopStrategy, AS3ImportStrategy, BindingTypeLoopStrategy, EndpointInterfaceLoopStrategy, JsonSchemaLoopStrategy, ResourceMethodsByPathLoopStrategy, SchemaLoopStrategy, ServiceEndpointLoopStrategy, ThrownWebFaultLoopStrategy, WebFaultLoopStrategy, WebMessageLoopStrategy, WebMethodLoopStrategy, WsdlLoopStrategy

public abstract class EnunciateTemplateLoopStrategy<L>
extends net.sf.jelly.apt.strategies.TemplateLoopStrategy<L,net.sf.jelly.apt.freemarker.FreemarkerTemplateBlock>

Basic class for enunciate loops.

Author:
Ryan Heaton

Constructor Summary
EnunciateTemplateLoopStrategy()
           
 
Method Summary
protected  com.sun.mirror.apt.AnnotationProcessorEnvironment getAnnotationProcessorEnvironment()
          The current annotation processing environment.
protected  java.util.Map<java.lang.String,JsonSchemaInfo> getIdsToJsonSchemas()
          The ID to json schema map.
protected  EnunciateFreemarkerModel getModel()
          Get the current root model.
protected  java.util.Map<java.lang.String,java.lang.String> getNamespacesToPrefixes()
          The namespace to prefix map.
protected  java.util.Map<java.lang.String,SchemaInfo> getNamespacesToSchemas()
          The namespace to schema map.
protected  java.util.Map<java.lang.String,WsdlInfo> getNamespacesToWSDLs()
          The namespace to wsdl map.
protected  boolean isVerbose()
          Whether processing should be verbose.
protected  java.lang.String lookupPrefix(java.lang.String namespace)
          Convenience method to lookup a namespace prefix given a namespace.
protected  SchemaInfo lookupSchema(java.lang.String namespace)
          Convenience method to lookup a namespace schema given a namespace.
protected  WsdlInfo lookupWSDL(java.lang.String namespace)
          Convenience method to lookup a namespace wsdl given a namespace.
 
Methods inherited from class net.sf.jelly.apt.strategies.TemplateLoopStrategy
getLoop, preProcess, processBody, setupModelForLoop
 
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

EnunciateTemplateLoopStrategy

public EnunciateTemplateLoopStrategy()
Method Detail

lookupPrefix

protected java.lang.String lookupPrefix(java.lang.String namespace)
Convenience method to lookup a namespace prefix given a namespace.

Parameters:
namespace - The namespace for which to lookup the prefix.
Returns:
The namespace prefix.

lookupSchema

protected SchemaInfo lookupSchema(java.lang.String namespace)
Convenience method to lookup a namespace schema given a namespace.

Parameters:
namespace - The namespace for which to lookup the schema.
Returns:
The schema info.

lookupWSDL

protected WsdlInfo lookupWSDL(java.lang.String namespace)
Convenience method to lookup a namespace wsdl given a namespace.

Parameters:
namespace - The namespace for which to lookup the wsdl.
Returns:
The wsdl info.

getNamespacesToPrefixes

protected java.util.Map<java.lang.String,java.lang.String> getNamespacesToPrefixes()
The namespace to prefix map.

Returns:
The namespace to prefix map.

getNamespacesToSchemas

protected java.util.Map<java.lang.String,SchemaInfo> getNamespacesToSchemas()
The namespace to schema map.

Returns:
The namespace to schema map.

getIdsToJsonSchemas

protected java.util.Map<java.lang.String,JsonSchemaInfo> getIdsToJsonSchemas()
The ID to json schema map.

Returns:
The ID to json schema map.

getNamespacesToWSDLs

protected java.util.Map<java.lang.String,WsdlInfo> getNamespacesToWSDLs()
The namespace to wsdl map.

Returns:
The namespace to wsdl map.

getModel

protected EnunciateFreemarkerModel getModel()
Get the current root model.

Returns:
The current root model.

getAnnotationProcessorEnvironment

protected com.sun.mirror.apt.AnnotationProcessorEnvironment getAnnotationProcessorEnvironment()
The current annotation processing environment.

Returns:
The current annotation processing environment.

isVerbose

protected boolean isVerbose()
Whether processing should be verbose.

Returns:
Whether processing should be verbose.