Package net.sf.xslthl

Class Config

java.lang.Object
net.sf.xslthl.Config

public class Config extends Object
Contains the Xslthl configuration
  • Field Details

    • CONFIG_PROPERTY

      public static final String CONFIG_PROPERTY
      System property that defines the path to the configuration file
      See Also:
    • VERBOSE_LOADING_PROPERTY

      @Deprecated public static final String VERBOSE_LOADING_PROPERTY
      Deprecated.
      since 2.1 XSLTHL uses the Java logging facility
      If set to true be verbose during loading of the configuration
      See Also:
    • LOGLEVEL_PROPERTY

      public static final String LOGLEVEL_PROPERTY
      The log level for the xslthl logger
      Since:
      2.1
      See Also:
    • NO_EXTERNAL_PROPERTY

      public static final String NO_EXTERNAL_PROPERTY
      Property set to disable external configuration loading
      See Also:
    • highlighterClasses

      public static final Map<String,Class<? extends Highlighter>> highlighterClasses
      Registered highlighter classes
    • PLUGIN_PREFIX

      public static final String PLUGIN_PREFIX
      Prefix used for plug-able highlighters
      Since:
      2.1
      See Also:
  • Method Details

    • getInstance

      public static Config getInstance()
      Get the default config
      Returns:
    • getInstance

      public static Config getInstance(String filename)
      Get the config from a given file
      Parameters:
      filename -
      Returns:
    • getPrefix

      public String getPrefix()
      Returns:
      the prefix
    • getUri

      public String getUri()
      Returns:
      the uri
    • getMainHighlighter

      public MainHighlighter getMainHighlighter(String id)
      Get the highlighter for a given language id, URI or filename.
      Parameters:
      id -
      Returns:
      A highlighter, or null if no highlighter exists