|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.digester.Rule
org.apache.commons.betwixt.digester.RuleSupport
org.apache.commons.betwixt.digester.ElementRule
ElementRule
the digester Rule for parsing
the <element> elements.
Field Summary | |
private Class |
beanClass
Class for which the .bewixt file is being digested |
private ClassLoader |
classLoader
Classloader used to load classes by name |
private static org.apache.commons.logging.Log |
log
Logger |
Fields inherited from class org.apache.commons.digester.Rule |
digester, namespaceURI |
Constructor Summary | |
ElementRule()
Base constructor |
Method Summary | |
void |
begin(Attributes attributes)
Process the beginning of this element. |
protected void |
configureDescriptor(ElementDescriptor elementDescriptor)
Set the Expression and Updater from a bean property name |
void |
end()
Process the end of this element. |
protected PropertyDescriptor |
getPropertyDescriptor(Class beanClass,
String propertyName)
Returns the property descriptor for the class and property name. |
protected Class |
getPropertyType(String propertyClassName,
Class beanClass,
String propertyName)
Gets the type of a property |
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, 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 |
private static final org.apache.commons.logging.Log log
private ClassLoader classLoader
private Class beanClass
Constructor Detail |
public ElementRule()
Method Detail |
public void begin(Attributes attributes) throws SAXException
attributes
- The attribute list of this element
SAXException
- when this tag's parent is not either an info or element tagpublic void end()
protected Class getPropertyType(String propertyClassName, Class beanClass, String propertyName)
propertyClassName
- class name for property type (may be null)beanClass
- class that has propertypropertyName
- the name of the property whose type is to be determined
protected void configureDescriptor(ElementDescriptor elementDescriptor)
elementDescriptor
- configure this ElementDescriptor
protected PropertyDescriptor getPropertyDescriptor(Class beanClass, String propertyName)
beanClass
- descriptor for property in this classpropertyName
- descriptor for property with this name
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |