Class BeanPropertySetterBuilder

java.lang.Object
org.apache.commons.digester3.binder.BeanPropertySetterBuilder
All Implemented Interfaces:
RuleProvider<BeanPropertySetterRule>

public final class BeanPropertySetterBuilder extends Object
Builder chained when invoking LinkedRuleBuilder.setBeanProperty().
  • Method Details

    • withName

      public BeanPropertySetterBuilder withName(String propertyName)
      Sets the name of property to set.
      Parameters:
      propertyName - The name of property to set
      Returns:
      this builder instance
    • extractPropertyNameFromAttribute

      Sets the attribute name from which the property name has to be extracted.
      Parameters:
      attribute - The attribute name from which extracting the name of property to set
      Returns:
      this builder instance
    • createRule

      Provides an instance of Rule. Must never return null.
      Returns:
      an instance of Rule.
      See Also:
    • then

      public final LinkedRuleBuilder then()
      Come back to the main LinkedRuleBuilder.
      Returns:
      the main LinkedRuleBuilder
    • getNamespaceURI

      public final String getNamespaceURI()
      Returns the namespace URI for which this Rule is relevant, if any.
      Returns:
      The namespace URI for which this Rule is relevant, if any
    • get

      public final BeanPropertySetterRule get()
      Provides an instance of Rule. Must never return null.
      Specified by:
      get in interface RuleProvider<R extends Rule>
      Returns:
      an instance of Rule.
    • reportError

      protected final void reportError(String methodChain, String message)
    • getPattern

      public final String getPattern()
      Returns the rule pattern associated to this builder.
      Returns:
      The rule pattern associated to this builder