public class PluginFactoryElement extends PluginFactoryImpl
plugin_element.properties' file and map the tag.
i.e. a map of br=test.PluginNewLine will perfome the plugin each
tag <br>.
| Modifier and Type | Field and Description |
|---|---|
protected static String |
ATT_AS
Attribute to create a element as another type.
|
protected static char |
SEPARATOR
Separator of name field.
|
aliasToTypeNames, aliasToTypes, file, initialized, kind, templates, typeNamesToAlias| Constructor and Description |
|---|
PluginFactoryElement()
Creates a factory loading file 'sr_plugins_element.properties'.
|
| Modifier and Type | Method and Description |
|---|---|
IPlugin |
newPlugin(nu.xom.Node node,
IContext context)
Creates a new plugin.
|
bind, finalizePlugin, getAlias, getClass, getKind, initialize, testprotected static final char SEPARATOR
protected static final String ATT_AS
as='type'
to refer the actual expected type. For example: to use a select element
in a specification you can do:
<select as="options" by="id:selectField">
...
</select>
This construction allows convert select action which select items in a
verification of options in the specified select.public PluginFactoryElement()
public IPlugin newPlugin(nu.xom.Node node, IContext context) throws PluginException
IPluginFactorynode - The source node for plugin creation.context - The context.PluginException - On creation error.Copyright © 2016. All rights reserved.