public class ValidatingArgumentExtractor<T> extends Object implements ArgumentExtractor<T>
| Constructor and Description |
|---|
ValidatingArgumentExtractor(ArgumentExtractor<T> wrapped,
List<Validator<T>> validators) |
| Modifier and Type | Method and Description |
|---|---|
T |
extract(Context context)
Extract the argument from the context
|
Class<T> |
getExtractedType()
Get the type of the argument that is extracted
|
String |
getFieldName()
Get the field name that is being extracted, if this value is
extracted from a field
|
public ValidatingArgumentExtractor(ArgumentExtractor<T> wrapped, List<Validator<T>> validators)
public T extract(Context context)
ArgumentExtractorextract in interface ArgumentExtractor<T>context - The argument to extractpublic Class<T> getExtractedType()
ArgumentExtractorgetExtractedType in interface ArgumentExtractor<T>public String getFieldName()
ArgumentExtractorgetFieldName in interface ArgumentExtractor<T>Copyright © 2019 ninjaframework. All rights reserved.