org.apache.commons.betwixt.digester
Class OptionRule

java.lang.Object
  extended by org.apache.commons.digester.Rule
      extended by 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:
Jakarta Commons Team

Field Summary
private  java.lang.String currentName
           
private  java.lang.String currentValue
           
 
Fields inherited from class org.apache.commons.digester.Rule
digester, namespaceURI
 
Constructor Summary
OptionRule()
           
 
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
 

Field Detail

currentValue

private java.lang.String currentValue

currentName

private java.lang.String currentName
Constructor Detail

OptionRule

public OptionRule()
Method Detail

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