org.kuali.rice.kew.plugin
Class PluginConfigParser

java.lang.Object
  extended by org.kuali.rice.kew.plugin.PluginConfigParser

public class PluginConfigParser
extends Object

Parses a PluginConfig configuration from an XML file.

Author:
Kuali Rice Team (rice.collab@kuali.org)

Field Summary
private static String CLASS_ATTRIBUTE
           
private static String LISTENER_CLASS_TAG
           
private static String LISTENER_TAG
           
private static String NAME_ATTRIBUTE
           
private static String PARAMETER_TAG
           
private static String RESOURCE_LOADER_TAG
           
private static String VALUE_ATTRIBUTE
           
 
Constructor Summary
PluginConfigParser()
           
 
Method Summary
 PluginConfig parse(File configFile, Config parentConfig)
           
 PluginConfig parse(URL url, Config parentConfig)
           
private  String parseListenerProperties(org.jdom.Element element)
           
 void parseListeners(org.jdom.Element element, PluginConfig pluginConfig)
           
private  String[] parseParameter(org.jdom.Element element)
           
 Map parseParameters(org.jdom.Element element)
           
 void parseResourceLoader(org.jdom.Element element, PluginConfig pluginConfig)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PARAMETER_TAG

private static final String PARAMETER_TAG
See Also:
Constant Field Values

LISTENER_TAG

private static final String LISTENER_TAG
See Also:
Constant Field Values

LISTENER_CLASS_TAG

private static final String LISTENER_CLASS_TAG
See Also:
Constant Field Values

RESOURCE_LOADER_TAG

private static final String RESOURCE_LOADER_TAG
See Also:
Constant Field Values

NAME_ATTRIBUTE

private static final String NAME_ATTRIBUTE
See Also:
Constant Field Values

VALUE_ATTRIBUTE

private static final String VALUE_ATTRIBUTE
See Also:
Constant Field Values

CLASS_ATTRIBUTE

private static final String CLASS_ATTRIBUTE
See Also:
Constant Field Values
Constructor Detail

PluginConfigParser

public PluginConfigParser()
Method Detail

parse

public PluginConfig parse(File configFile,
                          Config parentConfig)
                   throws IOException,
                          XmlException
Throws:
IOException
XmlException

parse

public PluginConfig parse(URL url,
                          Config parentConfig)
                   throws IOException,
                          XmlException
Throws:
IOException
XmlException

parseResourceLoader

public void parseResourceLoader(org.jdom.Element element,
                                PluginConfig pluginConfig)
                         throws XmlException
Throws:
XmlException

parseListeners

public void parseListeners(org.jdom.Element element,
                           PluginConfig pluginConfig)
                    throws XmlException
Throws:
XmlException

parseListenerProperties

private String parseListenerProperties(org.jdom.Element element)
                                throws XmlException
Throws:
XmlException

parseParameters

public Map parseParameters(org.jdom.Element element)
                    throws XmlException
Throws:
XmlException

parseParameter

private String[] parseParameter(org.jdom.Element element)
                         throws XmlException
Throws:
XmlException


Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.