Top Description Fields Methods
org.hibernate.validator.engine

public Interface HibernateValidatorEnhancedBean

Annotations
@Incubating
Imports
org.hibernate.validator.Incubating

Hibernate Validator specific marker interface. Beans implementing this interface would use corresponding HibernateValidatorEnhancedBean#$$_hibernateValidator_getFieldValue(String) and HibernateValidatorEnhancedBean#$$_hibernateValidator_getGetterValue(String) methods to retrieve bean property values instead of using reflection or any other means.

It is important to keep in mind that in case of explicit implementation of this interface access to all possible constrained getters and fields should be provided, for a class implementing the interface and all its super classes as well. Otherwise unexpected IllegalArgumentException could be thrown by the Hibernate Validator engine.

Author
Marko Bekhta
Since
6.1

Field Summary

Modifier and TypeField and Description
public static final String
public static final String

Method Summary

Modifier and TypeMethod and Description
public Object

Returns:

the value of the field named name of the current bean.
$$_hibernateValidator_getFieldValue
(String
the name of a field property of interest.
name
)

public Object

Returns:

the value returned by the getter named name of the current bean.
$$_hibernateValidator_getGetterValue
(String
the name of a getter of interest.
name
)

Field Detail

GET_FIELD_VALUE_METHOD_NAMEback to summary
public static final String GET_FIELD_VALUE_METHOD_NAME
GET_GETTER_VALUE_METHOD_NAMEback to summary
public static final String GET_GETTER_VALUE_METHOD_NAME

Method Detail

$$_hibernateValidator_getFieldValueback to summary
public Object $$_hibernateValidator_getFieldValue(String name)
Parameters
name:String

the name of a field property of interest.

Returns:Object

the value of the field named name of the current bean.

Exceptions
IllegalArgumentException:
in case no field could be found for the given name.
$$_hibernateValidator_getGetterValueback to summary
public Object $$_hibernateValidator_getGetterValue(String name)
Parameters
name:String

the name of a getter of interest.

Returns:Object

the value returned by the getter named name of the current bean.

Exceptions
IllegalArgumentException:
in case when no getter property could be found for the given name.