|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.digester.Rule
org.apache.commons.chain.config.ConfigRegisterRule
class ConfigRegisterRule
Digester rule that will cause the top-most element on the Digester
stack (if it is a Command to be registered with the next-to-top
element on the Digester stack (if it is a Catalog or Chain).
To be registered with a Catalog, the top-most element must contain
a value for the specified attribute that contains the name under which
it should be registered.
| Field Summary | |
|---|---|
private java.lang.String |
nameAttribute
The name of the attribute under which we can retrieve the name this command should be registered with. |
| Fields inherited from class org.apache.commons.digester.Rule |
|---|
digester, namespaceURI |
| Constructor Summary | |
|---|---|
ConfigRegisterRule(java.lang.String nameAttribute)
Construct a new instance of this rule that looks for an attribute with the specified name. |
|
| Method Summary | |
|---|---|
void |
begin(java.lang.String namespace,
java.lang.String name,
org.xml.sax.Attributes attributes)
Register the top Command if appropriate. |
| Methods inherited from class org.apache.commons.digester.Rule |
|---|
begin, body, body, end, end, finish, getDigester, getNamespaceURI, setDigester, setNamespaceURI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private java.lang.String nameAttribute
The name of the attribute under which we can retrieve the name this command should be registered with.
| Constructor Detail |
|---|
public ConfigRegisterRule(java.lang.String nameAttribute)
Construct a new instance of this rule that looks for an attribute with the specified name.
nameAttribute - Name of the attribute containing the name under
which this command should be registered| Method Detail |
|---|
public void begin(java.lang.String namespace,
java.lang.String name,
org.xml.sax.Attributes attributes)
throws java.lang.Exception
Register the top Command if appropriate.
begin in class org.apache.commons.digester.Rulenamespace - the namespace URI of the matching element, or an
empty string if the parser is not namespace aware or the element has
no namespacename - the local name if the parser is namespace aware, or just
the element name otherwiseattributes - The attribute list of this element
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||