public final class UtilPlugin extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
compare(nu.xom.Node node,
IPlugin plugin,
IResultSet result,
IComparator comparator,
Object expected,
Object received)
Perform a comparison and add the result to the given node.
|
static void |
compare(nu.xom.Node node,
IResultSet result,
Object expected,
Object received)
Perform a comparison and add the result to the given node.
|
static <T extends IPlugin> |
create(IContext context,
Class<T> type,
nu.xom.Element element)
Equivalent to
create(...,false). |
static <T extends IPlugin> |
create(IContext context,
Class<T> type,
nu.xom.Element element,
boolean initialize)
Creates a plugin based on its type.
|
static IPlugin |
create(IContext context,
IPlugin instance,
nu.xom.Element element)
Equivalent to
create(...,false). |
static IPlugin |
create(IContext context,
IPlugin instance,
nu.xom.Element element,
boolean initialize)
Creates a plugin based on its template.
|
static IPlugin |
destroy(IContext context,
IPlugin plugin,
nu.xom.Element element)
Make plugin sensible to attributes after running.
|
static void |
performChildren(nu.xom.Node node,
IContext context,
IResultSet result)
Executes the children of a given node.
|
static void |
performComandsFirst(IContext context,
IResultSet result,
nu.xom.Node element)
Perform children using commands before asserts.
|
public static <T extends IPlugin> T create(IContext context, Class<T> type, nu.xom.Element element) throws PluginException
create(...,false).T - A subtype of IPlugin.context - The reference context.type - The plugin type.element - The element to be used as reference for plugin creation.PluginException - On plugin creation errors.public static IPlugin create(IContext context, IPlugin instance, nu.xom.Element element) throws PluginException
create(...,false).context - The reference context.instance - The plugin template instance.element - The element to be used as reference for plugin creation.PluginException - On plugin creation errors.public static <T extends IPlugin> T create(IContext context, Class<T> type, nu.xom.Element element, boolean initialize) throws PluginException
T - A subtype of IPlugin.context - The reference context.type - The plugin type.element - The element to be used as reference for plugin creation.initialize - true, if initialize() should be called, false, otherwise.PluginException - On plugin creation errors.public static IPlugin create(IContext context, IPlugin instance, nu.xom.Element element, boolean initialize) throws PluginException
context - The reference context.instance - The template instance.element - The element to be used as reference for plugin creation.initialize - true, if initialize() should be called, false, otherwise.PluginException - On plugin creation errors.public static IPlugin destroy(IContext context, IPlugin plugin, nu.xom.Element element) throws PluginException
context - The context.plugin - The plugin.element - The element.PluginException - On plugin finalization.public static void performChildren(nu.xom.Node node,
IContext context,
IResultSet result)
throws PluginException
node - The parent node.context - The context.result - The result set.PluginException - On execution errors.public static void performComandsFirst(IContext context, IResultSet result, nu.xom.Node element) throws PluginException
context - The context.result - The result.element - The base element.PluginException - On execution errors.public static void compare(nu.xom.Node node,
IResultSet result,
Object expected,
Object received)
throws PluginException
node - Node to be annotated.result - The result set.expected - The expected String.received - The received StringPluginException - On plugin errors.public static void compare(nu.xom.Node node,
IPlugin plugin,
IResultSet result,
IComparator comparator,
Object expected,
Object received)
throws PluginException
node - Node to be annotated.plugin - The plugin type.result - The result set.comparator - The comparator.expected - The expected String.received - The received StringPluginException - On plugin errors.Copyright © 2016. All rights reserved.