Java org.apache.commons.digester Digester fields, constructors, methods, implement or subclass

Example usage for Java org.apache.commons.digester Digester fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.commons.digester Digester.

The text is from its open source code.

Subclass

org.apache.commons.digester.Digester has subclasses.
Click this link to see all its subclasses.

Constructor

Digester()
Construct a new Digester with default properties.
Digester(SAXParser parser)
Construct a new Digester, allowing a SAXParser to be passed in.
Digester(XMLReader reader)
Construct a new Digester, allowing an XMLReader to be passed in.

Method

voidaddBeanPropertySetter(String pattern, String propertyName)
Add a "bean property setter" rule for the specified parameters.
voidaddBeanPropertySetter(String pattern)
Add a "bean property setter" rule for the specified parameters.
voidaddCallMethod(String pattern, String methodName, int paramCount)
Add an "call method" rule for the specified parameters.
voidaddCallMethod(String pattern, String methodName, int paramCount, String paramTypes[])
Add an "call method" rule for the specified parameters.
voidaddCallMethod(String pattern, String methodName, int paramCount, Class paramTypes[])
Add an "call method" rule for the specified parameters.
voidaddCallMethod(String pattern, String methodName)
Add an "call method" rule for a method which accepts no arguments.
voidaddCallParam(String pattern, int paramIndex, String attributeName)
Add a "call parameter" rule for the specified parameters.
voidaddCallParam(String pattern, int paramIndex, boolean fromStack)
Add a "call parameter" rule.
voidaddCallParam(String pattern, int paramIndex, int stackIndex)
Add a "call parameter" rule that sets a parameter from the stack.
voidaddCallParam(String pattern, int paramIndex)
Add a "call parameter" rule for the specified parameters.
voidaddCallParamPath(String pattern, int paramIndex)
Add a "call parameter" rule that sets a parameter from the current Digester matching path.
voidaddFactoryCreate(String pattern, String className)
Add a "factory create" rule for the specified parameters.
voidaddFactoryCreate(String pattern, Class clazz)
Add a "factory create" rule for the specified parameters.
voidaddFactoryCreate(String pattern, ObjectCreationFactory creationFactory)
Add a "factory create" rule for the specified parameters.
voidaddObjectCreate(String pattern, String className)
Add an "object create" rule for the specified parameters.
voidaddObjectCreate(String pattern, Class clazz)
Add an "object create" rule for the specified parameters.
voidaddObjectCreate(String pattern, String className, String attributeName)
Add an "object create" rule for the specified parameters.
voidaddObjectCreate(String pattern, String attributeName, Class clazz)
Add an "object create" rule for the specified parameters.
voidaddObjectParam(String pattern, int paramIndex, Object paramObj)
Add a "call parameter" rule that sets a parameter from a caller-provided object.
voidaddRule(String pattern, Rule rule)

Register a new Rule matching the specified pattern.

