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 Detail

      • 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 Detail

      • AbstractApiMethodGeneratorMojo

        public AbstractApiMethodGeneratorMojo()
    • Method Detail

      • 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()
                              throws org.apache.maven.plugin.MojoExecutionException
        Throws:
        org.apache.maven.plugin.MojoExecutionException
      • 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)
      • getApiDescription

        public String getApiDescription​(String apiDescription)
      • isOptionalParameter

        public boolean isOptionalParameter​(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)
      • getCanonicalName

        public String getCanonicalName​(org.apache.camel.support.component.ApiMethodArg argument)
                                throws org.apache.maven.plugin.MojoExecutionException
        Throws:
        org.apache.maven.plugin.MojoExecutionException