public class AttributeRule extends RuleSupport
AttributeRule
the digester Rule for parsing the
<attribute> elements.
Modifier and Type | Field and Description |
---|---|
private Class |
beanClass
The
Class whose .betwixt file is being digested |
private ClassLoader |
classLoader
This loads all classes created by name.
|
private static Log |
log
Logger
|
digester, namespaceURI
Constructor and Description |
---|
AttributeRule()
Base constructor
|
Modifier and Type | Method and Description |
---|---|
void |
begin(Attributes attributes)
Process the beginning of this element.
|
protected void |
configureDescriptor(AttributeDescriptor attributeDescriptor)
Set the Expression and Updater from a bean property name
|
void |
end()
Process the end of this element.
|
protected Class |
loadClass(String name)
Loads a class (using the appropriate classloader)
|
getBeanClass, getProcessedPropertyNameSet, getXMLInfoDigester, getXMLIntrospector
begin, body, body, end, finish, getDigester, getNamespaceURI, setDigester, setNamespaceURI
private static final Log log
private ClassLoader classLoader
private Class beanClass
Class
whose .betwixt file is being digestedpublic void begin(Attributes attributes) throws SAXException
begin
in class Rule
attributes
- The attribute list of this elementSAXException
- if the attribute tag is not inside an element tagprotected Class loadClass(String name)
name
- the name of the class to loadprotected void configureDescriptor(AttributeDescriptor attributeDescriptor)
attributeDescriptor
- configure this AttributeDescriptor
from the property with a matching name in the bean class