org.merlotxml.merlot.plugin
Class PluginConfig
java.lang.Object
org.merlotxml.merlot.plugin.PluginConfig
- Direct Known Subclasses:
- ActionPluginConfig, DTDPluginConfig, NodeActionPluginConfig
- public abstract class PluginConfig
- extends java.lang.Object
Merlot Plugin Configuration
- Author:
- Tim McCune
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
XPATH_TEXT
protected static final java.lang.String XPATH_TEXT
- See Also:
- Constant Field Values
XPATH_PLUGIN
protected static final java.lang.String XPATH_PLUGIN
- See Also:
- Constant Field Values
XPATH_LONG_NAME
protected static final java.lang.String XPATH_LONG_NAME
- See Also:
- Constant Field Values
XPATH_NAME
protected static final java.lang.String XPATH_NAME
- See Also:
- Constant Field Values
XPATH_VERSION
protected static final java.lang.String XPATH_VERSION
- See Also:
- Constant Field Values
XPATH_AUTHOR
protected static final java.lang.String XPATH_AUTHOR
- See Also:
- Constant Field Values
XPATH_URL
protected static final java.lang.String XPATH_URL
- See Also:
- Constant Field Values
XPATH_DEPENDENCIES
protected static final java.lang.String XPATH_DEPENDENCIES
- See Also:
- Constant Field Values
source
protected java.io.File source
longName
protected java.lang.String longName
name
protected java.lang.String name
version
protected java.lang.String version
author
protected java.lang.String author
url
protected java.net.URL url
classLoader
protected java.lang.ClassLoader classLoader
- the classloader which this plugin uses to find its classes
PluginConfig
protected PluginConfig(PluginManager manager,
java.lang.ClassLoader loader,
java.io.File source)
setClassLoader
protected void setClassLoader(java.lang.ClassLoader classLoader)
parse
protected void parse(org.w3c.dom.Node node)
throws java.net.MalformedURLException,
org.xml.sax.SAXException,
PluginConfigException
- Parse the default elements common to all plugins.
- Throws:
java.net.MalformedURLException
- Thrown if a URL value was supplied that
is not a valid URL
org.xml.sax.SAXException
- Thrown if the configuration XML is incorrect
PluginConfigException
- Not thrown here, but declared in case
a subclass needs to throw it
resolveDependencies
protected void resolveDependencies()
throws PluginConfigException
- Throws:
PluginConfigException
init
protected void init()
throws PluginConfigException
- Throws:
PluginConfigException
setSource
protected void setSource(java.io.File source)
getSource
public java.io.File getSource()
getAboutAction
public javax.swing.AbstractAction getAboutAction()
getName
public java.lang.String getName()
toString
public java.lang.String toString()
getNode
public org.w3c.dom.Node getNode()