public final class StandardValidation extends Object implements DependentPlugin
This includes auto-refinement of every Refinable
instance plus:
PseudoElementValidator
, (more to come).
Generally this should always be included except in cases where you want partial refinement. It should be added last so that other custom refiners will not be preempted. For more information on refinement see the main readme file.
Constructor and Description |
---|
StandardValidation()
Creates a new
StandardValidation instance that will also add an AutoRefine with AutoRefine.everything() . |
StandardValidation(boolean autoRefine)
Creates a new
StandardValidation instance that will also add an AutoRefine with AutoRefine.everything() as specified. |
Modifier and Type | Method and Description |
---|---|
void |
dependencies(PluginRegistry registry)
Registers plugin dependencies.
|
public StandardValidation()
StandardValidation
instance that will also add an AutoRefine
with AutoRefine.everything()
.public StandardValidation(boolean autoRefine)
StandardValidation
instance that will also add an AutoRefine
with AutoRefine.everything()
as specified.autoRefine
- Whether to also include auto-refinement of everything.public void dependencies(PluginRegistry registry)
DependentPlugin
Any plugins you add to the registry in this method will be ordered before this plugin itself.
Keep in mind that only one instance of a plugin can be added in a single parsing operation. You can use PluginRegistry.require(Class)
, PluginRegistry.require(Class, Supplier)
and PluginRegistry.retrieve(Class)
to assist in scenarios where a plugin instance may have already been added.
Dependencies to include can range from refinement dependencies such as SelectorPlugin
and MediaPlugin
to
other custom plugins.
dependencies
in interface DependentPlugin
registry
- The PluginRegistry
instance.PluginRegistry.require(Class)
,
PluginRegistry.require(Class, Supplier)
,
PluginRegistry.retrieve(Class)
Copyright (c) 2019, Salesforce.com, Inc. All rights reserved. Licensed under the BSD 3-Clause license. For full license text, see the LICENSE file in the repository.