|
||||||||||||
| 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 java.lang.Class |
beanClass
Class for which the .bewixt file is being digested |
private java.lang.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(org.xml.sax.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 java.beans.PropertyDescriptor |
getPropertyDescriptor(java.lang.Class beanClass,
java.lang.String propertyName)
Returns the property descriptor for the class and property name. |
protected java.lang.Class |
getPropertyType(java.lang.String propertyClassName,
java.lang.Class beanClass,
java.lang.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 java.lang.ClassLoader classLoader
private java.lang.Class beanClass
| Constructor Detail |
public ElementRule()
| Method Detail |
public void begin(org.xml.sax.Attributes attributes)
throws org.xml.sax.SAXException
attributes - The attribute list of this element
org.xml.sax.SAXException - when this tag's parent is not either an info or element tagpublic void end()
protected java.lang.Class getPropertyType(java.lang.String propertyClassName,
java.lang.Class beanClass,
java.lang.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 java.beans.PropertyDescriptor getPropertyDescriptor(java.lang.Class beanClass,
java.lang.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 | |||||||||||