Class DefaultHybrisConstraintViolation
java.lang.Object
de.hybris.platform.validation.services.impl.DefaultHybrisConstraintViolation
- All Implemented Interfaces:
ConfigurableHybrisConstraintViolation,HybrisConstraintViolation
- Direct Known Subclasses:
LocalizedHybrisConstraintViolation
public class DefaultHybrisConstraintViolation
extends Object
implements ConfigurableHybrisConstraintViolation
Implementation of interface
HybrisConstraintViolation.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ResourceBundleProviderDeprecated, for removal: This API element is subject to removal in a future version.protected AbstractConstraintModelprotected javax.validation.ConstraintViolationprotected de.hybris.platform.validation.services.impl.ConstraintViolationFactoryUtilprotected I18NServiceDeprecated, for removal: This API element is subject to removal in a future version.unused - use methods provided byfactoryUtilprotected Stringprotected ModelServiceDeprecated, for removal: This API element is subject to removal in a future version.unused - use methods provided byfactoryUtilstatic final StringDeprecated, for removal: This API element is subject to removal in a future version.since 2005.0 - useConstraintViolationFactoryUtil.PREFIXinsteadstatic final StringDeprecated, for removal: This API element is subject to removal in a future version.since 2005.0 - useConstraintViolationFactoryUtil.SUFFIXinsteadprotected TypeServiceDeprecated, for removal: This API element is subject to removal in a future version.unused - use methods provided byfactoryUtil -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version.use parametrized constructorsDefaultHybrisConstraintViolation(javax.validation.ConstraintViolation constraintViolation) DefaultHybrisConstraintViolation(javax.validation.ConstraintViolation constraintViolation, AbstractConstraintModel constraintModel) -
Method Summary
Modifier and TypeMethodDescriptionGets the constraint model which was used for validation.javax.validation.ConstraintViolationGets a localized message for this violation.Gets the message template from the originalConstraintViolation.Gets the name of the model which causes the violation.Gets theproperty pathfrom theConstraintViolationas string.Gets the qualifier in the stylegetTypeName()+"."+getProperty().Gets the name of the model which causes the violation.Gets severity enum of the violation.voidsetBundleProvider(ResourceBundleProvider bundleProvider) Deprecated, for removal: This API element is subject to removal in a future version.bundleProvideris marked as deprecated - it is no longer used in this classvoidsetConstraintFactoryUtil(de.hybris.platform.validation.services.impl.ConstraintViolationFactoryUtil factoryUtil) voidsetConstraintViolation(javax.validation.ConstraintViolation constraintViolation) Deprecated, for removal: This API element is subject to removal in a future version.voidsetI18nService(I18NService i18nService) Deprecated, for removal: This API element is subject to removal in a future version.i18nServiceis marked as deprecated - it is no longer used in this classvoidsetModelService(ModelService modelService) Deprecated, for removal: This API element is subject to removal in a future version.modelServiceis marked as deprecated - it is no longer used in this classvoidsetTypeService(TypeService typeService) Deprecated, for removal: This API element is subject to removal in a future version.typeServiceis marked as deprecated - it is no longer used in this classtoString()
-
Field Details
-
PREFIX
Deprecated, for removal: This API element is subject to removal in a future version.since 2005.0 - useConstraintViolationFactoryUtil.PREFIXinstead- See Also:
-
SUFFIX
Deprecated, for removal: This API element is subject to removal in a future version.since 2005.0 - useConstraintViolationFactoryUtil.SUFFIXinstead- See Also:
-
modelService
Deprecated, for removal: This API element is subject to removal in a future version.unused - use methods provided byfactoryUtil -
typeService
Deprecated, for removal: This API element is subject to removal in a future version.unused - use methods provided byfactoryUtil -
bundleProvider
Deprecated, for removal: This API element is subject to removal in a future version.unused - use methods provided byfactoryUtil -
i18nService
Deprecated, for removal: This API element is subject to removal in a future version.unused - use methods provided byfactoryUtil -
constraintViolation
protected javax.validation.ConstraintViolation constraintViolation -
constraintModel
-
localizeMessage
-
factoryUtil
protected de.hybris.platform.validation.services.impl.ConstraintViolationFactoryUtil factoryUtil
-
-
Constructor Details
-
DefaultHybrisConstraintViolation
Deprecated, for removal: This API element is subject to removal in a future version.use parametrized constructors -
DefaultHybrisConstraintViolation
public DefaultHybrisConstraintViolation(javax.validation.ConstraintViolation constraintViolation) -
DefaultHybrisConstraintViolation
public DefaultHybrisConstraintViolation(javax.validation.ConstraintViolation constraintViolation, AbstractConstraintModel constraintModel)
-
-
Method Details
-
getConstraintViolation
public javax.validation.ConstraintViolation getConstraintViolation()- Specified by:
getConstraintViolationin interfaceHybrisConstraintViolation- Returns:
- the original
ConstraintViolation
-
setConstraintViolation
@Deprecated(since="2005.0", forRemoval=true) public void setConstraintViolation(javax.validation.ConstraintViolation constraintViolation) Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:ConfigurableHybrisConstraintViolationConfigures the constraint violation by using based violation object.- Specified by:
setConstraintViolationin interfaceConfigurableHybrisConstraintViolation
-
getProperty
Description copied from interface:HybrisConstraintViolationGets theproperty pathfrom theConstraintViolationas string.- Specified by:
getPropertyin interfaceHybrisConstraintViolation- Returns:
- the
property pathfrom theConstraintViolationas string
-
getModelName
Description copied from interface:HybrisConstraintViolationGets the name of the model which causes the violation.- Specified by:
getModelNamein interfaceHybrisConstraintViolation- Returns:
- the name of the model which causes the violation
-
getTypeName
Description copied from interface:HybrisConstraintViolationGets the name of the model which causes the violation.- Specified by:
getTypeNamein interfaceHybrisConstraintViolation- Returns:
- the name of the type which causes the violation
-
getQualifier
Description copied from interface:HybrisConstraintViolationGets the qualifier in the stylegetTypeName()+"."+getProperty().- Specified by:
getQualifierin interfaceHybrisConstraintViolation- Returns:
- the qualifier in the style
getTypeName()+"."+getProperty()
-
getMessageTemplate
Description copied from interface:HybrisConstraintViolationGets the message template from the originalConstraintViolation.- Specified by:
getMessageTemplatein interfaceHybrisConstraintViolation- Returns:
- the message template from the original
ConstraintViolation
-
getConstraintModel
Description copied from interface:HybrisConstraintViolationGets the constraint model which was used for validation.- Specified by:
getConstraintModelin interfaceHybrisConstraintViolation- Returns:
AbstractConstraintModel
-
getLocalizedMessage
Description copied from interface:HybrisConstraintViolationGets a localized message for this violation.- Specified by:
getLocalizedMessagein interfaceHybrisConstraintViolation- Returns:
- localized message
-
getViolationSeverity
Description copied from interface:HybrisConstraintViolationGets severity enum of the violation. Default is theSeverity.ERROR.- Specified by:
getViolationSeverityin interfaceHybrisConstraintViolation- Returns:
- severity enumeration value
-
setModelService
Deprecated, for removal: This API element is subject to removal in a future version.modelServiceis marked as deprecated - it is no longer used in this class -
setTypeService
Deprecated, for removal: This API element is subject to removal in a future version.typeServiceis marked as deprecated - it is no longer used in this class -
setBundleProvider
@Deprecated(since="2005.0", forRemoval=true) public void setBundleProvider(ResourceBundleProvider bundleProvider) Deprecated, for removal: This API element is subject to removal in a future version.bundleProvideris marked as deprecated - it is no longer used in this class -
setI18nService
Deprecated, for removal: This API element is subject to removal in a future version.i18nServiceis marked as deprecated - it is no longer used in this class -
toString
-
setConstraintFactoryUtil
public void setConstraintFactoryUtil(de.hybris.platform.validation.services.impl.ConstraintViolationFactoryUtil factoryUtil)
-
factoryUtil