public class

AddDefaultsRule

extends RuleSupport
java.lang.Object
   ↳ org.apache.commons.digester.Rule
     ↳ org.apache.commons.betwixt.digester.RuleSupport
       ↳ org.apache.commons.betwixt.digester.AddDefaultsRule

Class Overview

AddDefaultsRule appends all the default properties to the current element.

Summary

[Expand]
Inherited Fields
From class org.apache.commons.digester.Rule
Public Constructors
AddDefaultsRule()
Base constructor
Public Methods
void begin(String name, String namespace, Attributes attributes)
Process the beginning of this element.
Protected Methods
void addDescriptor(NodeDescriptor nodeDescriptor)
This method is deprecated. 0.5 replaced addDescriptor(Descriptor)
void addDescriptor(Descriptor nodeDescriptor)
Add a desciptor to the top object on the Digester stack.
ElementDescriptor getRootElementDescriptor()
Gets an ElementDescriptor for the top on digester's stack.
[Expand]
Inherited Methods
From class org.apache.commons.betwixt.digester.RuleSupport
From class org.apache.commons.digester.Rule
From class java.lang.Object

Public Constructors

public AddDefaultsRule ()

Base constructor

Public Methods

public void begin (String name, String namespace, Attributes attributes)

Process the beginning of this element.

Parameters
attributes The attribute list of this element
Throws
Exception generally this will indicate an unrecoverable error

Protected Methods

protected void addDescriptor (NodeDescriptor nodeDescriptor)

This method is deprecated.
0.5 replaced addDescriptor(Descriptor)

Add a desciptor to the top object on the Digester stack.

Parameters
nodeDescriptor add this NodeDescriptor. Must not be null.
Throws
SAXException if the parent for the addDefaults element is not a or if the top object on the stack is not a XMLBeanInfo or a ElementDescriptor

protected void addDescriptor (Descriptor nodeDescriptor)

Add a desciptor to the top object on the Digester stack.

Parameters
nodeDescriptor add this NodeDescriptor. Must not be null.
Throws
SAXException if the parent for the addDefaults element is not a or if the top object on the stack is not a XMLBeanInfo or a ElementDescriptor

protected ElementDescriptor getRootElementDescriptor ()

Gets an ElementDescriptor for the top on digester's stack.

Returns
  • the top object or the element description if the top object is an ElementDescriptor or a XMLBeanInfo class (respectively) Otherwise null.