jaxx.runtime.validator
Class BeanValidatorField<B>

java.lang.Object
  extended by jaxx.runtime.validator.BeanValidatorField<B>
Type Parameters:
B - the type of the bean handled by the validator and this field of validation.
All Implemented Interfaces:
Serializable

Deprecated. since 2.2.4, the code is moved into the org.nuiton:nuiton-validator project, will be removed in version 2.3

@Deprecated
public class BeanValidatorField<B>
extends Object
implements Serializable

Definition of a field to be handled in a BeanValidator.

A such class is only registred in BeanValidator when the field of the bean was found in validator xml configuration file for a FieldValidator only.

This class use properties beanClass, name to define his naturel order.

Since:
1.3
Author:
tchemit
See Also:
Serialized Form

Field Summary
protected  Class<B> beanClass
          Deprecated. the class of bean
protected  EnumMap<BeanValidatorScope,Set<String>> messages
          Deprecated.  
protected  String name
          Deprecated. name of field in bean
 
Constructor Summary
BeanValidatorField(Class<B> beanClass, String name, List<BeanValidatorScope> scopes)
          Deprecated.  
 
Method Summary
protected  void clearMessages(BeanValidatorScope scope, BeanValidator<B> validator)
          Deprecated.  
 boolean equals(Object o)
          Deprecated.  
 Class<B> getBeanClass()
          Deprecated.  
 Set<String> getErrors()
          Deprecated.  
 Set<String> getFatalErrors()
          Deprecated.  
 String getI18nError(String error)
          Deprecated.  
 Set<String> getInfos()
          Deprecated.  
 Set<String> getMessages(BeanValidatorScope scope)
          Deprecated.  
 String getName()
          Deprecated.  
 BeanValidatorScope getScope()
          Deprecated.  
 Set<BeanValidatorScope> getScopes()
          Deprecated.  
 Set<String> getWarnings()
          Deprecated.  
 boolean hasErrors()
          Deprecated.  
 boolean hasFatalErrors()
          Deprecated.  
 int hashCode()
          Deprecated.  
 boolean hasInfos()
          Deprecated.  
 boolean hasMessages(BeanValidatorScope scope)
          Deprecated.  
 boolean hasWarnings()
          Deprecated.  
 boolean isValid()
          Deprecated.  
 String toString()
          Deprecated.  
 void updateMessages(BeanValidator<B> validator, BeanValidatorScope scope, List<String> messages)
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

beanClass

protected final Class<B> beanClass
Deprecated. 
the class of bean


name

protected final String name
Deprecated. 
name of field in bean


messages

protected EnumMap<BeanValidatorScope,Set<String>> messages
Deprecated. 
Constructor Detail

BeanValidatorField

public BeanValidatorField(Class<B> beanClass,
                          String name,
                          List<BeanValidatorScope> scopes)
Deprecated. 
Method Detail

getName

public String getName()
Deprecated. 

getBeanClass

public Class<B> getBeanClass()
Deprecated. 

isValid

public boolean isValid()
Deprecated. 
Returns:
true if this field is valid : no fatal errors and no errors), false otherwise.

getScope

public BeanValidatorScope getScope()
Deprecated. 

getScopes

public Set<BeanValidatorScope> getScopes()
Deprecated. 

hasFatalErrors

public boolean hasFatalErrors()
Deprecated. 

hasErrors

public boolean hasErrors()
Deprecated. 

hasWarnings

public boolean hasWarnings()
Deprecated. 

hasInfos

public boolean hasInfos()
Deprecated. 

getFatalErrors

public Set<String> getFatalErrors()
Deprecated. 

getErrors

public Set<String> getErrors()
Deprecated. 

getWarnings

public Set<String> getWarnings()
Deprecated. 

getInfos

public Set<String> getInfos()
Deprecated. 

hasMessages

public boolean hasMessages(BeanValidatorScope scope)
Deprecated. 

getMessages

public Set<String> getMessages(BeanValidatorScope scope)
Deprecated. 

updateMessages

public void updateMessages(BeanValidator<B> validator,
                           BeanValidatorScope scope,
                           List<String> messages)
Deprecated. 

getI18nError

public String getI18nError(String error)
Deprecated. 

equals

public boolean equals(Object o)
Deprecated. 
Overrides:
equals in class Object

hashCode

public int hashCode()
Deprecated. 
Overrides:
hashCode in class Object

toString

public String toString()
Deprecated. 
Overrides:
toString in class Object

clearMessages

protected void clearMessages(BeanValidatorScope scope,
                             BeanValidator<B> validator)
Deprecated. 


Copyright © 2008-2011 CodeLutin. All Rights Reserved.