Class LocalizedHybrisConstraintViolation
- java.lang.Object
-
- de.hybris.platform.validation.services.impl.DefaultHybrisConstraintViolation
-
- de.hybris.platform.validation.services.impl.LocalizedHybrisConstraintViolation
-
- All Implemented Interfaces:
ConfigurableHybrisConstraintViolation,HybrisConstraintViolation
public class LocalizedHybrisConstraintViolation extends DefaultHybrisConstraintViolation
-
-
Field Summary
Fields Modifier and Type Field Description protected ResourceBundleProviderbundleProviderprotected I18NServicei18nService-
Fields inherited from class de.hybris.platform.validation.services.impl.DefaultHybrisConstraintViolation
constraintModel, constraintViolation, factoryUtil, localizeMessage, modelService, PREFIX, SUFFIX, typeService
-
-
Constructor Summary
Constructors Constructor Description LocalizedHybrisConstraintViolation()Deprecated, for removal: This API element is subject to removal in a future version.use parametrized constructorsLocalizedHybrisConstraintViolation(javax.validation.ConstraintViolation constraintViolation, AbstractConstraintModel constraintModel, java.util.Locale locale, I18NService i18NService, ResourceBundleProvider bundleProvider)LocalizedHybrisConstraintViolation(javax.validation.ConstraintViolation constraintViolation, java.util.Locale locale, I18NService i18NService, ResourceBundleProvider bundleProvider)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.StringgetLocalizedMessage()Gets a localized message for this violation.java.util.LocalegetViolationLanguage()protected java.lang.StringprepareLocalizedMessage(java.lang.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(java.util.Locale locale)Deprecated, for removal: This API element is subject to removal in a future version.java.lang.StringtoString()-
Methods inherited from class de.hybris.platform.validation.services.impl.DefaultHybrisConstraintViolation
getConstraintModel, getConstraintViolation, getMessageTemplate, getModelName, getProperty, getQualifier, getTypeName, getViolationSeverity, setConstraintFactoryUtil, setConstraintViolation, setModelService, setTypeService
-
-
-
-
Field Detail
-
bundleProvider
protected ResourceBundleProvider bundleProvider
-
i18nService
protected I18NService i18nService
-
-
Constructor Detail
-
LocalizedHybrisConstraintViolation
@Deprecated(since="2005.0", forRemoval=true) public 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, java.util.Locale locale, I18NService i18NService, ResourceBundleProvider bundleProvider)
-
LocalizedHybrisConstraintViolation
public LocalizedHybrisConstraintViolation(javax.validation.ConstraintViolation constraintViolation, AbstractConstraintModel constraintModel, java.util.Locale locale, I18NService i18NService, ResourceBundleProvider bundleProvider)
-
-
Method Detail
-
getLocalizedMessage
public java.lang.String getLocalizedMessage()
Description copied from interface:HybrisConstraintViolationGets a localized message for this violation.- Specified by:
getLocalizedMessagein interfaceHybrisConstraintViolation- Overrides:
getLocalizedMessagein classDefaultHybrisConstraintViolation- Returns:
- localized message
-
prepareLocalizedMessage
protected java.lang.String prepareLocalizedMessage(java.lang.String violationMsg)
-
getViolationLanguage
public java.util.Locale getViolationLanguage()
-
setViolationLanguage
@Deprecated(since="2005.0", forRemoval=true) public void setViolationLanguage(java.util.Locale locale)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(since="2005.0", forRemoval=true) public void setI18nService(I18NService i18nService)Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
setI18nServicein classDefaultHybrisConstraintViolation
-
toString
public java.lang.String toString()
- Overrides:
toStringin classDefaultHybrisConstraintViolation
-
-