org.apache.commons.betwixt.digester
Class RuleSupport

java.lang.Object
  extended by org.apache.commons.digester.Rule
      extended by org.apache.commons.betwixt.digester.RuleSupport
Direct Known Subclasses:
AddDefaultsRule, AttributeRule, ElementRule, HideRule, InfoRule

public class RuleSupport
extends Rule

RuleSupport is an abstract base class containing useful helper methods.

Version:
$Revision: 1.3 $
Author:
James Strachan

Field Summary
private static Log log
          Logger
 
Fields inherited from class org.apache.commons.digester.Rule
digester, namespaceURI
 
Constructor Summary
RuleSupport()
          Base constructor
 
Method Summary
protected  java.lang.Class getBeanClass()
          Gets the class of the bean whose .betwixt file is being digested
protected  java.util.Set getProcessedPropertyNameSet()
          Gets the property names already processed
protected  XMLBeanInfoDigester getXMLInfoDigester()
          Gets XMLBeanInfoDigester using this rule.
protected  XMLIntrospector getXMLIntrospector()
          Gets XMLIntrospector to be used for introspection
 
Methods inherited from class org.apache.commons.digester.Rule
begin, 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 Log log
Logger

Constructor Detail

RuleSupport

public RuleSupport()
Base constructor

Method Detail

getXMLInfoDigester

protected XMLBeanInfoDigester getXMLInfoDigester()
Gets XMLBeanInfoDigester using this rule.

Returns:
XMLBeanInfoDigester for this rule

getXMLIntrospector

protected XMLIntrospector getXMLIntrospector()
Gets XMLIntrospector to be used for introspection

Returns:
XMLIntrospector to use

getBeanClass

protected java.lang.Class getBeanClass()
Gets the class of the bean whose .betwixt file is being digested

Returns:
the Class of the bean being processed

getProcessedPropertyNameSet

protected java.util.Set getProcessedPropertyNameSet()
Gets the property names already processed

Returns:
the set of property names that have been processed so far