Class DynamicConstraintModel

java.lang.Object
de.hybris.platform.servicelayer.model.AbstractItemModel
All Implemented Interfaces:
Serializable

public class DynamicConstraintModel extends TypeConstraintModel
Generated model class for type DynamicConstraint first defined at extension validation.

Dynamic constraint definition.

See Also:
  • Field Details

    • _TYPECODE

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

      public static final String LANGUAGE
      Generated constant - Attribute key of DynamicConstraint.language attribute defined at extension validation.
      See Also:
    • EXPRESSION

      public static final String EXPRESSION
      Generated constant - Attribute key of DynamicConstraint.expression attribute defined at extension validation.
      See Also:
  • Constructor Details

    • DynamicConstraintModel

      public DynamicConstraintModel()
      Generated constructor - Default constructor for generic creation.
    • DynamicConstraintModel

      public DynamicConstraintModel(de.hybris.platform.servicelayer.model.ItemModelContext ctx)
      Generated constructor - Default constructor for creation with existing context
      Parameters:
      ctx - the model context to be injected, must not be null
    • DynamicConstraintModel

      @Deprecated(since="4.1.1", forRemoval=true) public DynamicConstraintModel(Class _annotation, String _expression, String _id, ValidatorLanguage _language)
      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 DynamicConstraint at extension validation
      _expression - initial attribute declared by type DynamicConstraint at extension validation
      _id - initial attribute declared by type AbstractConstraint at extension validation
      _language - initial attribute declared by type DynamicConstraint at extension validation
    • DynamicConstraintModel

      @Deprecated(since="4.1.1", forRemoval=true) public DynamicConstraintModel(Class _annotation, String _expression, String _id, ValidatorLanguage _language, 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 DynamicConstraint at extension validation
      _expression - initial attribute declared by type DynamicConstraint at extension validation
      _id - initial attribute declared by type AbstractConstraint at extension validation
      _language - initial attribute declared by type DynamicConstraint at extension validation
      _owner - initial attribute declared by type Item at extension core
  • Method Details

    • getExpression

      @Accessor(qualifier="expression", type=GETTER) public String getExpression()
      Generated method - Getter of the DynamicConstraint.expression attribute defined at extension validation.
      Returns:
      the expression - Expression to evaluate in assigned language type
    • getLanguage

      @Accessor(qualifier="language", type=GETTER) public ValidatorLanguage getLanguage()
      Generated method - Getter of the DynamicConstraint.language attribute defined at extension validation.
      Returns:
      the language - Type of the dynamic script language
    • setExpression

      @Accessor(qualifier="expression", type=SETTER) public void setExpression(String value)
      Generated method - Setter of DynamicConstraint.expression attribute defined at extension validation.
      Parameters:
      value - the expression - Expression to evaluate in assigned language type
    • setLanguage

      @Accessor(qualifier="language", type=SETTER) public void setLanguage(ValidatorLanguage value)
      Generated method - Setter of DynamicConstraint.language attribute defined at extension validation.
      Parameters:
      value - the language - Type of the dynamic script language