Class LocalizedHybrisConstraintViolation
java.lang.Object
de.hybris.platform.validation.services.impl.DefaultHybrisConstraintViolation
de.hybris.platform.validation.services.impl.LocalizedHybrisConstraintViolation
- All Implemented Interfaces:
ConfigurableHybrisConstraintViolation,HybrisConstraintViolation
-
Field Summary
FieldsFields inherited from class de.hybris.platform.validation.services.impl.DefaultHybrisConstraintViolation
constraintModel, constraintViolation, factoryUtil, localizeMessage, modelService, PREFIX, SUFFIX, typeService -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version.use parametrized constructorsLocalizedHybrisConstraintViolation(javax.validation.ConstraintViolation constraintViolation, AbstractConstraintModel constraintModel, Locale locale, I18NService i18NService, ResourceBundleProvider bundleProvider) LocalizedHybrisConstraintViolation(javax.validation.ConstraintViolation constraintViolation, Locale locale, I18NService i18NService, ResourceBundleProvider bundleProvider) -
Method Summary
Modifier and TypeMethodDescriptionGets a localized message for this violation.protected StringprepareLocalizedMessage(String violationMsg) voidsetBundleProvider(ResourceBundleProvider bundleProvider) 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.voidsetViolationLanguage(Locale locale) Deprecated, for removal: This API element is subject to removal in a future version.toString()Methods inherited from class de.hybris.platform.validation.services.impl.DefaultHybrisConstraintViolation
getConstraintModel, getConstraintViolation, getMessageTemplate, getModelName, getProperty, getQualifier, getTypeName, getViolationSeverity, setConstraintFactoryUtil, setConstraintViolation, setModelService, setTypeService
-
Field Details
-
bundleProvider
-
i18nService
-
-
Constructor Details
-
LocalizedHybrisConstraintViolation
Deprecated, for removal: This API element is subject to removal in a future version.use parametrized constructors -
LocalizedHybrisConstraintViolation
public LocalizedHybrisConstraintViolation(javax.validation.ConstraintViolation constraintViolation, Locale locale, I18NService i18NService, ResourceBundleProvider bundleProvider) -
LocalizedHybrisConstraintViolation
public LocalizedHybrisConstraintViolation(javax.validation.ConstraintViolation constraintViolation, AbstractConstraintModel constraintModel, Locale locale, I18NService i18NService, ResourceBundleProvider bundleProvider)
-
-
Method Details
-
getLocalizedMessage
Description copied from interface:HybrisConstraintViolationGets a localized message for this violation.- Specified by:
getLocalizedMessagein interfaceHybrisConstraintViolation- Overrides:
getLocalizedMessagein classDefaultHybrisConstraintViolation- Returns:
- localized message
-
prepareLocalizedMessage
-
getViolationLanguage
-
setViolationLanguage
Deprecated, for removal: This API element is subject to removal in a future version. -
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.- Overrides:
setBundleProviderin classDefaultHybrisConstraintViolation
-
setI18nService
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
setI18nServicein classDefaultHybrisConstraintViolation
-
toString
- Overrides:
toStringin classDefaultHybrisConstraintViolation
-