Class AbstractApiMethodGeneratorMojo

All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Direct Known Subclasses:
JavaSourceApiMethodGeneratorMojo

public abstract class AbstractApiMethodGeneratorMojo extends AbstractApiMethodBaseMojo
Base Mojo class for ApiMethod generators.
  • Field Details

    • proxyClass

      @Parameter(required=true, property="org.apache.camel.proxyClass") protected String proxyClass
    • classPrefix

      @Parameter protected String classPrefix
    • apiName

      @Parameter protected String apiName
    • apiDescription

      @Parameter protected String apiDescription
    • consumerOnly

      @Parameter protected boolean consumerOnly
    • producerOnly

      @Parameter protected boolean producerOnly
    • aliases

      @Parameter protected List<ApiMethodAlias> aliases
      Method alias patterns for all APIs.
    • nullableOptions

      @Parameter protected String[] nullableOptions
      Names of options that can be set to null value if not specified.
  • Constructor Details

    • AbstractApiMethodGeneratorMojo

      public AbstractApiMethodGeneratorMojo()
  • Method Details

    • executeInternal

      public void executeInternal() throws org.apache.maven.plugin.MojoExecutionException
      Description copied from class: AbstractGeneratorMojo
      Template Method which assumes AbstractGeneratorMojo.projectClassLoader is set.
      Specified by:
      executeInternal in class AbstractGeneratorMojo
      Throws:
      org.apache.maven.plugin.MojoExecutionException
    • createAdapterParser

      protected org.apache.camel.support.component.ApiMethodParser<?> createAdapterParser(Class<?> proxyType)
    • getSignatureList

      public abstract List<SignatureModel> getSignatureList() throws org.apache.maven.plugin.MojoExecutionException
      Throws:
      org.apache.maven.plugin.MojoExecutionException
    • getProxyType

      public Class<?> getProxyType() throws org.apache.maven.plugin.MojoExecutionException
      Throws:
      org.apache.maven.plugin.MojoExecutionException
    • getApiMethodFile

      public File getApiMethodFile()
    • getArgumentSubstitutions

      public org.apache.camel.support.component.ArgumentSubstitutionParser.Substitution[] getArgumentSubstitutions()
    • getType

      public static String getType(Class<?> clazz)
    • getAliases

      public String getAliases()
    • getApiMethodsForParam

      public static String getApiMethodsForParam(List<org.apache.camel.support.component.ApiMethodParser.ApiMethodModel> models, org.apache.camel.support.component.ApiMethodArg argument)
    • getTestName

      public static String getTestName(org.apache.camel.support.component.ApiMethodParser.ApiMethodModel model)
    • isVoidType

      public static boolean isVoidType(Class<?> resultType)
    • getExchangePropertyPrefix

      public String getExchangePropertyPrefix()
    • getResultDeclaration

      public static String getResultDeclaration(Class<?> resultType)
    • hasDoc

      public boolean hasDoc(org.apache.camel.support.component.ApiMethodArg argument)
    • getDoc

      public String getDoc(org.apache.camel.support.component.ApiMethodArg argument)
    • getApiName

      public String getApiName(String apiName)
    • getApiDescription

      public String getApiDescription(String apiDescription)
    • isOptionalParameter

      public boolean isOptionalParameter(org.apache.camel.support.component.ApiMethodArg argument)
    • getCanonicalName

      public String getCanonicalName(org.apache.camel.support.component.ApiMethodArg argument)
    • getApiMethods

      public String getApiMethods(List<org.apache.camel.support.component.ApiMethodParser.ApiMethodModel> models)
    • getDefaultArgValue

      public static String getDefaultArgValue(Class<?> aClass)
    • getBeanPropertySuffix

      public static String getBeanPropertySuffix(String parameter)