|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.xslthl.Config
public class Config
Contains the Xslthl configuration
Field Summary | |
---|---|
static String |
CONFIG_PROPERTY
System property that defines the path to the configuration file |
static Map<String,Class<? extends Highlighter>> |
highlighterClasses
Registered highlighter classes |
protected Map<String,MainHighlighter> |
highlighters
Registered highlighters |
protected Logger |
logger
The logging facility |
static String |
LOGLEVEL_PROPERTY
The log level for the xslthl logger |
static String |
NO_EXTERNAL_PROPERTY
Property set to disable external configuration loading |
static String |
PLUGIN_PREFIX
Prefix used for plug-able highlighters |
protected String |
prefix
Prefix to use on created XML elements |
protected String |
uri
The namespace uri |
protected boolean |
verbose
Deprecated. |
static String |
VERBOSE_LOADING_PROPERTY
Deprecated. since 2.1 XSLTHL uses the Java logging facility |
Constructor Summary | |
---|---|
protected |
Config()
|
protected |
Config(String configFilename)
|
Method Summary | |
---|---|
protected void |
createHighlighters(MainHighlighter main,
Iterator<Element> elements)
Creates the defined highlighters |
static Config |
getInstance()
Get the default config |
static Config |
getInstance(String filename)
Get the config from a given file |
MainHighlighter |
getMainHighlighter(String id)
Get the highlighter for a given language id, URI or filename. |
String |
getPrefix()
|
String |
getUri()
|
protected void |
loadConfiguration(String configFilename)
Load the configuration |
protected MainHighlighter |
loadHl(String id,
String filename)
Load a language highlighter configuration |
protected Class<? extends Highlighter> |
loadPlugin(MainHighlighter main,
String type,
String classpath)
Load a plugin highlighter |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String CONFIG_PROPERTY
@Deprecated public static final String VERBOSE_LOADING_PROPERTY
public static final String LOGLEVEL_PROPERTY
public static final String NO_EXTERNAL_PROPERTY
public static final Map<String,Class<? extends Highlighter>> highlighterClasses
public static final String PLUGIN_PREFIX
protected String prefix
protected String uri
protected Map<String,MainHighlighter> highlighters
protected Logger logger
@Deprecated protected boolean verbose
Constructor Detail |
---|
protected Config()
protected Config(String configFilename)
Method Detail |
---|
public static Config getInstance()
public static Config getInstance(String filename)
filename
-
public String getPrefix()
public String getUri()
public MainHighlighter getMainHighlighter(String id)
id
-
protected MainHighlighter loadHl(String id, String filename) throws Exception
filename
-
Exception
protected void createHighlighters(MainHighlighter main, Iterator<Element> elements)
main
- elements
- protected Class<? extends Highlighter> loadPlugin(MainHighlighter main, String type, String classpath)
type
- classpath
-
protected void loadConfiguration(String configFilename)
configFilename
- When null or empty the default system configuration will be
used
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |