org.apache.commons.betwixt.digester
Class TextRule

java.lang.Object
  extended byorg.apache.commons.digester.Rule
      extended byorg.apache.commons.betwixt.digester.RuleSupport
          extended byorg.apache.commons.betwixt.digester.MappedPropertyRule
              extended byorg.apache.commons.betwixt.digester.TextRule

public class TextRule
extends MappedPropertyRule

Rule for parsing <text> elements. These allow mixed content text to be specified. A mixed content element example:

     <foo>text<bar/></foo>
 

Version:
$Id: TextRule.java 155402 2005-02-26 12:52:00Z dirkv $
Author:
Robert Burrell Donkin

Field Summary
private static org.apache.commons.logging.Log log
          Logger
 
Fields inherited from class org.apache.commons.betwixt.digester.MappedPropertyRule
 
Fields inherited from class org.apache.commons.digester.Rule
digester, namespaceURI
 
Constructor Summary
TextRule()
          Base constructor
 
Method Summary
 void begin(java.lang.String name, java.lang.String namespace, org.xml.sax.Attributes attributes)
          Process the beginning of this element.
 
Methods inherited from class org.apache.commons.betwixt.digester.MappedPropertyRule
getPropertyDescriptor, getPropertyType
 
Methods inherited from class org.apache.commons.betwixt.digester.RuleSupport
getBeanClass, getProcessedPropertyNameSet, getXMLInfoDigester, getXMLIntrospector
 
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

log

private static final org.apache.commons.logging.Log log
Logger

Constructor Detail

TextRule

public TextRule()
Base constructor

Method Detail

begin

public void begin(java.lang.String name,
                  java.lang.String namespace,
                  org.xml.sax.Attributes attributes)
           throws org.xml.sax.SAXException
Process the beginning of this element.

Parameters:
attributes - The attribute list of this element
Throws:
org.xml.sax.SAXException - 1. If this tag's parent is not an element tag. 2. If this tag has a value attribute together with either a property or type attribute.