public class

XMLBeanInfoDigester

extends Digester
java.lang.Object
   ↳ org.xml.sax.helpers.DefaultHandler
     ↳ org.apache.commons.digester.Digester
       ↳ org.apache.commons.betwixt.digester.XMLBeanInfoDigester
Known Direct Subclasses

Class Overview

XMLBeanInfoDigester is a digester of XML files containing XMLBeanInfo definitions for a JavaBean.

Summary

[Expand]
Inherited Constants
From class org.apache.commons.digester.Digester
[Expand]
Inherited Fields
From class org.apache.commons.digester.Digester
Public Constructors
XMLBeanInfoDigester()
Construct a new XMLBeanInfoDigester with default properties.
XMLBeanInfoDigester(SAXParser parser)
Construct a new XMLBeanInfoDigester, allowing a SAXParser to be passed in.
XMLBeanInfoDigester(XMLReader reader)
Construct a new XMLBeanInfoDigester, allowing an XMLReader to be passed in.
Public Methods
Class getBeanClass()
Gets the class of the bean whose .betwixt file is being processed
Set getProcessedPropertyNameSet()
Gets the property names already processed
XMLIntrospector getXMLIntrospector()
Gets the XMLIntrospector that's using this digester.
boolean isAttributesForPrimitives()
Should attributes (or elements) be used for primitive types?
void setAttributesForPrimitives(boolean attributesForPrimitives)
Set whether attributes (or elements) should be used for primitive types.
void setBeanClass(Class beanClass)
Sets the beans class for this XML descriptor
void setXMLIntrospector(XMLIntrospector introspector)
Sets the introspector that is using me
Protected Methods
void configure()
Reset configure for new digestion
[Expand]
Inherited Methods
From class org.apache.commons.digester.Digester
From class org.xml.sax.helpers.DefaultHandler
From class java.lang.Object
From interface org.xml.sax.ContentHandler
From interface org.xml.sax.DTDHandler
From interface org.xml.sax.EntityResolver
From interface org.xml.sax.ErrorHandler

Public Constructors

public XMLBeanInfoDigester ()

Construct a new XMLBeanInfoDigester with default properties.

public XMLBeanInfoDigester (SAXParser parser)

Construct a new XMLBeanInfoDigester, allowing a SAXParser to be passed in. This allows XMLBeanInfoDigester to be used in environments which are unfriendly to JAXP1.1 (such as WebLogic 6.0). Thanks for the request to change go to James House (james@interobjective.com). This may help in places where you are able to load JAXP 1.1 classes yourself.

Parameters
parser the SAXParser to be used to parse the xml

public XMLBeanInfoDigester (XMLReader reader)

Construct a new XMLBeanInfoDigester, allowing an XMLReader to be passed in. This allows XMLBeanInfoDigester to be used in environments which are unfriendly to JAXP1.1 (such as WebLogic 6.0). Note that if you use this option you have to configure namespace and validation support yourself, as these properties only affect the SAXParser and emtpy constructor.

Parameters
reader the XMLReader to be used to parse the xml

Public Methods

public Class getBeanClass ()

Gets the class of the bean whose .betwixt file is being processed

Returns
  • the beans class for this XML descriptor

public Set getProcessedPropertyNameSet ()

Gets the property names already processed

Returns
  • the set of property names that have been processed so far

public XMLIntrospector getXMLIntrospector ()

Gets the XMLIntrospector that's using this digester.

Returns
  • the introspector that is using me

public boolean isAttributesForPrimitives ()

Should attributes (or elements) be used for primitive types?

Returns
  • true if primitive properties should be written as attributes in the xml

public void setAttributesForPrimitives (boolean attributesForPrimitives)

Set whether attributes (or elements) should be used for primitive types.

Parameters
attributesForPrimitives pass true if primitive properties should be written as attributes

public void setBeanClass (Class beanClass)

Sets the beans class for this XML descriptor

Parameters
beanClass the Class of the bean being processed

public void setXMLIntrospector (XMLIntrospector introspector)

Sets the introspector that is using me

Parameters
introspector the XMLIntrospector that using this for .betwixt digestion

Protected Methods

protected void configure ()

Reset configure for new digestion