org.apache.commons.betwixt.digester
Class OptionRule

java.lang.Object
  extended byorg.apache.commons.digester.Rule
      extended byorg.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
 
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
 

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
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)
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-2006 The Apache Software Foundation. All Rights Reserved.