org.apache.commons.betwixt.digester
Class OptionRule
java.lang.Object
org.apache.commons.digester.Rule
org.apache.commons.betwixt.digester.OptionRule
public class OptionRule
- extends org.apache.commons.digester.Rule
Maps option tree to an option in the
Options
on the current description.
- Since:
- 0.5
- Author:
- Apache Commons Team
Fields inherited from class org.apache.commons.digester.Rule |
digester, namespaceURI |
Method Summary |
void |
begin(java.lang.String namespace,
java.lang.String name,
org.xml.sax.Attributes attributes)
|
void |
end(java.lang.String namespace,
java.lang.String name)
|
org.apache.commons.digester.Rule |
getNameRule()
Gets the rule that maps the name element
associated with the option |
org.apache.commons.digester.Rule |
getValueRule()
Gets the rule that maps the value element
associated with the option |
Methods inherited from class org.apache.commons.digester.Rule |
begin, body, body, end, finish, getDigester, getNamespaceURI, setDigester, setNamespaceURI |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OptionRule
public OptionRule()
begin
public void begin(java.lang.String namespace,
java.lang.String name,
org.xml.sax.Attributes attributes)
throws java.lang.Exception
- Overrides:
begin
in class org.apache.commons.digester.Rule
- Throws:
java.lang.Exception
- See Also:
Rule.begin(java.lang.String, java.lang.String, Attributes)
end
public void end(java.lang.String namespace,
java.lang.String name)
- Overrides:
end
in class org.apache.commons.digester.Rule
- See Also:
Rule.end(java.lang.String, java.lang.String)
getNameRule
public org.apache.commons.digester.Rule getNameRule()
- Gets the rule that maps the
name
element
associated with the option
- Returns:
Rule
, not null
getValueRule
public org.apache.commons.digester.Rule getValueRule()
- Gets the rule that maps the
value
element
associated with the option
- Returns:
Rule
, not null
Copyright © 2002-2008 The Apache Software Foundation. All Rights Reserved.