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,BeanType>
public class AttributeConstraintToBeanTypeConverter
extends AbstractConstraintToBeanTypeConverter<AttributeConstraintModel>
An
AttributeConstraintModel's specific converter.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvert(AttributeConstraintModel source) Converts source to target.protected FieldModified version of ReflectionUtils from spring.voidsetFieldConverter(ConstraintConverter<AttributeConstraintModel, FieldType> fieldConverter) voidsetGetterConverter(ConstraintConverter<AttributeConstraintModel, GetterType> getterConverter) Methods inherited from class de.hybris.platform.validation.extractor.impl.AbstractConstraintToBeanTypeConverter
createBeanType, createConstrainType, setGroupsConverter, setIgnoredAnnotationMethods, setSeverityConverterMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.hybris.platform.validation.extractor.ConstraintConverter
isActiveForConstraint
-
Constructor Details
-
AttributeConstraintToBeanTypeConverter
public AttributeConstraintToBeanTypeConverter()
-
-
Method Details
-
convert
Description copied from interface:ConstraintConverterConverts source to target. -
findField
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, GetterType> getterConverter) -
setFieldConverter
public void setFieldConverter(ConstraintConverter<AttributeConstraintModel, FieldType> fieldConverter)
-