|
||||||||||
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.AttributeRule
public class AttributeRule
AttributeRule
the digester Rule for parsing the
<attribute> elements.
Field Summary | |
---|---|
private java.lang.Class |
beanClass
The Class whose .betwixt file is being digested |
private java.lang.ClassLoader |
classLoader
This loads all classes created by name. |
private static org.apache.commons.logging.Log |
log
Logger |
Fields inherited from class org.apache.commons.digester.Rule |
---|
digester, namespaceURI |
Constructor Summary | |
---|---|
AttributeRule()
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. |
protected void |
configureDescriptor(AttributeDescriptor attributeDescriptor)
Set the Expression and Updater from a bean property name |
private void |
configureProperty(AttributeDescriptor attributeDescriptor,
java.beans.PropertyDescriptor propertyDescriptor)
Configure an AttributeDescriptor from a PropertyDescriptor |
void |
end(java.lang.String name,
java.lang.String namespace)
Process the end of this element. |
protected java.lang.Class |
loadClass(java.lang.String name)
Loads a class (using the appropriate classloader) |
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
Class
whose .betwixt file is being digested
Constructor Detail |
---|
public AttributeRule()
Method Detail |
---|
public void begin(java.lang.String name, java.lang.String namespace, org.xml.sax.Attributes attributes) throws org.xml.sax.SAXException
begin
in class org.apache.commons.digester.Rule
attributes
- The attribute list of this element
org.xml.sax.SAXException
- 1. If the attribute tag is not inside an element tag.
2. If the name attribute is not valid XML attribute name.public void end(java.lang.String name, java.lang.String namespace)
end
in class org.apache.commons.digester.Rule
protected java.lang.Class loadClass(java.lang.String name)
name
- the name of the class to load
protected void configureDescriptor(AttributeDescriptor attributeDescriptor)
attributeDescriptor
- configure this AttributeDescriptor
from the property with a matching name in the bean classprivate void configureProperty(AttributeDescriptor attributeDescriptor, java.beans.PropertyDescriptor propertyDescriptor)
AttributeDescriptor
from a PropertyDescriptor
attributeDescriptor
- configure this AttributeDescriptor
propertyDescriptor
- configure from this PropertyDescriptor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |