Class 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

public class AttributeConstraintModel extends AbstractConstraintModel
Generated model class for type AttributeConstraint first defined at extension validation.

Attribute constraint definition.

See Also:
  • Field Details

    • _TYPECODE

      public static final String _TYPECODE
      Generated model type code constant.
      See Also:
    • QUALIFIER

      public static final String QUALIFIER
      Generated constant - Attribute key of AttributeConstraint.qualifier attribute defined at extension validation.
      See Also:
    • LANGUAGES

      public static final String LANGUAGES
      Generated constant - Attribute key of AttributeConstraint.languages attribute defined at extension validation.
      See Also:
    • DESCRIPTOR

      public static final String DESCRIPTOR
      Generated constant - Attribute key of AttributeConstraint.descriptor attribute defined at extension validation.
      See Also:
  • Constructor Details

    • 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(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 parameters
      Generated constructor - Constructor with all mandatory attributes.
      Parameters:
      _annotation - initial attribute declared by type AbstractConstraint at extension validation
      _id - initial attribute declared by type AbstractConstraint at extension validation
    • 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 parameters
      Generated constructor - for all mandatory and initial attributes.
      Parameters:
      _annotation - initial attribute declared by type AbstractConstraint at extension validation
      _id - initial attribute declared by type AbstractConstraint at extension validation
      _owner - initial attribute declared by type Item at extension core
  • Method Details

    • getDescriptor

      @Accessor(qualifier="descriptor", type=GETTER) public AttributeDescriptorModel getDescriptor()
      Generated method - Getter of the AttributeConstraint.descriptor attribute defined at extension validation.
      Returns:
      the descriptor
    • getLanguages

      @Accessor(qualifier="languages", type=GETTER) public Set<LanguageModel> getLanguages()
      Generated method - Getter of the AttributeConstraint.languages attribute defined at extension validation. 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 String getQualifier()
      Generated method - Getter of the AttributeConstraint.qualifier attribute defined at extension validation.
      Returns:
      the qualifier - Qualifier name for attribute descriptor
    • setDescriptor

      @Accessor(qualifier="descriptor", type=SETTER) public void setDescriptor(AttributeDescriptorModel value)
      Generated method - Setter of AttributeConstraint.descriptor attribute defined at extension validation.
      Parameters:
      value - the descriptor
    • setLanguages

      @Accessor(qualifier="languages", type=SETTER) public void setLanguages(Set<LanguageModel> value)
      Generated method - Setter of AttributeConstraint.languages attribute defined at extension validation.
      Parameters:
      value - the languages - Languages for which constraint will be enforced
    • setQualifier

      @Accessor(qualifier="qualifier", type=SETTER) public void setQualifier(String value)
      Generated method - Setter of AttributeConstraint.qualifier attribute defined at extension validation.
      Parameters:
      value - the qualifier - Qualifier name for attribute descriptor