public abstract class AbstractNuitonValidatorProvider extends Object implements NuitonValidatorProvider
| Modifier and Type | Class and Description |
|---|---|
protected static class |
AbstractNuitonValidatorProvider.ModelEntry<O> |
| Modifier and Type | Field and Description |
|---|---|
protected Map<AbstractNuitonValidatorProvider.ModelEntry<?>,NuitonValidatorModel<?>> |
models |
protected String |
name |
| Constructor and Description |
|---|
AbstractNuitonValidatorProvider(String name) |
| Modifier and Type | Method and Description |
|---|---|
<O> NuitonValidatorModel<O> |
getModel(Class<O> type,
String context,
NuitonValidatorScope... scopes)
Obtain a validator model, the model should be cached and not be
reinstanciated at each time a validator model is asked.
|
protected Map<AbstractNuitonValidatorProvider.ModelEntry<?>,NuitonValidatorModel<?>> |
getModels() |
String |
getName()
Obtains the name of the provider.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdetectValidators, newModel, newValidatorprotected Map<AbstractNuitonValidatorProvider.ModelEntry<?>,NuitonValidatorModel<?>> models
protected final String name
public AbstractNuitonValidatorProvider(String name)
public <O> NuitonValidatorModel<O> getModel(Class<O> type, String context, NuitonValidatorScope... scopes)
NuitonValidatorProvidergetModel in interface NuitonValidatorProviderO - type of the class to validatetype - type of the class to validatecontext - context of validation (null if no context)scopes - filtered scope (if nothing given, then use all scopes)protected Map<AbstractNuitonValidatorProvider.ModelEntry<?>,NuitonValidatorModel<?>> getModels()
public String getName()
NuitonValidatorProvidergetName in interface NuitonValidatorProviderCopyright © 2013–2017 CodeLutin. All rights reserved.