|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.digester3.binder.SetPropertiesBuilder
public final class SetPropertiesBuilder
Builder chained when invoking LinkedRuleBuilder.setProperties()
.
Method Summary | |
---|---|
AddAliasBuilder<SetPropertiesBuilder> |
addAlias(String attributeName)
Add an additional attribute name to property name mapping. |
SetPropertiesBuilder |
addAlias(String attributeName,
String propertyName)
Deprecated. |
protected SetPropertiesRule |
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. |
SetPropertiesBuilder |
ignoreAttribute(String attributeName)
Add an attribute name to the ignore list. |
SetPropertiesBuilder |
ignoreMissingProperty(boolean ignoreMissingProperty)
Sets whether attributes found in the XML without matching properties should be ignored. |
protected void |
reportError(String methodChain,
String message)
|
LinkedRuleBuilder |
then()
Come back to the main LinkedRuleBuilder . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
@Deprecated public SetPropertiesBuilder addAlias(String attributeName, String propertyName)
attributeName
- The attribute to matchpropertyName
- The java bean property to be assigned the value
public AddAliasBuilder<SetPropertiesBuilder> addAlias(String attributeName)
attributeName
- The attribute to match
public SetPropertiesBuilder ignoreAttribute(String attributeName)
attributeName
- The attribute to match has to be ignored
public SetPropertiesBuilder ignoreMissingProperty(boolean ignoreMissingProperty)
NoSuchMethodException
if an unmatched attribute is found.
This allows to trap misspellings in the XML file.
ignoreMissingProperty
- false to stop the parsing on unmatched attributes
protected SetPropertiesRule 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 |