Class RubyJSONClientModule

    • Constructor Detail

      • RubyJSONClientModule

        public RubyJSONClientModule()
    • Method Detail

      • usesUnmappableElements

        protected boolean usesUnmappableElements()
      • detectAccessorNamingErrors

        protected void detectAccessorNamingErrors()
      • getSourceDir

        protected File getSourceDir()
      • processTemplate

        public String processTemplate​(URL templateURL,
                                      Object model)
                               throws IOException,
                                      freemarker.template.TemplateException
        Processes the specified template with the given model.
        Parameters:
        templateURL - The template URL.
        model - The root model.
        Throws:
        IOException
        freemarker.template.TemplateException
      • packageToModule

        protected String packageToModule​(String pckg)
      • readResource

        protected String readResource​(String resource,
                                      Map<String,​Object> model)
        Reads a resource into string form.
        Parameters:
        resource - The resource to read.
        Returns:
        The string form of the resource.
      • findExampleResourceMethod

        public Method findExampleResourceMethod()
        Finds an example resource method, according to the following preference order:
        1. The first method annotated with DocumentationExample.
        2. The first method with BOTH an output payload with a known XML element and an input payload with a known XML element.
        3. The first method with an output payload with a known XML element.
        Returns:
        An example resource method, or if no good examples were found.
      • getSourceFileName

        protected String getSourceFileName()
        The name of the generated Ruby source file.
        Returns:
        The name of the generated Ruby source file.
      • getTemplateURL

        protected URL getTemplateURL​(String template)
        Get a template URL for the template of the given name.
        Parameters:
        template - The specified template.
        Returns:
        The URL to the specified template.
      • getSlug

        public String getSlug()
        The label for the PHP API.
        Returns:
        The label for the PHP API.
      • getPackageToModuleConversions

        public Map<String,​String> getPackageToModuleConversions()
        The package-to-module conversions.
        Returns:
        The package-to-module conversions.
      • getFacetIncludes

        public Set<String> getFacetIncludes()
      • getFacetExcludes

        public Set<String> getFacetExcludes()