public class JavaScriptClientModule extends BasicGeneratingModule implements ApiFeatureProviderModule
config, context, dependingModules, enunciate| Constructor and Description |
|---|
JavaScriptClientModule() |
| 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. |
protected String |
getBundleFileName()
The name of the bundle file.
|
List<DependencySpec> |
getDependencySpecifications() |
Set<String> |
getFacetExcludes() |
Set<String> |
getFacetIncludes() |
String |
getName() |
protected File |
getPackageDir() |
Map<String,String> |
getPackageToNamespaceConversions()
The package-to-namespace conversions.
|
String |
getSlug()
The label for the JavaScript API.
|
protected File |
getSourceDir() |
protected String |
getSourceFileName()
The name of the generated js source file.
|
protected URL |
getTemplateURL(String template)
Get a template URL for the template of the given name.
|
protected String |
packageToNamespace(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.
|
buildFileList, findSourceTimestamp, getOldest, getYoungest, isUpToDate, isUpToDateWithSourcesacknowledgeDependingModules, debug, descriptionOf, error, info, init, init, isEnabled, 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 void detectAccessorNamingErrors()
protected File getSourceDir()
protected File getPackageDir()
public String processTemplate(URL templateURL, Object model) throws IOException, freemarker.template.TemplateException
templateURL - The template URL.model - The root model.IOExceptionfreemarker.template.TemplateExceptionprotected String getBundleFileName()
protected 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> getPackageToNamespaceConversions()
Copyright © 2006-2016–2016. All rights reserved.