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 validator
  • context : the context of validation, if no context is required then the context is null.
  • scopes : the scopes of validation (see NuitonValidatorScope)
  • 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.String context
    Context of validation (can be null, for no context).
    protected java.util.Map<NuitonValidatorScope,​java.lang.String[]> fields
    Set of fields that can be validated for the type and context
    protected java.util.Set<NuitonValidatorScope> scopes
    Set of scopes that can be validated for the type and context
    protected java.lang.Class<O> type
    Type 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.String getContext()  
    java.util.Map<NuitonValidatorScope,​java.lang.String[]> getFields()  
    java.util.Set<NuitonValidatorScope> getScopes()  
    java.lang.Class<O> getType()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait