Package net.sf.xslthl
Class Config
java.lang.Object
net.sf.xslthl.Config
Contains the Xslthl configuration
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
System property that defines the path to the configuration filestatic final Map
<String, Class<? extends Highlighter>> Registered highlighter classesstatic final String
The log level for the xslthl loggerstatic final String
Property set to disable external configuration loadingstatic final String
Prefix used for plug-able highlightersstatic final String
Deprecated.since 2.1 XSLTHL uses the Java logging facility -
Method Summary
Modifier and TypeMethodDescriptionstatic Config
Get the default configstatic Config
getInstance
(String filename) Get the config from a given fileGet the highlighter for a given language id, URI or filename.getUri()
-
Field Details
-
CONFIG_PROPERTY
System property that defines the path to the configuration file- See Also:
-
VERBOSE_LOADING_PROPERTY
Deprecated.since 2.1 XSLTHL uses the Java logging facilityIf set to true be verbose during loading of the configuration- See Also:
-
LOGLEVEL_PROPERTY
The log level for the xslthl logger- Since:
- 2.1
- See Also:
-
NO_EXTERNAL_PROPERTY
Property set to disable external configuration loading- See Also:
-
highlighterClasses
Registered highlighter classes -
PLUGIN_PREFIX
Prefix used for plug-able highlighters- Since:
- 2.1
- See Also:
-
-
Method Details
-
getInstance
Get the default config- Returns:
-
getInstance
Get the config from a given file- Parameters:
filename
-- Returns:
-
getPrefix
- Returns:
- the prefix
-
getUri
- Returns:
- the uri
-
getMainHighlighter
Get the highlighter for a given language id, URI or filename.- Parameters:
id
-- Returns:
- A highlighter, or null if no highlighter exists
-