Class SizeConstraintModel

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

public class SizeConstraintModel extends AttributeConstraintModel
Generated model class for type SizeConstraint first defined at extension validation.

Size range JSR 303 compatible constraint class.

See Also:
  • Field Details

    • _TYPECODE

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

      public static final String MIN
      Generated constant - Attribute key of SizeConstraint.min attribute defined at extension validation.
      See Also:
    • MAX

      public static final String MAX
      Generated constant - Attribute key of SizeConstraint.max attribute defined at extension validation.
      See Also:
  • Constructor Details

    • SizeConstraintModel

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

      public SizeConstraintModel(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
    • SizeConstraintModel

      @Deprecated(since="4.1.1", forRemoval=true) public SizeConstraintModel(Class _annotation, String _id, Long _max, Long _min)
      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 SizeConstraint at extension validation
      _id - initial attribute declared by type AbstractConstraint at extension validation
      _max - initial attribute declared by type SizeConstraint at extension validation
      _min - initial attribute declared by type SizeConstraint at extension validation
    • SizeConstraintModel

      @Deprecated(since="4.1.1", forRemoval=true) public SizeConstraintModel(Class _annotation, String _id, Long _max, Long _min, 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 SizeConstraint at extension validation
      _id - initial attribute declared by type AbstractConstraint at extension validation
      _max - initial attribute declared by type SizeConstraint at extension validation
      _min - initial attribute declared by type SizeConstraint at extension validation
      _owner - initial attribute declared by type Item at extension core
  • Method Details

    • getMax

      @Accessor(qualifier="max", type=GETTER) public Long getMax()
      Generated method - Getter of the SizeConstraint.max attribute defined at extension validation.
      Returns:
      the max - Overflow value
    • getMin

      @Accessor(qualifier="min", type=GETTER) public Long getMin()
      Generated method - Getter of the SizeConstraint.min attribute defined at extension validation.
      Returns:
      the min - Underflow value
    • setMax

      @Accessor(qualifier="max", type=SETTER) public void setMax(Long value)
      Generated method - Setter of SizeConstraint.max attribute defined at extension validation.
      Parameters:
      value - the max - Overflow value
    • setMin

      @Accessor(qualifier="min", type=SETTER) public void setMin(Long value)
      Generated method - Setter of SizeConstraint.min attribute defined at extension validation.
      Parameters:
      value - the min - Underflow value