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:
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,SnCollectionPatternConstraintModel,SnWeightConstraintModel
Generated model class for type AttributeConstraint first defined at extension validation.
Attribute constraint definition.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
AbstractItemModel.NewModelContextFactory -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringGenerated model type code constant.static final StringGenerated constant - Attribute key ofAttributeConstraint.descriptorattribute defined at extensionvalidation.static final StringGenerated constant - Attribute key ofAttributeConstraint.languagesattribute defined at extensionvalidation.static final StringGenerated constant - Attribute key ofAttributeConstraint.qualifierattribute defined at extensionvalidation.Fields inherited from class de.hybris.platform.validation.model.constraints.AbstractConstraintModel
ACTIVE, ANNOTATION, CONSTRAINTGROUPS, DEFAULTMESSAGE, ID, MESSAGE, NEEDRELOAD, SEVERITY, TARGET, TYPEFields inherited from class de.hybris.platform.core.model.ItemModel
_COMMENTITEMRELATION, COMMENTS, CREATIONTIME, ITEMTYPE, MODIFIEDTIME, OWNER, PK, SEALEDFields inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
LANGUAGE_FALLBACK_ENABLED_SERVICE_LAYER, MODEL_CONTEXT_FACTORY -
Constructor Summary
ConstructorsConstructorDescriptionGenerated constructor - Default constructor for generic creation.Generated constructor - Default constructor for creation with existing contextAttributeConstraintModel(Class _annotation, 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(Class _annotation, 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
Modifier and TypeMethodDescriptionGenerated method - Getter of theAttributeConstraint.descriptorattribute defined at extensionvalidation.Generated method - Getter of theAttributeConstraint.languagesattribute defined at extensionvalidation.Generated method - Getter of theAttributeConstraint.qualifierattribute defined at extensionvalidation.voidGenerated method - Setter ofAttributeConstraint.descriptorattribute defined at extensionvalidation.voidsetLanguages(Set<LanguageModel> value) Generated method - Setter ofAttributeConstraint.languagesattribute defined at extensionvalidation.voidsetQualifier(String value) Generated method - Setter ofAttributeConstraint.qualifierattribute 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, setTypeMethods inherited from class de.hybris.platform.core.model.ItemModel
getComments, getCreationtime, getModifiedtime, getOwner, isSealed, setComments, setCreationtime, setModifiedtime, setOwnerMethods 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 Details
-
_TYPECODE
Generated model type code constant.- See Also:
-
QUALIFIER
Generated constant - Attribute key ofAttributeConstraint.qualifierattribute defined at extensionvalidation.- See Also:
-
LANGUAGES
Generated constant - Attribute key ofAttributeConstraint.languagesattribute defined at extensionvalidation.- See Also:
-
DESCRIPTOR
Generated constant - Attribute key ofAttributeConstraint.descriptorattribute defined at extensionvalidation.- See Also:
-
-
Constructor Details
-
AttributeConstraintModel
public AttributeConstraintModel()Generated constructor - Default constructor for generic creation. -
AttributeConstraintModel
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(Class _annotation, 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 typeAbstractConstraintat extensionvalidation_id- initial attribute declared by typeAbstractConstraintat extensionvalidation
-
AttributeConstraintModel
@Deprecated(since="4.1.1", forRemoval=true) public AttributeConstraintModel(Class _annotation, 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 typeAbstractConstraintat extensionvalidation_id- initial attribute declared by typeAbstractConstraintat extensionvalidation_owner- initial attribute declared by typeItemat extensioncore
-
-
Method Details
-
getDescriptor
Generated method - Getter of theAttributeConstraint.descriptorattribute defined at extensionvalidation.- Returns:
- the descriptor
-
getLanguages
Generated method - Getter of theAttributeConstraint.languagesattribute 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
Generated method - Getter of theAttributeConstraint.qualifierattribute 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.descriptorattribute defined at extensionvalidation.- Parameters:
value- the descriptor
-
setLanguages
Generated method - Setter ofAttributeConstraint.languagesattribute defined at extensionvalidation.- Parameters:
value- the languages - Languages for which constraint will be enforced
-
setQualifier
Generated method - Setter ofAttributeConstraint.qualifierattribute defined at extensionvalidation.- Parameters:
value- the qualifier - Qualifier name for attribute descriptor
-