Class AttributeConstraintModel
- java.lang.Object
-
- de.hybris.platform.servicelayer.model.AbstractItemModel
-
- de.hybris.platform.core.model.ItemModel
-
- de.hybris.platform.validation.model.constraints.AbstractConstraintModel
-
- de.hybris.platform.validation.model.constraints.AttributeConstraintModel
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
AssertFalseConstraintModel
,AssertTrueConstraintModel
,DecimalMaxConstraintModel
,DecimalMinConstraintModel
,DigitsConstraintModel
,FutureConstraintModel
,HybrisDecimalMaxConstraintModel
,HybrisDecimalMinConstraintModel
,HybrisEnumValueCodeConstraintModel
,MaxConstraintModel
,MinConstraintModel
,NotBlankConstraintModel
,NotEmptyConstraintModel
,NotNullConstraintModel
,NullConstraintModel
,ObjectPatternConstraintModel
,PastConstraintModel
,PatternConstraintModel
,PriceRowsValidConstraintModel
,RegExpConstraintModel
,SizeConstraintModel
public class AttributeConstraintModel extends AbstractConstraintModel
Generated model class for type AttributeConstraint first defined at extension validation.Attribute constraint definition.
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
AbstractItemModel.NewModelContextFactory
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
_TYPECODE
Generated model type code constant.static java.lang.String
DESCRIPTOR
Generated constant - Attribute key ofAttributeConstraint.descriptor
attribute defined at extensionvalidation
.static java.lang.String
LANGUAGES
Generated constant - Attribute key ofAttributeConstraint.languages
attribute defined at extensionvalidation
.static java.lang.String
QUALIFIER
Generated constant - Attribute key ofAttributeConstraint.qualifier
attribute defined at extensionvalidation
.-
Fields inherited from class de.hybris.platform.validation.model.constraints.AbstractConstraintModel
ACTIVE, ANNOTATION, CONSTRAINTGROUPS, DEFAULTMESSAGE, ID, MESSAGE, NEEDRELOAD, SEVERITY, TARGET, TYPE
-
Fields inherited from class de.hybris.platform.core.model.ItemModel
_COMMENTITEMRELATION, COMMENTS, CREATIONTIME, ITEMTYPE, MODIFIEDTIME, OWNER, PK, SEALED
-
Fields inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
LANGUAGE_FALLBACK_ENABLED_SERVICE_LAYER, MODEL_CONTEXT_FACTORY
-
-
Constructor Summary
Constructors Constructor Description AttributeConstraintModel()
Generated constructor - Default constructor for generic creation.AttributeConstraintModel(ItemModelContext ctx)
Generated constructor - Default constructor for creation with existing contextAttributeConstraintModel(java.lang.Class _annotation, java.lang.String _id)
Deprecated, for removal: This API element is subject to removal in a future version.since 4.1.1 Please use the default constructor without parametersAttributeConstraintModel(java.lang.Class _annotation, java.lang.String _id, ItemModel _owner)
Deprecated, for removal: This API element is subject to removal in a future version.since 4.1.1 Please use the default constructor without parameters
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AttributeDescriptorModel
getDescriptor()
Generated method - Getter of theAttributeConstraint.descriptor
attribute defined at extensionvalidation
.java.util.Set<LanguageModel>
getLanguages()
Generated method - Getter of theAttributeConstraint.languages
attribute defined at extensionvalidation
.java.lang.String
getQualifier()
Generated method - Getter of theAttributeConstraint.qualifier
attribute defined at extensionvalidation
.void
setDescriptor(AttributeDescriptorModel value)
Generated method - Setter ofAttributeConstraint.descriptor
attribute defined at extensionvalidation
.void
setLanguages(java.util.Set<LanguageModel> value)
Generated method - Setter ofAttributeConstraint.languages
attribute defined at extensionvalidation
.void
setQualifier(java.lang.String value)
Generated method - Setter ofAttributeConstraint.qualifier
attribute defined at extensionvalidation
.-
Methods inherited from class de.hybris.platform.validation.model.constraints.AbstractConstraintModel
getAnnotation, getConstraintGroups, getDefaultMessage, getDefaultMessage, getId, getMessage, getMessage, getSeverity, getTarget, getType, isActive, isNeedReload, setActive, setAnnotation, setConstraintGroups, setId, setMessage, setMessage, setSeverity, setTarget, setType
-
Methods inherited from class de.hybris.platform.core.model.ItemModel
getComments, getCreationtime, getModifiedtime, getOwner, isSealed, setComments, setCreationtime, setModifiedtime, setOwner
-
Methods inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
equals, getItemModelContext, getItemtype, getPersistenceContext, getPk, getProperty, getProperty, getTenantId, hashCode, readResolve, setProperty, setProperty, toObject, toObject, toObject, toObject, toObject, toObject, toObject, toObject, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toString, writeReplace
-
-
-
-
Field Detail
-
_TYPECODE
public static final java.lang.String _TYPECODE
Generated model type code constant.- See Also:
- Constant Field Values
-
QUALIFIER
public static final java.lang.String QUALIFIER
Generated constant - Attribute key ofAttributeConstraint.qualifier
attribute defined at extensionvalidation
.- See Also:
- Constant Field Values
-
LANGUAGES
public static final java.lang.String LANGUAGES
Generated constant - Attribute key ofAttributeConstraint.languages
attribute defined at extensionvalidation
.- See Also:
- Constant Field Values
-
DESCRIPTOR
public static final java.lang.String DESCRIPTOR
Generated constant - Attribute key ofAttributeConstraint.descriptor
attribute defined at extensionvalidation
.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AttributeConstraintModel
public AttributeConstraintModel()
Generated constructor - Default constructor for generic creation.
-
AttributeConstraintModel
public AttributeConstraintModel(ItemModelContext ctx)
Generated constructor - Default constructor for creation with existing context- Parameters:
ctx
- the model context to be injected, must not be null
-
AttributeConstraintModel
@Deprecated(since="4.1.1", forRemoval=true) public AttributeConstraintModel(java.lang.Class _annotation, java.lang.String _id)
Deprecated, for removal: This API element is subject to removal in a future version.since 4.1.1 Please use the default constructor without parametersGenerated constructor - Constructor with all mandatory attributes.- Parameters:
_annotation
- initial attribute declared by typeAbstractConstraint
at extensionvalidation
_id
- initial attribute declared by typeAbstractConstraint
at extensionvalidation
-
AttributeConstraintModel
@Deprecated(since="4.1.1", forRemoval=true) public AttributeConstraintModel(java.lang.Class _annotation, java.lang.String _id, ItemModel _owner)
Deprecated, for removal: This API element is subject to removal in a future version.since 4.1.1 Please use the default constructor without parametersGenerated constructor - for all mandatory and initial attributes.- Parameters:
_annotation
- initial attribute declared by typeAbstractConstraint
at extensionvalidation
_id
- initial attribute declared by typeAbstractConstraint
at extensionvalidation
_owner
- initial attribute declared by typeItem
at extensioncore
-
-
Method Detail
-
getDescriptor
@Accessor(qualifier="descriptor", type=GETTER) public AttributeDescriptorModel getDescriptor()
Generated method - Getter of theAttributeConstraint.descriptor
attribute defined at extensionvalidation
.- Returns:
- the descriptor
-
getLanguages
@Accessor(qualifier="languages", type=GETTER) public java.util.Set<LanguageModel> getLanguages()
Generated method - Getter of theAttributeConstraint.languages
attribute defined at extensionvalidation
. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.- Returns:
- the languages - Languages for which constraint will be enforced
-
getQualifier
@Accessor(qualifier="qualifier", type=GETTER) public java.lang.String getQualifier()
Generated method - Getter of theAttributeConstraint.qualifier
attribute defined at extensionvalidation
.- Returns:
- the qualifier - Qualifier name for attribute descriptor
-
setDescriptor
@Accessor(qualifier="descriptor", type=SETTER) public void setDescriptor(AttributeDescriptorModel value)
Generated method - Setter ofAttributeConstraint.descriptor
attribute defined at extensionvalidation
.- Parameters:
value
- the descriptor
-
setLanguages
@Accessor(qualifier="languages", type=SETTER) public void setLanguages(java.util.Set<LanguageModel> value)
Generated method - Setter ofAttributeConstraint.languages
attribute defined at extensionvalidation
.- Parameters:
value
- the languages - Languages for which constraint will be enforced
-
-