Uses of Class
org.nuiton.validator.NuitonValidatorScope
-
Packages that use NuitonValidatorScope Package Description org.nuiton.validator Package of Nuiton-validator api.org.nuiton.validator.bean To be continued...org.nuiton.validator.bean.list Package of Nuiton - BeanListValidator api.org.nuiton.validator.bean.simple Package of Nuiton - Simple Bean Validator api.org.nuiton.validator.xwork2 Package of xworks2 implementation of the Nuiton-validator api. -
-
Uses of NuitonValidatorScope in org.nuiton.validator
Fields in org.nuiton.validator declared as NuitonValidatorScope Modifier and Type Field Description protected NuitonValidatorScope[]
AbstractNuitonValidatorProvider.ModelEntry. scopes
Fields in org.nuiton.validator with type parameters of type NuitonValidatorScope Modifier and Type Field Description protected Map<NuitonValidatorScope,String[]>
NuitonValidatorModel. fields
Set of fields that can be validated for the type and contextprotected EnumMap<NuitonValidatorScope,NuitonValidatorResult.FieldMap<List<String>>>
NuitonValidatorResult. messages
protected Set<NuitonValidatorScope>
NuitonValidatorModel. scopes
Set of scopes that can be validated for the type and contextMethods in org.nuiton.validator that return NuitonValidatorScope Modifier and Type Method Description NuitonValidatorScope
NuitonValidatorResult. getFieldHighestScope(String field)
NuitonValidatorScope[]
NuitonValidatorResult. getFieldScopes(String field)
static NuitonValidatorScope
NuitonValidatorScope. valueOf(String name)
Returns the enum constant of this type with the specified name.static NuitonValidatorScope[]
NuitonValidatorScope. values()
Returns an array containing the constants of this enum type, in the order they are declared.Methods in org.nuiton.validator that return types with arguments of type NuitonValidatorScope Modifier and Type Method Description Set<NuitonValidatorScope>
NuitonValidator. getEffectiveScopes()
Obtains the set of effective scopes for the validator : means the very scopes that the validator is dealing with.Map<NuitonValidatorScope,String[]>
NuitonValidatorModel. getFields()
protected EnumMap<NuitonValidatorScope,NuitonValidatorResult.FieldMap<List<String>>>
NuitonValidatorResult. getMessages()
Set<NuitonValidatorScope>
NuitonValidatorModel. getScopes()
Methods in org.nuiton.validator with parameters of type NuitonValidatorScope Modifier and Type Method Description void
NuitonValidatorResult. addMessagesForScope(NuitonValidatorScope scope, Map<String,List<String>> newMessages)
void
NuitonValidatorResult. clearMessagesForScope(NuitonValidatorScope scope)
protected boolean
NuitonValidatorResult. containsField(String field, NuitonValidatorScope scope)
static <O> AbstractNuitonValidatorProvider.ModelEntry<O>
AbstractNuitonValidatorProvider.ModelEntry. createModelEntry(Class<O> type, String context, NuitonValidatorScope... scopes)
SortedSet<NuitonValidator<?>>
NuitonValidatorProvider. detectValidators(File sourceRoot, Pattern contextFilter, NuitonValidatorScope[] scopes, Class<?>... types)
Detects in the given directory validators.Set<String>
NuitonValidator. getEffectiveFields(NuitonValidatorScope scope)
Obtains the set of effective fields for the validator for the given scope : means the very fields validated by the validator.List<String>
NuitonValidatorResult. getFieldsForScope(NuitonValidatorScope scope)
List<String>
NuitonValidatorResult. getMessagesForScope(String field, NuitonValidatorScope scope)
List<String>
NuitonValidatorResult. getMessagesForScope(NuitonValidatorScope scope)
<O> NuitonValidatorModel<O>
AbstractNuitonValidatorProvider. getModel(Class<O> type, String context, NuitonValidatorScope... scopes)
<O> NuitonValidatorModel<O>
NuitonValidatorProvider. 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.boolean
NuitonValidatorResult. hasMessagesForScope(String field, NuitonValidatorScope scope)
boolean
NuitonValidatorResult. hasMessagesForScope(NuitonValidatorScope scope)
<O> NuitonValidatorModel<O>
NuitonValidatorProvider. newModel(Class<O> type, String context, NuitonValidatorScope... scopes)
Instanciate a new validator model for the given parameters.static <O> NuitonValidator<O>
NuitonValidatorFactory. newValidator(Class<O> type, String context, NuitonValidatorScope... scopes)
static <O> NuitonValidator<O>
NuitonValidatorFactory. newValidator(Class<O> type, NuitonValidatorScope... scopes)
static <O> NuitonValidator<O>
NuitonValidatorFactory. newValidator(String providerName, Class<O> type, String context, NuitonValidatorScope... scopes)
void
NuitonValidatorResult. setMessagesForScope(NuitonValidatorScope scope, String field, List<String> messages)
Constructors in org.nuiton.validator with parameters of type NuitonValidatorScope Constructor Description ModelEntry(Class<O> type, String context, NuitonValidatorScope... scopes)
Constructor parameters in org.nuiton.validator with type arguments of type NuitonValidatorScope Constructor Description NuitonValidatorModel(Class<O> type, String context, Set<NuitonValidatorScope> scopes, Map<NuitonValidatorScope,String[]> fields)
NuitonValidatorModel(Class<O> type, String context, Set<NuitonValidatorScope> scopes, Map<NuitonValidatorScope,String[]> fields)
-
Uses of NuitonValidatorScope in org.nuiton.validator.bean
Fields in org.nuiton.validator.bean declared as NuitonValidatorScope Modifier and Type Field Description protected NuitonValidatorScope
AbstractValidatorEvent. scope
the scope impacted by the eventMethods in org.nuiton.validator.bean that return NuitonValidatorScope Modifier and Type Method Description NuitonValidatorScope
AbstractNuitonValidatorContext. getHighestScope(String field)
abstract NuitonValidatorScope
AbstractValidator. getHighestScope(String field)
NuitonValidatorScope
AbstractValidatorEvent. getScope()
Methods in org.nuiton.validator.bean that return types with arguments of type NuitonValidatorScope Modifier and Type Method Description Set<NuitonValidatorScope>
AbstractValidator. getEffectiveScopes()
Set<NuitonValidatorScope>
AbstractValidator. getScopes()
Methods in org.nuiton.validator.bean with parameters of type NuitonValidatorScope Modifier and Type Method Description protected abstract E
AbstractNuitonValidatorContext. createEvent(V source, O bean, String field, NuitonValidatorScope scope, String[] toAdd, String[] toDelete)
Set<String>
AbstractValidator. getEffectiveFields(NuitonValidatorScope scope)
protected void
AbstractNuitonValidatorContext. mergeMessages(V beanValidator, NuitonValidatorScope scope, NuitonValidatorResult newMessages, List<E> events)
<O> V
ValidatorCreator. newValidator(NuitonValidatorProvider provider, Class<O> type, String context, NuitonValidatorScope... scopes)
Given the parameters, instanciate a newValidatorCreator
.protected abstract void
AbstractValidator. rebuildDelegateValidator(Class<O> beanType, String context, NuitonValidatorScope... scopes)
void
AbstractValidator. setScopes(NuitonValidatorScope... scopes)
Constructors in org.nuiton.validator.bean with parameters of type NuitonValidatorScope Constructor Description AbstractValidatorEvent(V source, String field, NuitonValidatorScope scope, String[] messagestoAdd, String[] messagestoDelete)
-
Uses of NuitonValidatorScope in org.nuiton.validator.bean.list
Fields in org.nuiton.validator.bean.list declared as NuitonValidatorScope Modifier and Type Field Description protected NuitonValidatorScope
BeanListValidatorMessage. scope
the scope of the messageMethods in org.nuiton.validator.bean.list that return NuitonValidatorScope Modifier and Type Method Description NuitonValidatorScope
BeanListValidator. getHighestScope(String field)
NuitonValidatorScope
BeanListValidatorMessage. getScope()
Methods in org.nuiton.validator.bean.list with parameters of type NuitonValidatorScope Modifier and Type Method Description protected BeanListValidatorEvent
BeanListValidator.NuitonValidatorContext. createEvent(BeanListValidator<O> source, O bean, String field, NuitonValidatorScope scope, String[] toAdd, String[] toDelete)
static <O> BeanListValidator<O>
BeanListValidator. newValidator(Class<O> type, String context, NuitonValidatorScope... scopes)
Obtain a newBeanListValidator
for the given parameters.static <O> BeanListValidator<O>
BeanListValidator. newValidator(String providerName, Class<O> type, String context, NuitonValidatorScope... scopes)
Obtain a newBeanListValidator
for the given parameters.protected void
BeanListValidator. rebuildDelegateValidator(Class<O> beanType, String context, NuitonValidatorScope... scopes)
Constructors in org.nuiton.validator.bean.list with parameters of type NuitonValidatorScope Constructor Description BeanListValidator(NuitonValidatorProvider validatorProvider, Class<O> beanClass, String context, NuitonValidatorScope... scopes)
BeanListValidatorEvent(BeanListValidator<?> source, Object bean, String field, NuitonValidatorScope scope, String[] messagestoAdd, String[] messagestoDelete)
BeanListValidatorMessage(BeanListValidator<?> validator, Object bean, String field, String message, NuitonValidatorScope scope)
-
Uses of NuitonValidatorScope in org.nuiton.validator.bean.simple
Fields in org.nuiton.validator.bean.simple declared as NuitonValidatorScope Modifier and Type Field Description protected NuitonValidatorScope
SimpleBeanValidatorMessage. scope
the scope of the messageMethods in org.nuiton.validator.bean.simple that return NuitonValidatorScope Modifier and Type Method Description NuitonValidatorScope
SimpleBeanValidator. getHighestScope(String field)
NuitonValidatorScope
SimpleBeanValidatorMessage. getScope()
Methods in org.nuiton.validator.bean.simple that return types with arguments of type NuitonValidatorScope Modifier and Type Method Description static EnumSet<NuitonValidatorScope>
SimpleBeanValidators. getScopes(List<SimpleBeanValidatorMessage<?>> messages)
static EnumMap<NuitonValidatorScope,Integer>
SimpleBeanValidators. getScopesCount(List<SimpleBeanValidatorMessage<?>> messages)
Methods in org.nuiton.validator.bean.simple with parameters of type NuitonValidatorScope Modifier and Type Method Description protected SimpleBeanValidatorEvent
SimpleBeanValidator.NuitonValidatorContext. createEvent(SimpleBeanValidator<O> source, O bean, String field, NuitonValidatorScope scope, String[] toAdd, String[] toDelete)
static <O> SimpleBeanValidator<O>
SimpleBeanValidator. newValidator(Class<O> type, String context, NuitonValidatorScope... scopes)
Obtain a newSimpleBeanValidator
for the given parameters.static <O> SimpleBeanValidator<O>
SimpleBeanValidator. newValidator(String providerName, Class<O> type, String context, NuitonValidatorScope... scopes)
Obtain a newSimpleBeanValidator
for the given parameters.protected void
SimpleBeanValidator. rebuildDelegateValidator(Class<O> beanType, String context, NuitonValidatorScope... scopes)
Constructors in org.nuiton.validator.bean.simple with parameters of type NuitonValidatorScope Constructor Description SimpleBeanValidator(NuitonValidatorProvider validatorProvider, Class<O> beanClass, String context, NuitonValidatorScope... scopes)
SimpleBeanValidatorEvent(SimpleBeanValidator<?> source, String field, NuitonValidatorScope scope, String[] messagestoAdd, String[] messagestoDelete)
SimpleBeanValidatorMessage(SimpleBeanValidator<?> validator, String field, String message, NuitonValidatorScope scope)
-
Uses of NuitonValidatorScope in org.nuiton.validator.xwork2
Fields in org.nuiton.validator.xwork2 with type parameters of type NuitonValidatorScope Modifier and Type Field Description protected Map<NuitonValidatorScope,XWork2ScopeValidator<O>>
XWork2NuitonValidator. validators
xworks scope validators *Methods in org.nuiton.validator.xwork2 that return types with arguments of type NuitonValidatorScope Modifier and Type Method Description static <O> Map<NuitonValidatorScope,String[]>
XWork2ValidatorUtil. detectFields(Class<O> type, String context, NuitonValidatorScope[] scopeUniverse)
Set<NuitonValidatorScope>
XWork2NuitonValidator. getEffectiveScopes()
Methods in org.nuiton.validator.xwork2 with parameters of type NuitonValidatorScope Modifier and Type Method Description static <O> Map<NuitonValidatorScope,String[]>
XWork2ValidatorUtil. detectFields(Class<O> type, String context, NuitonValidatorScope[] scopeUniverse)
protected static Set<String>
XWork2ValidatorUtil. detectFieldsForScope(com.opensymphony.xwork2.validator.ActionValidatorManager validator, Class<?> type, NuitonValidatorScope scope, String context, Set<String> availableFields, boolean includeDefaultContext)
SortedSet<NuitonValidator<?>>
XWork2NuitonValidatorProvider. detectValidators(File sourceRoot, Pattern contextFilter, NuitonValidatorScope[] scopes, Class<?>... types)
static String
XWork2ValidatorUtil. getContextForScope(String context, NuitonValidatorScope scope)
Set<String>
XWork2NuitonValidator. getEffectiveFields(NuitonValidatorScope scope)
protected <O> NuitonValidator<O>
XWork2NuitonValidatorProvider. getValidator(Class<O> klass, String context, NuitonValidatorScope... scopes)
Pour un context et un type d'entité donné, instancie un validateur et test si ce validateur est utilisable (i.e qu'il admet des champs à valider).<O> NuitonValidatorModel<O>
XWork2NuitonValidatorProvider. newModel(Class<O> type, String context, NuitonValidatorScope... scopes)
-