| Package | Description |
|---|---|
| org.apache.commons.digester3 |
The
xmlrules package provides for XML-based definition of
rules for Digester. |
| org.apache.commons.digester3.annotations.rules |
Classes contained in this package are annotations that reflect Digester rules.
|
| org.apache.commons.digester3.binder |
The Digester EDSL allows configure Digester using fluent APIs.
|
| org.apache.commons.digester3.examples.api.catalog |
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractObjectCreationFactory<T>
Abstract base class for
ObjectCreationFactory implementations. |
| Modifier and Type | Field and Description |
|---|---|
protected ObjectCreationFactory<?> |
FactoryCreateRule.creationFactory
The object creation factory we will use to instantiate objects as required based on the attributes specified in
the matched XML element.
|
| Modifier and Type | Method and Description |
|---|---|
protected ObjectCreationFactory<?> |
FactoryCreateRule.getFactory(Attributes attributes)
Return an instance of our associated object creation factory, creating one if necessary.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Digester.addFactoryCreate(String pattern,
ObjectCreationFactory<?> creationFactory)
Add a "factory create" rule for the specified parameters.
|
void |
Digester.addFactoryCreate(String pattern,
ObjectCreationFactory<?> creationFactory,
boolean ignoreCreateExceptions)
Add a "factory create" rule for the specified parameters.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Digester.addFactoryCreate(String pattern,
Class<? extends ObjectCreationFactory<?>> clazz)
Add a "factory create" rule for the specified parameters.
|
void |
Digester.addFactoryCreate(String pattern,
Class<? extends ObjectCreationFactory<?>> clazz,
boolean ignoreCreateExceptions)
Add a "factory create" rule for the specified parameters.
|
void |
Digester.addFactoryCreate(String pattern,
Class<? extends ObjectCreationFactory<?>> clazz,
String attributeName)
Add a "factory create" rule for the specified parameters.
|
void |
Digester.addFactoryCreate(String pattern,
Class<? extends ObjectCreationFactory<?>> clazz,
String attributeName,
boolean ignoreCreateExceptions)
Add a "factory create" rule for the specified parameters.
|
| Constructor and Description |
|---|
FactoryCreateRule(ObjectCreationFactory<?> creationFactory)
Construct a factory create rule using the given, already instantiated,
ObjectCreationFactory. |
FactoryCreateRule(ObjectCreationFactory<?> creationFactory,
boolean ignoreCreateExceptions)
Construct a factory create rule using the given, already instantiated,
ObjectCreationFactory. |
| Constructor and Description |
|---|
FactoryCreateRule(Class<? extends ObjectCreationFactory<?>> clazz)
Construct a factory create rule that will use the specified class to create an
ObjectCreationFactory
which will then be used to create an object and push it on the stack. |
FactoryCreateRule(Class<? extends ObjectCreationFactory<?>> clazz,
boolean ignoreCreateExceptions)
Construct a factory create rule that will use the specified class to create an
ObjectCreationFactory
which will then be used to create an object and push it on the stack. |
FactoryCreateRule(Class<? extends ObjectCreationFactory<?>> clazz,
String attributeName)
Construct a factory create rule that will use the specified class (possibly overridden by the specified attribute
if present) to create an
ObjectCreationFactory, which will then be used to instantiate an object instance
and push it onto the stack. |
FactoryCreateRule(Class<? extends ObjectCreationFactory<?>> clazz,
String attributeName,
boolean ignoreCreateExceptions)
Construct a factory create rule that will use the specified class (possibly overridden by the specified attribute
if present) to create an
ObjectCreationFactory, which will then be used to instantiate an object instance
and push it onto the stack. |
| Modifier and Type | Class and Description |
|---|---|
static class |
FactoryCreate.DefaultObjectCreationFactory
Dummy ObjectCreationFactory type - only for annotation value type purposes.
|
| Modifier and Type | Method and Description |
|---|---|
<T> FactoryCreateBuilder |
FactoryCreateBuilder.usingFactory(ObjectCreationFactory<T> creationFactory)
Construct a factory create rule using the given, already instantiated,
ObjectCreationFactory. |
| Modifier and Type | Method and Description |
|---|---|
FactoryCreateBuilder |
FactoryCreateBuilder.ofType(Class<? extends ObjectCreationFactory<?>> type)
Construct a factory create rule that will use the specified class to create an
ObjectCreationFactory
which will then be used to create an object and push it on the stack. |
| Modifier and Type | Class and Description |
|---|---|
class |
BookFactory
The Book class doesn't have a no-argument constructor, so the
standard digester ObjectCreateRule can't be used to create instances
of it.
|
Copyright © 2001-2013 The Apache Software Foundation. All Rights Reserved.