org.apache.bval.jsr303
Class ConstraintValidatorIdentity

java.lang.Object
  extended by org.apache.bval.jsr303.ConstraintValidatorIdentity

final class ConstraintValidatorIdentity
extends Object

Class that stores the needed properties to ensure that a validation is not checked more than once.

These properties are:

Author:
Carlos Vara

Constructor Summary
ConstraintValidatorIdentity(Object bean, Path path, ConstraintValidator<?,?> constraintValidator)
          Create a new ConstraintValidatorIdentity instance.
 
Method Summary
 boolean equals(Object obj)
          
 Object getBean()
          Get the referenced bean.
 ConstraintValidator<?,?> getConstraintValidator()
          Get the associated ConstraintValidator.
 Path getPath()
          Get the referenced property Path.
 int hashCode()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConstraintValidatorIdentity

public ConstraintValidatorIdentity(Object bean,
                                   Path path,
                                   ConstraintValidator<?,?> constraintValidator)
Create a new ConstraintValidatorIdentity instance.

Parameters:
bean -
path -
constraintValidator -
Method Detail

getBean

public Object getBean()
Get the referenced bean.

Returns:
Object

getPath

public Path getPath()
Get the referenced property Path.

Returns:
Path

getConstraintValidator

public ConstraintValidator<?,?> getConstraintValidator()
Get the associated ConstraintValidator.

Returns:
ConstraintValidator

equals

public boolean equals(Object obj)

Overrides:
equals in class Object

hashCode

public int hashCode()

Overrides:
hashCode in class Object


Copyright © 2010-2014 The Apache Software Foundation. All Rights Reserved.