public class RubyJSONClientModule extends BasicGeneratingModule implements ApiFeatureProviderModule
config, context, dependingModules, enunciate| Constructor and Description |
|---|
RubyJSONClientModule() |
| Modifier and Type | Method and Description |
|---|---|
void |
call(EnunciateContext context) |
protected void |
detectAccessorNamingErrors() |
Method |
findExampleResourceMethod()
Finds an example resource method, according to the following preference order:
The first method annotated with
DocumentationExample. |
List<DependencySpec> |
getDependencySpecifications() |
Set<String> |
getFacetExcludes() |
Set<String> |
getFacetIncludes() |
String |
getName() |
Map<String,String> |
getPackageToModuleConversions()
The package-to-module conversions.
|
String |
getSlug()
The label for the PHP API.
|
protected File |
getSourceDir() |
protected String |
getSourceFileName()
The name of the generated Ruby source file.
|
protected URL |
getTemplateURL(String template)
Get a template URL for the template of the given name.
|
protected String |
packageToModule(String pckg) |
String |
processTemplate(URL templateURL,
Object model)
Processes the specified template with the given model.
|
protected String |
readResource(String resource,
Map<String,Object> model)
Reads a resource into string form.
|
protected boolean |
usesUnmappableElements() |
buildFileList, findSourceTimestamp, getOldest, getYoungest, isUpToDate, isUpToDateWithSourcesacknowledgeDependingModules, debug, descriptionOf, error, info, init, init, isEnabled, isEnabledByDefault, positionOf, resolveFile, warnclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinit, init, isEnabledpublic String getName()
getName in interface EnunciateModulepublic List<DependencySpec> getDependencySpecifications()
getDependencySpecifications in interface EnunciateModulegetDependencySpecifications in class BasicEnunicateModulepublic void call(EnunciateContext context)
call in interface EnunciateModuleprotected boolean usesUnmappableElements()
protected void detectAccessorNamingErrors()
protected File getSourceDir()
public String processTemplate(URL templateURL, Object model) throws IOException, freemarker.template.TemplateException
templateURL - The template URL.model - The root model.IOExceptionfreemarker.template.TemplateExceptionprotected String readResource(String resource, Map<String,Object> model)
resource - The resource to read.public Method findExampleResourceMethod()
DocumentationExample.
protected String getSourceFileName()
protected URL getTemplateURL(String template)
template - The specified template.public String getSlug()
public Map<String,String> getPackageToModuleConversions()
Copyright © 2006-2016–2017. All rights reserved.