org.nuiton.validator
Class NuitonValidatorModel<O>

java.lang.Object
  extended by org.nuiton.validator.NuitonValidatorModel<O>
All Implemented Interfaces:
Serializable

public class NuitonValidatorModel<O>
extends Object
implements Serializable

Represents the model of a NuitonValidator.

This model describing properties of a validator :

Since:
2.0
Author:
tchemit
See Also:
Serialized Form

Field Summary
protected  String context
          Context of validation (can be null, for no context).
protected  Map<NuitonValidatorScope,String[]> fields
          Set of fields that can be validated for the type and context
protected  Set<NuitonValidatorScope> scopes
          Set of scopes that can be validated for the type and context
protected  Class<O> type
          Type of object to validate
 
Constructor Summary
NuitonValidatorModel(Class<O> type, String context, Set<NuitonValidatorScope> scopes, Map<NuitonValidatorScope,String[]> fields)
           
 
Method Summary
 String getContext()
           
 Map<NuitonValidatorScope,String[]> getFields()
           
 Set<NuitonValidatorScope> getScopes()
           
 Class<O> getType()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

type

protected Class<O> type
Type of object to validate


context

protected String context
Context of validation (can be null, for no context).


scopes

protected Set<NuitonValidatorScope> scopes
Set of scopes that can be validated for the type and context


fields

protected Map<NuitonValidatorScope,String[]> fields
Set of fields that can be validated for the type and context

Constructor Detail

NuitonValidatorModel

public NuitonValidatorModel(Class<O> type,
                            String context,
                            Set<NuitonValidatorScope> scopes,
                            Map<NuitonValidatorScope,String[]> fields)
Method Detail

getType

public Class<O> getType()

getContext

public String getContext()

getScopes

public Set<NuitonValidatorScope> getScopes()

getFields

public Map<NuitonValidatorScope,String[]> getFields()


Copyright © 2011 CodeLutin. All Rights Reserved.