|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.xml.sax.helpers.DefaultHandler
org.apache.commons.digester.Digester
org.apache.commons.betwixt.digester.XMLBeanInfoDigester
public class XMLBeanInfoDigester
XMLBeanInfoDigester
is a digester of XML files
containing XMLBeanInfo definitions for a JavaBean.
Field Summary | |
---|---|
private boolean |
attributesForPrimitives
should attributes or elements be used for primitive types |
private Class |
beanClass
the beans class for this XML descriptor |
private XMLIntrospector |
introspector
the introspector that is using me |
private static Log |
log
Logger |
private Set |
processedPropertyNameSet
the set of property names processed so far |
Fields inherited from class org.apache.commons.digester.Digester |
---|
bodyText, bodyTexts, classLoader, configured, entityResolver, entityValidator, errorHandler, factory, inputSources, JAXP_SCHEMA_LANGUAGE, locator, match, matches, namespaceAware, namespaces, params, parser, publicId, reader, root, rules, saxLog, schemaLanguage, schemaLocation, stack, substitutor, useContextClassLoader, validating, W3C_XML_SCHEMA |
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
protected void |
configure()
Reset configure for new digestion |
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final Log log
private Class beanClass
private boolean attributesForPrimitives
private Set processedPropertyNameSet
private XMLIntrospector introspector
Constructor Detail |
---|
public XMLBeanInfoDigester()
public XMLBeanInfoDigester(SAXParser parser)
parser
- the SAXParser
to be used to parse the xmlpublic XMLBeanInfoDigester(XMLReader reader)
reader
- the XMLReader
to be used to parse the xmlMethod Detail |
---|
public Class getBeanClass()
public void setBeanClass(Class beanClass)
beanClass
- the Class
of the bean being processedpublic Set getProcessedPropertyNameSet()
public boolean isAttributesForPrimitives()
public void setAttributesForPrimitives(boolean attributesForPrimitives)
attributesForPrimitives
- pass true if primitive properties should be
written as attributespublic XMLIntrospector getXMLIntrospector()
public void setXMLIntrospector(XMLIntrospector introspector)
introspector
- the XMLIntrospector
that using this for .betwixt
digestionprotected void configure()
configure
in class Digester
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |