public class PluginDeclarationRule extends Rule
Normally, a PluginDeclarationRule is added to a Digester instance with the pattern "{root}/plugin" or "* /plugin" where {root} is the name of the root tag in the input document.
Constructor and Description |
---|
PluginDeclarationRule()
constructor
|
Modifier and Type | Method and Description |
---|---|
void |
begin(String namespace,
String name,
Attributes attributes)
Invoked upon reading a tag defining a plugin declaration.
|
static void |
declarePlugin(Digester digester,
Properties props)
Helper method to declare a plugin inside the given Digester.
|
body, end, finish, getDigester, getNamespaceURI, setDigester, setNamespaceURI
public PluginDeclarationRule()
public void begin(String namespace, String name, Attributes attributes) throws Exception
begin
in class Rule
namespace
- The xml namespace in which the xml element which triggered this rule resides.name
- The name of the xml element which triggered this rule.attributes
- The set of attributes on the xml element which triggered this rule.Exception
- if any error occurspublic static void declarePlugin(Digester digester, Properties props) throws PluginException
digester
- The Digester instance to declare pluginprops
- the properties where extracting plugin attributesPluginException
- if any error occurs while declaring the pluginCopyright © 2001-2013 The Apache Software Foundation. All Rights Reserved.