org.merlotxml.merlot.plugin
Class PluginConfig

java.lang.Object
  extended byorg.merlotxml.merlot.plugin.PluginConfig
Direct Known Subclasses:
ActionPluginConfig, DTDPluginConfig, NodeActionPluginConfig

public abstract class PluginConfig
extends java.lang.Object

Merlot Plugin Configuration

Author:
Tim McCune

Field Summary
protected  java.lang.String author
           
protected  java.lang.ClassLoader classLoader
          the classloader which this plugin uses to find its classes
protected  java.lang.String longName
           
protected  java.lang.String name
           
protected  java.io.File source
           
protected  java.net.URL url
           
protected  java.lang.String version
           
protected static java.lang.String XPATH_AUTHOR
           
protected static java.lang.String XPATH_DEPENDENCIES
           
protected static java.lang.String XPATH_LONG_NAME
           
protected static java.lang.String XPATH_NAME
           
protected static java.lang.String XPATH_PLUGIN
           
protected static java.lang.String XPATH_TEXT
           
protected static java.lang.String XPATH_URL
           
protected static java.lang.String XPATH_VERSION
           
 
Constructor Summary
protected PluginConfig(PluginManager manager, java.lang.ClassLoader loader, java.io.File source)
           
 
Method Summary
 javax.swing.AbstractAction getAboutAction()
           
 java.lang.String getName()
           
 org.w3c.dom.Node getNode()
           
 java.io.File getSource()
           
protected  void init()
           
protected  void parse(org.w3c.dom.Node node)
          Parse the default elements common to all plugins.
protected  void resolveDependencies()
           
protected  void setClassLoader(java.lang.ClassLoader classLoader)
           
protected  void setSource(java.io.File source)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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

Constructor Detail

PluginConfig

protected PluginConfig(PluginManager manager,
                       java.lang.ClassLoader loader,
                       java.io.File source)
Method Detail

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()