public class JavaXMLClientModule extends BasicGeneratingModule implements ApiFeatureProviderModule, ProjectExtensionModule
config, context, dependingModules, enunciate| Constructor and Description |
|---|
JavaXMLClientModule() |
| Modifier and Type | Method and Description |
|---|---|
void |
call(EnunciateContext context) |
protected File |
compileClientSources(File sourceDir) |
protected File |
copyResources() |
protected void |
copyServerSideType(File sourceDir,
TypeElement type) |
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 File |
generateClientSources() |
String |
getArtifactId() |
protected String |
getBeanName(ClientClassnameForMethod conversion,
String preconvert)
Get the bean name for a specified string.
|
Map<String,String> |
getClientPackageConversions() |
protected File |
getCompileDir() |
List<DependencySpec> |
getDependencySpecifications() |
Set<String> |
getFacetExcludes() |
Set<String> |
getFacetIncludes() |
String |
getGroupId() |
String |
getJarName() |
String |
getJavacSource() |
String |
getJavacTarget() |
String |
getName() |
protected File |
getPackageDir() |
List<File> |
getProjectResourceDirectories() |
List<File> |
getProjectSources() |
List<File> |
getProjectTestResourceDirectories() |
List<File> |
getProjectTestSources() |
protected File |
getResourcesDir() |
protected File |
getServerSideDestFile(File sourceDir,
JavaFileObject sourceFile,
TypeElement declaration) |
Set<String> |
getServerSideTypesToUse() |
String |
getSlug() |
protected File |
getSourceDir() |
protected URL |
getTemplateURL(String template) |
String |
getVersion() |
boolean |
isBundleSourcesWithClasses() |
boolean |
isDisableCompile()
Whether to disable the compilation of the java sources (default: false).
|
protected File |
packageArtifacts(File sourceDir,
File resourcesDir,
File compileDir) |
String |
processTemplate(URL templateURL,
Object model)
Processes the specified template with the given model.
|
protected String |
readLibraryDescription(Map<String,Object> model)
Reads a resource into string form.
|
protected boolean |
useServerSide(TypeElement declaration,
AntPatternMatcher matcher)
Whether to use the server-side declaration for this declaration.
|
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 File generateClientSources()
protected void copyServerSideType(File sourceDir, TypeElement type) throws IOException
IOExceptionprotected 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 File getServerSideDestFile(File sourceDir, JavaFileObject sourceFile, TypeElement declaration)
protected boolean useServerSide(TypeElement declaration, AntPatternMatcher matcher)
declaration - The declaration.matcher - The matcher.protected String getBeanName(ClientClassnameForMethod conversion, String preconvert)
conversion - The conversion to use.preconvert - The pre-converted fqn.protected File getCompileDir()
protected File copyResources()
protected File getResourcesDir()
protected File packageArtifacts(File sourceDir, File resourcesDir, File compileDir)
protected File getPackageDir()
protected String readLibraryDescription(Map<String,Object> model)
public WebMethod findExampleWebMethod()
DocumentationExample.
public Method findExampleResourceMethod()
DocumentationExample.
public String getJarName()
public String getSlug()
public boolean isBundleSourcesWithClasses()
public String getGroupId()
public String getArtifactId()
public String getVersion()
public String getJavacSource()
public String getJavacTarget()
public List<File> getProjectSources()
getProjectSources in interface ProjectExtensionModulepublic List<File> getProjectTestSources()
getProjectTestSources in interface ProjectExtensionModulepublic List<File> getProjectResourceDirectories()
getProjectResourceDirectories in interface ProjectExtensionModulepublic List<File> getProjectTestResourceDirectories()
getProjectTestResourceDirectories in interface ProjectExtensionModulepublic boolean isDisableCompile()
Copyright © 2006-2016–2017. All rights reserved.