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, ClassRule, ConfigRule, HideRule, InfoRule, MappedPropertyRule

public class RuleSupport
extends org.apache.commons.digester.Rule

RuleSupport is an abstract base class containing useful helper methods.

Version:
$Revision: 493795 $
Author:
James Strachan

Field Summary
 
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
protected  java.lang.Class loadClass(java.lang.String className)
          Loads the given class using an appropriate ClassLoader.
 
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
 

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

loadClass

protected java.lang.Class loadClass(java.lang.String className)
                             throws java.lang.ClassNotFoundException
Loads the given class using an appropriate ClassLoader. Uses Digester.getClassLoader().

Parameters:
className - names the class to be loaded
Returns:
Class loaded, not null
Throws:
java.lang.ClassNotFoundException


Copyright 2002-2008 The Apache Software Foundation. All Rights Reserved.