Package org.nuiton.validator
Class NuitonValidatorModel<O>
java.lang.Object
org.nuiton.validator.NuitonValidatorModel<O>
- All Implemented Interfaces:
java.io.Serializable
public class NuitonValidatorModel<O>
extends java.lang.Object
implements java.io.Serializable
Represents the model of a
NuitonValidator.
This model describing properties of a validator :
type: the type of object which can be validated by the validatorcontext: the context of validation, if no context is required then the context isnull.scopes: the scopes of validation (seeNuitonValidatorScope)fields: the fields that can be validated by the validator
- Since:
- 2.0
- Author:
- Tony Chemit - chemit@codelutin.com
- See Also:
- Serialized Form
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.StringcontextContext of validation (can benull, for no context).protected java.util.Map<NuitonValidatorScope,java.lang.String[]>fieldsSet of fields that can be validated for the type and contextprotected java.util.Set<NuitonValidatorScope>scopesSet of scopes that can be validated for the type and contextprotected java.lang.Class<O>typeType of object to validate -
Constructor Summary
Constructors Constructor Description NuitonValidatorModel(java.lang.Class<O> type, java.lang.String context, java.util.Set<NuitonValidatorScope> scopes, java.util.Map<NuitonValidatorScope,java.lang.String[]> fields) -
Method Summary
Modifier and Type Method Description java.lang.StringgetContext()java.util.Map<NuitonValidatorScope,java.lang.String[]>getFields()java.util.Set<NuitonValidatorScope>getScopes()java.lang.Class<O>getType()
-
Field Details
-
Constructor Details
-
NuitonValidatorModel
public NuitonValidatorModel(java.lang.Class<O> type, java.lang.String context, java.util.Set<NuitonValidatorScope> scopes, java.util.Map<NuitonValidatorScope,java.lang.String[]> fields)
-
-
Method Details
-
getType
-
getContext
public java.lang.String getContext() -
getScopes
-
getFields
-