public final class PluginCreateRuleBuilder extends Object
LinkedRuleBuilder.createPlugin()
.Modifier and Type | Method and Description |
---|---|
protected PluginCreateRule |
createRule()
Provides an instance of
Rule . |
R |
get()
Provides an instance of
Rule . |
String |
getNamespaceURI()
Returns the namespace URI for which this Rule is relevant, if any.
|
String |
getPattern()
Returns the rule pattern associated to this builder.
|
<T> PluginCreateRuleBuilder |
ofType(Class<T> type)
Set the class which any specified plugin must be descended from.
|
protected void |
reportError(String methodChain,
String message) |
PluginCreateRuleBuilder |
setPluginClassAttribute(String attrName)
Sets the xml attribute which the input xml uses to indicate to a
PluginCreateRule which class should be instantiated.
|
PluginCreateRuleBuilder |
setPluginClassAttribute(String namespaceUri,
String attrName)
Sets the xml attribute which the input xml uses to indicate to a
PluginCreateRule which class should be instantiated.
|
PluginCreateRuleBuilder |
setPluginIdAttribute(String attrName)
Sets the xml attribute which the input xml uses to indicate to a
PluginCreateRule which plugin declaration is being referenced.
|
PluginCreateRuleBuilder |
setPluginIdAttribute(String namespaceUri,
String attrName)
Sets the xml attribute which the input xml uses to indicate to a
PluginCreateRule which plugin declaration is being referenced.
|
LinkedRuleBuilder |
then()
Come back to the main
LinkedRuleBuilder . |
<T> PluginCreateRuleBuilder |
usingDefaultPluginClass(Class<T> type)
Set the class which will be used if the user doesn't specify any plugin-class or plugin-id.
|
<RL extends RuleLoader> |
usingRuleLoader(RL ruleLoader)
Set RuleLoader instance which knows how to load the custom rules associated with the default plugin.
|
public <T> PluginCreateRuleBuilder ofType(Class<T> type)
T
- Any Java typetype
- the class which any specified plugin must be descended frompublic <T> PluginCreateRuleBuilder usingDefaultPluginClass(Class<T> type)
T
- Any Java typetype
- the class which will be used if the user doesn't specify any plugin-class or plugin-id.public <RL extends RuleLoader> PluginCreateRuleBuilder usingRuleLoader(RL ruleLoader)
RL
- Any RuleLoader
extension.ruleLoader
- the RuleLoader instance which knows how to load the custom rules associated with
the default plugin.public PluginCreateRuleBuilder setPluginClassAttribute(String attrName)
attrName
- the xml attribute which the input xml uses to indicate to a
PluginCreateRule which class should be instantiated.public PluginCreateRuleBuilder setPluginClassAttribute(String namespaceUri, String attrName)
namespaceUri
- The attribute NameSpaceattrName
- The attribute namepublic PluginCreateRuleBuilder setPluginIdAttribute(String attrName)
attrName
- The attribute namepublic PluginCreateRuleBuilder setPluginIdAttribute(String namespaceUri, String attrName)
namespaceUri
- The attribute NameSpaceattrName
- The attribute nameprotected PluginCreateRule createRule()
Rule
. Must never return null.public final LinkedRuleBuilder then()
LinkedRuleBuilder
.LinkedRuleBuilder
public final String getNamespaceURI()
public final R get()
Rule
. Must never return null.get
in interface RuleProvider<R extends Rule>
Rule
.protected final void reportError(String methodChain, String message)
public final String getPattern()
Copyright © 2001-2013 The Apache Software Foundation. All Rights Reserved.