|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.commons.digester.RuleSetBase
org.apache.commons.chain.config.ConfigRuleSet
Digester RuleSet for configuring Chain of
Responsibility command chains, and adding them to an appropriate
Catalog. The following properties may be configured prior to
executing the addRuleInstance() method in order to influence
the rules that get added, with default values in square brackets:
Catalog instances.
If not specified, the default value is
org.apache.commons.chain.impl.CatalogBsae.Catalog. Any such catalog that is created
will be registered with the CatalogFactory instance for our
application, under the name specified by the nameAttribute
attribute (if present), or as the default Catalog. If not
specified, the default value is catalog.Chain instances. If not specified, the
default value is org.apache.commons.chain.impl.ChainBase.
Chain. A chain element has the same
functionality as a command element, except that it defaults the
implementation class to
org.apache.commons.chain.impl.ChainBase. [chain]Command. An implementation
class name must be provided on the attribute named by the
classAttribute property. [command]nameAttribute
attributes with a Command or Chain implementation class
named by the classAttribute attribute. [define]Catalog instance on the stack. [name]null for no namespace.
[null]
| Field Summary |
| Fields inherited from class org.apache.commons.digester.RuleSetBase |
namespaceURI |
| Constructor Summary | |
ConfigRuleSet()
|
|
| Method Summary | |
void |
addRuleInstances(org.apache.commons.digester.Digester digester)
Add the set of Rule instances defined in this RuleSet to the specified Digester instance, associating them with
our namespace URI (if any). |
String |
getCatalogClass()
Return the fully qualified Catalog implementation class. |
String |
getCatalogElement()
Return the element name of a catalog element. |
String |
getChainClass()
Return the fully qualified Chain implementation class. |
String |
getChainElement()
Return the element name of a chain element. |
String |
getClassAttribute()
Return the attribute name of a class attribute. |
String |
getCommandElement()
Return the element name of a command element. |
String |
getDefineElement()
Return the element name of a define element. |
String |
getNameAttribute()
Return the attribute name of a name attribute. |
void |
setCatalogClass(String catalogClass)
Set the fully qualified Catalog implementation class. |
void |
setCatalogElement(String catalogElement)
Set the element name of a catalog element. |
void |
setChainClass(String chainClass)
Set the fully qualified Chain implementation class. |
void |
setChainElement(String chainElement)
Set the element name of a chain element. |
void |
setClassAttribute(String classAttribute)
Set the attribute name of a class attribute. |
void |
setCommandElement(String commandElement)
Set the element name of a command element. |
void |
setDefineElement(String defineElement)
Set the element name of a define element. |
void |
setNameAttribute(String nameAttribute)
Set the attribute name of a name attribute. |
| Methods inherited from class org.apache.commons.digester.RuleSetBase |
getNamespaceURI |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ConfigRuleSet()
| Method Detail |
public String getCatalogClass()
Return the fully qualified Catalog implementation class.
public void setCatalogClass(String catalogClass)
Set the fully qualified Catalog implementation class.
catalogClass - The new Catalog implementation classpublic String getCatalogElement()
Return the element name of a catalog element.
public void setCatalogElement(String catalogElement)
Set the element name of a catalog element.
catalogElement - The new element namepublic String getChainClass()
Return the fully qualified Chain implementation class.
public void setChainClass(String chainClass)
Set the fully qualified Chain implementation class.
chainClass - The new Chain implementation classpublic String getChainElement()
Return the element name of a chain element.
public void setChainElement(String chainElement)
Set the element name of a chain element.
chainElement - The new element namepublic String getClassAttribute()
Return the attribute name of a class attribute.
public void setClassAttribute(String classAttribute)
Set the attribute name of a class attribute.
classAttribute - The new attribute namepublic String getCommandElement()
Return the element name of a command element.
public void setCommandElement(String commandElement)
Set the element name of a command element.
commandElement - The new element namepublic String getDefineElement()
Return the element name of a define element.
public void setDefineElement(String defineElement)
Set the element name of a define element.
defineElement - The new element namepublic String getNameAttribute()
Return the attribute name of a name attribute.
public void setNameAttribute(String nameAttribute)
Set the attribute name of a name attribute.
nameAttribute - The new attribute namepublic void addRuleInstances(org.apache.commons.digester.Digester digester)
Add the set of Rule instances defined in this RuleSet to the
specified Digester instance, associating them with
our namespace URI (if any). This method should only be called
by a Digester instance.
digester - Digester instance to which the new Rule instances
should be added.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||