Class AttributeConstraintToBeanTypeConverter
- java.lang.Object
-
- de.hybris.platform.validation.extractor.impl.AbstractConstraintToBeanTypeConverter<AttributeConstraintModel>
-
- de.hybris.platform.validation.extractor.impl.AttributeConstraintToBeanTypeConverter
-
- All Implemented Interfaces:
ConstraintConverter<AttributeConstraintModel,org.hibernate.validator.internal.xml.binding.BeanType>
public class AttributeConstraintToBeanTypeConverter extends AbstractConstraintToBeanTypeConverter<AttributeConstraintModel>
AnAttributeConstraintModel's specific converter.
-
-
Constructor Summary
Constructors Constructor Description AttributeConstraintToBeanTypeConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.hibernate.validator.internal.xml.binding.BeanTypeconvert(AttributeConstraintModel source)Converts source to target.protected java.lang.reflect.FieldfindField(java.lang.Class<?> clazz, java.lang.String name, java.lang.Class<?> type)Modified version of ReflectionUtils from spring.voidsetFieldConverter(ConstraintConverter<AttributeConstraintModel,org.hibernate.validator.internal.xml.binding.FieldType> fieldConverter)voidsetGetterConverter(ConstraintConverter<AttributeConstraintModel,org.hibernate.validator.internal.xml.binding.GetterType> getterConverter)-
Methods inherited from class de.hybris.platform.validation.extractor.impl.AbstractConstraintToBeanTypeConverter
createBeanType, createConstrainType, setGroupsConverter, setIgnoredAnnotationMethods, setSeverityConverter
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.hybris.platform.validation.extractor.ConstraintConverter
isActiveForConstraint
-
-
-
-
Method Detail
-
convert
public org.hibernate.validator.internal.xml.binding.BeanType convert(AttributeConstraintModel source)
Description copied from interface:ConstraintConverterConverts source to target.
-
findField
protected java.lang.reflect.Field findField(java.lang.Class<?> clazz, java.lang.String name, java.lang.Class<?> type)Modified version of ReflectionUtils from spring. Searches for field only in given class, not in all superclasses. Attempt to find afieldon the suppliedClasswith the suppliednameand/ortype. Searches given class only.- Parameters:
clazz- the class to introspectname- the name of the field (may benullif type is specified)type- the type of the field (may benullif name is specified)- Returns:
- the corresponding Field object, or
nullif not found
-
setGetterConverter
public void setGetterConverter(ConstraintConverter<AttributeConstraintModel,org.hibernate.validator.internal.xml.binding.GetterType> getterConverter)
-
setFieldConverter
public void setFieldConverter(ConstraintConverter<AttributeConstraintModel,org.hibernate.validator.internal.xml.binding.FieldType> fieldConverter)
-
-