public class CSharpXMLClientModule extends BasicGeneratingModule implements ApiFeatureProviderModule
config, context, dependingModules, enunciate| Constructor and Description |
|---|
CSharpXMLClientModule() |
| 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. |
WebMethod |
findExampleWebMethod()
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.
|
String |
getCompileCommand()
The C# compile command.
|
protected File |
getCompileDir() |
String |
getCompileExecutable()
The path to the compile executable.
|
List<DependencySpec> |
getDependencySpecifications() |
protected String |
getDLLFileName()
The name of the generated C# dll.
|
protected String |
getDocXmlFileName()
The name of the generated C# xml documentation.
|
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 C# API.
|
protected File |
getSourceDir() |
protected String |
getSourceFileName()
The name of the generated C# source file.
|
protected URL |
getTemplateURL(String template)
Get a template URL for the template of the given name.
|
boolean |
isDisableCompile()
Whether to disable the compile step.
|
boolean |
isRequire()
Whether to require the C# client code.
|
boolean |
isSingleFilePerClass()
Whether there should be a single file per class.
|
protected String |
packageToNamespace(String pckg) |
String |
processTemplate(URL templateURL,
Object model)
Processes the specified template with the given model.
|
protected String |
readLibraryDescription(Map<String,Object> model) |
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 File getSourceDir()
protected File getCompileDir()
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.TemplateExceptionpublic WebMethod findExampleWebMethod()
DocumentationExample.
public Method findExampleResourceMethod()
DocumentationExample.
protected String getBundleFileName()
protected String getDLLFileName()
protected String getDocXmlFileName()
protected String getSourceFileName()
protected URL getTemplateURL(String template)
template - The specified template.public boolean isRequire()
public String getSlug()
public String getCompileExecutable()
public String getCompileCommand()
public Map<String,String> getPackageToNamespaceConversions()
public boolean isDisableCompile()
public boolean isSingleFilePerClass()
Copyright © 2006-2016–2017. All rights reserved.