Class TemplateManager


  • public class TemplateManager
    extends java.lang.Object
    Manages all things template-related
    Version:
    $Revision: $
    Author:
    Mark Hall (mhall{[at]}pentaho{[dot]}com)
    • Constructor Detail

      • TemplateManager

        public TemplateManager()
    • Method Detail

      • numTemplates

        public int numTemplates()
        Get the total number of KF templates available
        Returns:
        the total number (both builtin and plugin) KF templates available
      • numBuiltinTemplates

        public int numBuiltinTemplates()
        Get the number of builtin KF templates available
        Returns:
        the number of builtin KF templates available
      • numPluginTemplates

        public int numPluginTemplates()
        Get the number of plugin KF templates available
        Returns:
        the number of plugin KF templates available
      • getBuiltinTemplateDescriptions

        public java.util.List<java.lang.String> getBuiltinTemplateDescriptions()
        Get descriptions for the built-in knowledge flow templates
        Returns:
        descriptions for the built-in templates
      • getPluginTemplateDescriptions

        public java.util.List<java.lang.String> getPluginTemplateDescriptions()
        Get descriptions for plugin knowledge flow templates
        Returns:
        descriptions for plugin templates
      • getTemplateFlow

        public Flow getTemplateFlow​(java.lang.String flowDescription)
                             throws WekaException
        Get the flow for the supplied description
        Parameters:
        flowDescription - the description of the template flow to get
        Returns:
        the template flow
        Throws:
        WekaException - if the template does not exist
      • getBuiltinTemplateFlow

        public Flow getBuiltinTemplateFlow​(java.lang.String flowDescription)
                                    throws java.io.IOException,
                                           WekaException
        Get the built-in template flow corresponding to the description
        Parameters:
        flowDescription - the description of the template flow to get
        Returns:
        the flow
        Throws:
        java.io.IOException - if an IO error occurs
        WekaException - if a problem occurs
      • getPluginTemplateFlow

        public Flow getPluginTemplateFlow​(java.lang.String flowDescription)
                                   throws java.io.IOException,
                                          WekaException
        Get the plugin template flow corresponding to the description
        Parameters:
        flowDescription - the description of the template flow to get
        Returns:
        the flow
        Throws:
        java.io.IOException - if an IO error occurs
        WekaException - if a problem occurs