public final class SetPropertiesBuilder extends Object
LinkedRuleBuilder.setProperties()
.Modifier and Type | Method and Description |
---|---|
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 . |
@Deprecated public SetPropertiesBuilder addAlias(String attributeName, String propertyName)
attributeName
- The attribute to matchpropertyName
- The java bean property to be assigned the valuepublic AddAliasBuilder<SetPropertiesBuilder> addAlias(String attributeName)
attributeName
- The attribute to matchpublic SetPropertiesBuilder ignoreAttribute(String attributeName)
attributeName
- The attribute to match has to be ignoredpublic 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 attributesprotected SetPropertiesRule createRule()
Rule
. Must never return null.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()
Copyright © 2001-2013 The Apache Software Foundation. All Rights Reserved.