public class CXMLClientModule extends BasicGeneratingModule implements ApiFeatureProviderModule
config, context, dependingModules, enunciate| Constructor and Description |
|---|
CXMLClientModule() |
| Modifier and Type | Method and Description |
|---|---|
void |
call(EnunciateContext context) |
Method |
findExampleResourceMethod()
Finds an example resource method, according to the following preference order:
The first method annotated with
DocumentationExample. |
List<DependencySpec> |
getDependencySpecifications() |
String |
getEnumConstantNamePattern()
The pattern for converting an enum constant to a unique C-style type name.
|
Set<String> |
getFacetExcludes() |
Set<String> |
getFacetIncludes() |
String |
getName() |
String |
getSlug()
The slug for the C API.
|
protected File |
getSourceDir() |
protected String |
getSourceFileName(String label) |
protected URL |
getTemplateURL(String template)
Get a template URL for the template of the given name.
|
String |
getTypeDefinitionNamePattern()
The pattern for converting a type definition to a unique C-style type name.
|
boolean |
isSeparateCommonCode()
Whether to separate the common code from the project-specific code.
|
String |
processTemplate(URL templateURL,
Object model)
Processes the specified template with the given model.
|
protected String |
readResource(String resource,
Map<String,Object> model,
NameForTypeDefinitionMethod nameForTypeDefinition)
Reads a resource into string form.
|
static String |
scrubIdentifier(String identifier)
Scrub a C identifier (removing any illegal characters, etc.).
|
protected boolean |
usesUnmappableElements() |
buildFileList, findSourceTimestamp, getManifest, 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 static String scrubIdentifier(String identifier)
identifier - The identifier.public void call(EnunciateContext context)
call in interface EnunciateModuleprotected boolean usesUnmappableElements()
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, NameForTypeDefinitionMethod nameForTypeDefinition)
resource - The resource to read.public Method findExampleResourceMethod()
DocumentationExample.
protected File getSourceDir()
protected URL getTemplateURL(String template)
template - The specified template.public String getSlug()
public String getTypeDefinitionNamePattern()
public String getEnumConstantNamePattern()
public boolean isSeparateCommonCode()
Copyright © 2006-2016–2022. All rights reserved.