Class AbstractParamTypeBuilder<R extends AbstractMethodRule>

    • Method Detail

      • withParameterType

        public final AbstractParamTypeBuilder<RwithParameterType​(java.lang.Class<?> paramType)
        Sets the Java class of the method's argument. If you wish to use a primitive type, specify the corresonding Java wrapper class instead, such as java.lang.Boolean for a boolean parameter.
        Parameters:
        paramType - The Java class of the method's argument
        Returns:
        this builder instance
      • withParameterType

        public final AbstractParamTypeBuilder<RwithParameterType​(java.lang.String paramType)
        Sets the Java class name of the method's argument. If you wish to use a primitive type, specify the corresonding Java wrapper class instead, such as java.lang.Boolean for a boolean parameter.
        Parameters:
        paramType - The Java class name of the method's argument
        Returns:
        this builder instance
      • useExactMatch

        public final AbstractParamTypeBuilder<RuseExactMatch​(boolean useExactMatch)
        Sets exact matching being used.
        Parameters:
        useExactMatch - The exact matching being used
        Returns:
        this builder instance
      • fireOnBegin

        public final AbstractParamTypeBuilder<RfireOnBegin​(boolean fireOnBegin)
        Marks the rule be invoked when begin or end events match.
        Parameters:
        fireOnBegin - true, to invoke the rule at begin, false for end
        Returns:
        this builder instance
      • getNamespaceURI

        public final java.lang.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 R 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​(java.lang.String methodChain,
                                         java.lang.String message)
      • getPattern

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

        protected abstract R createRule()
        Provides an instance of Rule. Must never return null.
        Returns:
        an instance of Rule.
        See Also:
        RuleProvider.get()