RequireScopeDirectiveHandler
Type members
Inherited types
Value members
Concrete methods
Inherited methods
It checks the values ascribed to the key inside the passed in scopedDirective
, in order to
see if they are of the types listed to be expected by the implementation of
getSupportedTypes inside the specific handler.
It checks the values ascribed to the key inside the passed in scopedDirective
, in order to
see if they are of the types listed to be expected by the implementation of
getSupportedTypes inside the specific handler.
- Returns:
Either a UsingDirectiveExpectationError or the using directive values of the
scopedDirective
grouped instring
,boolean
, ornumeric
sequences.- Inherited from:
- DirectiveHandler
It checks if the values assigned to the key of the scopedDirective have the expected type or number.
It checks if the values assigned to the key of the scopedDirective have the expected type or number.
Note: the correct functioning of this method for some of the handlers might require overriding the implementations for getSupportedTypes, getValueNumberBounds, and unexpectedValueHint inside those handlers.
- Value parameters:
- scopedDirective
the directive whose values are to be processed according to the key
- Returns:
Either a BuildException or the grouped using directive values inside the passed scopedDirective
- Inherited from:
- DirectiveHandler
the default implementation only includes UsingDirectiveValueKind.STRING
Override for
changing it.
the default implementation only includes UsingDirectiveValueKind.STRING
Override for
changing it.
- Value parameters:
- key
the using directive key for which the supported types are calculated.
- Returns:
a set of supported using directive value kinds of string, numeric, or boolean by this handler
- Inherited from:
- DirectiveHandler
checks if the passed in scopedDirective
has the expected number of values according to the
implementation of getValueNumberBounds for the handler on which this is called
checks if the passed in scopedDirective
has the expected number of values according to the
implementation of getValueNumberBounds for the handler on which this is called
- Returns:
Either a UsingDirectiveExpectationError or the same passed in scopedDirective
- Inherited from:
- DirectiveHandler
The default implementation just asks the user to put quotation marks around the using directive values with string type.
The default implementation just asks the user to put quotation marks around the using directive values with string type.
Therefore, it should get overrided if other information is to be shown instead in any particular handler.
This method gets internally called in the implementation of checkAndGroupValuesByType for producing the error value.
- Value parameters:
- key
the using directive key for which the unexpected value(s) are passed.
- Returns:
the hint to be shown to the user if the value(s) passed to the corresponding using directive key are unexpected.
- Inherited from:
- DirectiveHandler