org.merlotxml.merlot.plugin.dtd
Class DTDPluginConfig

java.lang.Object
  extended byorg.merlotxml.merlot.plugin.PluginConfig
      extended byorg.merlotxml.merlot.plugin.dtd.DTDPluginConfig

public class DTDPluginConfig
extends PluginConfig

Merlot DTD Plugin Configuration

Author:
Tim McCune

Field Summary
protected  org.merlotxml.merlot.plugin.dtd.DefaultEditorConfig _defaultEditorConfig
           
protected  DisplayTextConfig _displayTextConfig
           
protected  java.util.List _dtdConfigs
           
protected  java.util.List _editorConfigs
           
protected  java.util.List _iconConfigs
           
protected  TreeTableConfig _treeTableConfig
           
static int ICON_SIZE_LARGE
           
static int ICON_SIZE_SMALL
           
protected  java.util.Map iconMap
           
protected static java.lang.String XPATH_DEFAULT_EDITOR
           
protected static java.lang.String XPATH_DTD
           
protected static java.lang.String XPATH_EDITOR
           
protected static java.lang.String XPATH_ICON
           
protected static java.lang.String XPATH_TREE
           
 
Fields inherited from class org.merlotxml.merlot.plugin.PluginConfig
author, classLoader, longName, name, source, url, version, XPATH_AUTHOR, XPATH_DEPENDENCIES, XPATH_LONG_NAME, XPATH_NAME, XPATH_PLUGIN, XPATH_TEXT, XPATH_URL, XPATH_VERSION
 
Constructor Summary
DTDPluginConfig(PluginManager manager, java.lang.ClassLoader loader, java.io.File source)
           
 
Method Summary
 org.merlotxml.merlot.plugin.dtd.DefaultEditorConfig getDefaultEditorConfig()
           
 DisplayTextConfig getDisplayTextConfig()
           
 java.lang.Class getEditorClassFor(java.lang.String elementName)
           
 javax.swing.Icon getIconFor(java.lang.String elementName, int size)
           
 TreeTableConfig getTreeTableConfig()
           
 void parse(org.w3c.dom.Node node)
          Parse the default elements common to all plugins.
 java.lang.String toString()
           
 
Methods inherited from class org.merlotxml.merlot.plugin.PluginConfig
getAboutAction, getName, getNode, getSource, init, resolveDependencies, setClassLoader, setSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ICON_SIZE_LARGE

public static final int ICON_SIZE_LARGE
See Also:
Constant Field Values

ICON_SIZE_SMALL

public static final int ICON_SIZE_SMALL
See Also:
Constant Field Values

XPATH_DEFAULT_EDITOR

protected static final java.lang.String XPATH_DEFAULT_EDITOR
See Also:
Constant Field Values

XPATH_DTD

protected static final java.lang.String XPATH_DTD
See Also:
Constant Field Values

XPATH_EDITOR

protected static final java.lang.String XPATH_EDITOR
See Also:
Constant Field Values

XPATH_ICON

protected static final java.lang.String XPATH_ICON
See Also:
Constant Field Values

XPATH_TREE

protected static final java.lang.String XPATH_TREE
See Also:
Constant Field Values

_defaultEditorConfig

protected org.merlotxml.merlot.plugin.dtd.DefaultEditorConfig _defaultEditorConfig

_dtdConfigs

protected java.util.List _dtdConfigs

_editorConfigs

protected java.util.List _editorConfigs

_iconConfigs

protected java.util.List _iconConfigs

_treeTableConfig

protected TreeTableConfig _treeTableConfig

_displayTextConfig

protected DisplayTextConfig _displayTextConfig

iconMap

protected java.util.Map iconMap
Constructor Detail

DTDPluginConfig

public DTDPluginConfig(PluginManager manager,
                       java.lang.ClassLoader loader,
                       java.io.File source)
Method Detail

parse

public void parse(org.w3c.dom.Node node)
           throws PluginConfigException
Description copied from class: PluginConfig
Parse the default elements common to all plugins.

Overrides:
parse in class PluginConfig
Throws:
PluginConfigException - Thrown if there was a problem loading a DTD or an Editor object

getDefaultEditorConfig

public org.merlotxml.merlot.plugin.dtd.DefaultEditorConfig getDefaultEditorConfig()

getEditorClassFor

public java.lang.Class getEditorClassFor(java.lang.String elementName)

getIconFor

public javax.swing.Icon getIconFor(java.lang.String elementName,
                                   int size)

getTreeTableConfig

public TreeTableConfig getTreeTableConfig()

getDisplayTextConfig

public DisplayTextConfig getDisplayTextConfig()

toString

public java.lang.String toString()
Overrides:
toString in class PluginConfig