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 java.lang.Object implements ConfigurableHybrisConstraintViolation
Implementation of interfaceHybrisConstraintViolation.
-
-
Field Summary
Fields Modifier and Type Field Description protected ResourceBundleProviderbundleProviderDeprecated, for removal: This API element is subject to removal in a future version.unused - use methods provided byfactoryUtilprotected AbstractConstraintModelconstraintModelprotected javax.validation.ConstraintViolationconstraintViolationprotected de.hybris.platform.validation.services.impl.ConstraintViolationFactoryUtilfactoryUtilprotected I18NServicei18nServiceDeprecated, for removal: This API element is subject to removal in a future version.unused - use methods provided byfactoryUtilprotected java.lang.StringlocalizeMessageprotected ModelServicemodelServiceDeprecated, for removal: This API element is subject to removal in a future version.unused - use methods provided byfactoryUtilstatic java.lang.StringPREFIXDeprecated, for removal: This API element is subject to removal in a future version.since 2005.0 - useConstraintViolationFactoryUtil.PREFIXinsteadstatic java.lang.StringSUFFIXDeprecated, for removal: This API element is subject to removal in a future version.since 2005.0 - useConstraintViolationFactoryUtil.SUFFIXinsteadprotected TypeServicetypeServiceDeprecated, for removal: This API element is subject to removal in a future version.unused - use methods provided byfactoryUtil
-
Constructor Summary
Constructors Constructor Description DefaultHybrisConstraintViolation()Deprecated, 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
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description AbstractConstraintModelgetConstraintModel()Gets the constraint model which was used for validation.javax.validation.ConstraintViolationgetConstraintViolation()java.lang.StringgetLocalizedMessage()Gets a localized message for this violation.java.lang.StringgetMessageTemplate()Gets the message template from the originalConstraintViolation.java.lang.StringgetModelName()Gets the name of the model which causes the violation.java.lang.StringgetProperty()Gets theproperty pathfrom theConstraintViolationas string.java.lang.StringgetQualifier()Gets the qualifier in the stylegetTypeName()+"."+getProperty().java.lang.StringgetTypeName()Gets the name of the model which causes the violation.SeveritygetViolationSeverity()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 classjava.lang.StringtoString()
-
-
-
Field Detail
-
PREFIX
@Deprecated(since="2005.0", forRemoval=true) public static final java.lang.String PREFIXDeprecated, for removal: This API element is subject to removal in a future version.since 2005.0 - useConstraintViolationFactoryUtil.PREFIXinstead- See Also:
- Constant Field Values
-
SUFFIX
@Deprecated(since="2005.0", forRemoval=true) public static final java.lang.String SUFFIXDeprecated, for removal: This API element is subject to removal in a future version.since 2005.0 - useConstraintViolationFactoryUtil.SUFFIXinstead- See Also:
- Constant Field Values
-
modelService
@Deprecated(since="2005.0", forRemoval=true) protected ModelService modelServiceDeprecated, for removal: This API element is subject to removal in a future version.unused - use methods provided byfactoryUtil
-
typeService
@Deprecated(since="2005.0", forRemoval=true) protected TypeService typeServiceDeprecated, for removal: This API element is subject to removal in a future version.unused - use methods provided byfactoryUtil
-
bundleProvider
@Deprecated(since="2005.0", forRemoval=true) protected ResourceBundleProvider bundleProviderDeprecated, for removal: This API element is subject to removal in a future version.unused - use methods provided byfactoryUtil
-
i18nService
@Deprecated(since="2005.0", forRemoval=true) protected I18NService i18nServiceDeprecated, 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
protected AbstractConstraintModel constraintModel
-
localizeMessage
protected java.lang.String localizeMessage
-
factoryUtil
protected de.hybris.platform.validation.services.impl.ConstraintViolationFactoryUtil factoryUtil
-
-
Constructor Detail
-
DefaultHybrisConstraintViolation
@Deprecated(since="2005.0", forRemoval=true) public 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 Detail
-
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
public java.lang.String getProperty()
Description copied from interface:HybrisConstraintViolationGets theproperty pathfrom theConstraintViolationas string.- Specified by:
getPropertyin interfaceHybrisConstraintViolation- Returns:
- the
property pathfrom theConstraintViolationas string
-
getModelName
public java.lang.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
public java.lang.String 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
public java.lang.String 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
public java.lang.String 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
public AbstractConstraintModel getConstraintModel()
Description copied from interface:HybrisConstraintViolationGets the constraint model which was used for validation.- Specified by:
getConstraintModelin interfaceHybrisConstraintViolation- Returns:
AbstractConstraintModel
-
getLocalizedMessage
public java.lang.String getLocalizedMessage()
Description copied from interface:HybrisConstraintViolationGets a localized message for this violation.- Specified by:
getLocalizedMessagein interfaceHybrisConstraintViolation- Returns:
- localized message
-
getViolationSeverity
public Severity 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(since="2005.0", forRemoval=true) public void setModelService(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 class
-
setTypeService
@Deprecated(since="2005.0", forRemoval=true) public void setTypeService(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 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(since="2005.0", forRemoval=true) public void setI18nService(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 class
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
setConstraintFactoryUtil
public void setConstraintFactoryUtil(de.hybris.platform.validation.services.impl.ConstraintViolationFactoryUtil factoryUtil)
-
-