public class XMLBeanInfoDigester extends Digester
XMLBeanInfoDigester
is a digester of XML files
containing XMLBeanInfo definitions for a JavaBean.
Modifier and Type | Field and Description |
---|---|
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
|
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 and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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
|
addBeanPropertySetter, addBeanPropertySetter, addCallMethod, addCallMethod, addCallMethod, addCallMethod, addCallParam, addCallParam, addCallParam, addCallParam, addCallParamPath, addFactoryCreate, addFactoryCreate, addFactoryCreate, addFactoryCreate, addFactoryCreate, addFactoryCreate, addFactoryCreate, addFactoryCreate, addFactoryCreate, addFactoryCreate, addObjectCreate, addObjectCreate, addObjectCreate, addObjectCreate, addObjectParam, addRule, addRuleSet, addSetNestedProperties, addSetNestedProperties, addSetNestedProperties, addSetNext, addSetNext, addSetProperties, addSetProperties, addSetProperties, addSetProperty, addSetRoot, addSetRoot, addSetTop, addSetTop, characters, cleanup, clear, createInputSourceFromURL, createInputSourceFromURL, createSAXException, createSAXException, createSAXException, endDocument, endElement, endPrefixMapping, error, fatalError, findNamespaceURI, getClassLoader, getCount, getCurrentElementName, getCurrentNamespaces, getCustomContentHandler, getDebug, getDocumentLocator, getEntityResolver, getErrorHandler, getFactory, getFeature, getLogger, getMatch, getNamespaceAware, getParser, getProperty, getPublicId, getReader, getRoot, getRuleNamespaceURI, getRules, getSAXLogger, getSchema, getSchemaLanguage, getStackAction, getSubstitutor, getUseContextClassLoader, getValidating, getXMLReader, ignorableWhitespace, initialize, isEmpty, log, log, notationDecl, parse, parse, parse, parse, parse, parse, peek, peek, peek, peek, peekParams, peekParams, pop, pop, popParams, processingInstruction, push, push, pushParams, register, register, resetRoot, resolveEntity, setClassLoader, setCustomContentHandler, setDebug, setDocumentLocator, setEntityResolver, setErrorHandler, setFeature, setLogger, setNamespaceAware, setProperty, setPublicId, setRuleNamespaceURI, setRules, setSAXLogger, setSchema, setSchemaLanguage, setStackAction, setSubstitutor, setUseContextClassLoader, setValidating, skippedEntity, startDocument, startElement, startPrefixMapping, unparsedEntityDecl, warning
private static final Log log
private Class beanClass
private boolean attributesForPrimitives
private Set processedPropertyNameSet
private XMLIntrospector introspector
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 xmlpublic 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
digestion