public class AddDefaultsRule extends RuleSupport
AddDefaultsRule
appends all the default properties
to the current element.
Modifier and Type | Field and Description |
---|---|
private static Log |
log
Logger
|
digester, namespaceURI
Constructor and Description |
---|
AddDefaultsRule()
Base constructor
|
Modifier and Type | Method and Description |
---|---|
protected void |
addDescriptor(NodeDescriptor nodeDescriptor)
Add a desciptor to the top object on the Digester stack.
|
void |
begin(Attributes attributes)
Process the beginning of this element.
|
protected ElementDescriptor |
getRootElementDescriptor()
Gets an
ElementDescriptor for the top on digester's stack. |
getBeanClass, getProcessedPropertyNameSet, getXMLInfoDigester, getXMLIntrospector
begin, body, body, end, end, finish, getDigester, getNamespaceURI, setDigester, setNamespaceURI
private static final Log log
public void begin(Attributes attributes) throws Exception
protected void addDescriptor(NodeDescriptor nodeDescriptor) throws SAXException
nodeDescriptor
- add this NodeDescriptor
. Must not be null.SAXException
- if the parent for the addDefaults element is not a XMLBeanInfo
or a
ElementDescriptor
protected ElementDescriptor getRootElementDescriptor()
ElementDescriptor
for the top on digester's stack.ElementDescriptor
or a XMLBeanInfo
class (respectively)
Otherwise null.