public class ObjCXMLClientModule extends BasicGeneratingModule implements ApiFeatureProviderModule
config, context, dependingModules, enunciate| Constructor and Description |
|---|
ObjCXMLClientModule() |
| 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 |
getPackageIdentifierPattern()
The format string creating a package identifier from a package name.
|
Map<String,String> |
getPackageIdentifiers()
The package-to-module conversions.
|
String |
getSlug()
The label for the Ruby API.
|
protected File |
getSourceDir() |
protected URL |
getTemplateURL(String template)
Get a template URL for the template of the given name.
|
String |
getTranslateIdTo()
What to translate 'id' to when writing out objective-c code.
|
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, getOldest, getYoungest, isUpToDate, isUpToDateWithSourcesacknowledgeDependingModules, capitalize, debug, descriptionOf, 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 static String scrubIdentifier(String identifier)
identifier - The identifier.public void call(EnunciateContext context)
call in interface EnunciateModuleprotected boolean usesUnmappableElements()
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, NameForTypeDefinitionMethod nameForTypeDefinition)
resource - The resource to read.public Method findExampleResourceMethod()
DocumentationExample.
protected URL getTemplateURL(String template)
template - The specified template.public String getSlug()
public Map<String,String> getPackageIdentifiers()
public String getPackageIdentifierPattern()
public String getTypeDefinitionNamePattern()
public String getEnumConstantNamePattern()
public String getTranslateIdTo()
public boolean isSeparateCommonCode()
Copyright © 2015. All rights reserved.