voidaddRuleSet(RuleSet ruleSet)
Register a set of Rule instances defined in a RuleSet.
voidaddSetNestedProperties(String pattern)
Adds an SetNestedPropertiesRule .
voidaddSetNext(String pattern, String methodName)
Add a "set next" rule for the specified parameters.
voidaddSetNext(String pattern, String methodName, String paramType)
Add a "set next" rule for the specified parameters.
voidaddSetProperties(String pattern)
Add a "set properties" rule for the specified parameters.
voidaddSetProperties(String pattern, String attributeName, String propertyName)
Add a "set properties" rule with a single overridden parameter.
voidaddSetProperties(String pattern, String[] attributeNames, String[] propertyNames)
Add a "set properties" rule with overridden parameters.
voidaddSetProperty(String pattern, String name, String value)
Add a "set property" rule for the specified parameters.
voidaddSetRoot(String pattern, String methodName)
Add SetRootRule with the specified parameters.
voidaddSetTop(String pattern, String methodName, String paramType)
Add a "set top" rule for the specified parameters.
voidaddSetTop(String pattern, String methodName)
Add a "set top" rule for the specified parameters.
voidclear()
Clear the current contents of the default object stack, the param stack, all named stacks, and other internal variables.
SAXExceptioncreateSAXException(Exception e)
Create a SAX exception which also understands about the location in the digester file where the exception occurs
SAXExceptioncreateSAXException(String message)
Create a SAX exception which also understands about the location in the digester file where the exception occurs
ClassgetClass()
Returns the runtime class of this Object .
BundlegetClassLoader()
StringgetCurrentElementName()
Return the name of the XML element that is currently being processed.
MapgetCurrentNamespaces()
Get the most current namespaces for all prefixes.
ContentHandlergetCustomContentHandler()
LocatorgetDocumentLocator()
Gets the document locator associated with our parser.
EntityResolvergetEntityResolver()
Return the Entity Resolver used by the SAX parser.
SAXParserFactorygetFactory()
Return the SAXParserFactory we will use, creating one if necessary.
booleangetNamespaceAware()
Return the "namespace aware" flag for parsers we create.
ObjectgetRoot()
Returns the root element of the tree of objects created as a result of applying the rule objects to the input XML.
StringgetRuleNamespaceURI()
Return the namespace URI that will be applied to all subsequently added Rule objects.
RulesgetRules()
Return the Rules implementation object containing our rules collection and associated matching policy.
Objectparse(File file)
Parse the content of the specified file using this Digester.
Objectparse(InputSource input)
Parse the content of the specified input source using this Digester.
Objectparse(InputStream input)
Parse the content of the specified input stream using this Digester.
Objectparse(Reader reader)
Parse the content of the specified reader using this Digester.
Objectparse(String uri)
Parse the content of the specified URI using this Digester.
Objectparse(URL url)
Parse the content of the specified URL using this Digester.
Objectpeek()
Return the top object on the stack without removing it.
Objectpop()
Pop the top object off of the stack, and return it.
Objectpop(String stackName)

Pops (gets and removes) the top object from the stack with the given name.

Note: a stack is considered empty if no objects have been pushed onto it yet.

voidpush(Object object)
Push a new object onto the top of the object stack.
voidpush(String stackName, Object value)
Pushes the given object onto the stack with the given name.
voidregister(String publicId, URL entityURL)

Register the specified DTD URL for the specified public identifier.

voidregister(String publicId, String entityURL)

Convenience method that registers the string version of an entity URL instead of a URL version.

voidsetClassloader(Bundle classLoader)
voidsetCustomContentHandler(ContentHandler handler)
Redirects (or cancels redirecting) of SAX ContentHandler events to an external object.
voidsetDebug(int debug)
Set the debugging detail level of our currently enabled logger.
voidsetEntityResolver(EntityResolver entityResolver)
Set the EntityResolver used by SAX when resolving public id and system id.
voidsetErrorHandler(ErrorHandler errorHandler)
Set the error handler for this Digester.
voidsetFeature(String feature, boolean value)
Sets a flag indicating whether the requested feature is supported by the underlying implementation of org.xml.sax.XMLReader.
voidsetNamespaceAware(boolean namespaceAware)
Set the "namespace aware" flag for parsers we create.
voidsetProperty(String property, Object value)
Set the current value of the specified property for the underlying XMLReader implementation.
voidsetPublicId(String publicId)
Set the publid id of the current file being parse.
voidsetRuleNamespaceURI(String ruleNamespaceURI)
Set the namespace URI that will be applied to all subsequently added Rule objects.
voidsetRules(Rules rules)
Set the Rules implementation object containing our rules collection and associated matching policy.
voidsetSchema(String schemaLocation)
Set the XML Schema URI used for validating the input XML.
voidsetSubstitutor(Substitutor substitutor)
Sets the Substitutor to be used to convert attributes and body text.
voidsetUseContextClassLoader(boolean use)
Determine whether to use the Context ClassLoader (the one found by calling Thread.currentThread().getContextClassLoader()) to resolve/load classes that are defined in various rules.
voidsetValidating(boolean validating)
Set the validating parser flag.
voidsetXIncludeAware(boolean xincludeAware)
Set the XInclude-aware flag for parsers we create.