|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.digester3.binder.ObjectCreateBuilder
public final class ObjectCreateBuilder
Builder chained when invoking LinkedRuleBuilder.createObject()
.
Method Summary | ||
---|---|---|
protected ObjectCreateRule |
createRule()
Provides an instance of Rule . |
|
R |
get()
Provides an instance of Rule . |
|
String |
getNamespaceURI()
Returns the namespace URI for which this Rule is relevant, if any. |
|
String |
getPattern()
Returns the rule pattern associated to this builder. |
|
|
ofType(Class<T> type)
Construct an object with the specified class. |
|
ObjectCreateBuilder |
ofType(String className)
Construct an object with the specified class name. |
|
ObjectCreateBuilder |
ofTypeSpecifiedByAttribute(String attributeName)
Allows specify the attribute containing an override class name if it is present. |
|
protected void |
reportError(String methodChain,
String message)
|
|
LinkedRuleBuilder |
then()
Come back to the main LinkedRuleBuilder . |
|
ObjectCreateBuilder |
usingConstructor(Class<?>... constructorArgumentTypes)
Allows users to specify constructor argument types. |
|
ObjectCreateBuilder |
usingConstructor(String... paramTypeNames)
Allows users to specify constructor argument type names. |
|
ObjectCreateBuilder |
usingDefaultConstructorArguments(Object... defaultConstructorArguments)
Allows users to specify default constructor arguments. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public ObjectCreateBuilder ofType(String className)
className
- Java class name of the object to be created
public <T> ObjectCreateBuilder ofType(Class<T> type)
T
- any java typetype
- Java class of the object to be created
public ObjectCreateBuilder ofTypeSpecifiedByAttribute(String attributeName)
attributeName
- The attribute containing an override class name if it is present
public ObjectCreateBuilder usingConstructor(String... paramTypeNames)
paramTypeNames
- the constructor argument type names
public ObjectCreateBuilder usingConstructor(Class<?>... constructorArgumentTypes)
constructorArgumentTypes
- the constructor argument types
public ObjectCreateBuilder usingDefaultConstructorArguments(Object... defaultConstructorArguments)
defaultConstructorArguments
- the default constructor arguments.
protected ObjectCreateRule createRule()
Rule
. Must never return null.
Rule
.get()
public final LinkedRuleBuilder then()
LinkedRuleBuilder
.
LinkedRuleBuilder
public final String getNamespaceURI()
public final R get()
Rule
. Must never return null.
get
in interface RuleProvider<R extends Rule>
Rule
.protected final void reportError(String methodChain, String message)
public final String getPattern()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |