|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.digester3.binder.PluginCreateRuleBuilder
public final class PluginCreateRuleBuilder
Builder chained when invoking LinkedRuleBuilder.createPlugin()
.
Method Summary | ||
---|---|---|
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. |
|
|
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 . |
|
|
usingDefaultPluginClass(Class<T> type)
Set the class which will be used if the user doesn't specify any plugin-class or plugin-id. |
|
|
usingRuleLoader(RL ruleLoader)
Set RuleLoader instance which knows how to load the custom rules associated with the default plugin. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public <T> PluginCreateRuleBuilder ofType(Class<T> type)
T
- Any Java typetype
- the class which any specified plugin must be descended from
public <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 name
public PluginCreateRuleBuilder setPluginIdAttribute(String attrName)
attrName
- The attribute name
public PluginCreateRuleBuilder setPluginIdAttribute(String namespaceUri, String attrName)
namespaceUri
- The attribute NameSpaceattrName
- The attribute name
protected PluginCreateRule createRule()
Rule
. Must never return null.
Rule
.get()
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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |