Class SizeConstraintModel

  • All Implemented Interfaces:
    java.io.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:
    Serialized Form
    • Field Detail

      • _TYPECODE

        public static final java.lang.String _TYPECODE
        Generated model type code constant.
        See Also:
        Constant Field Values
      • MIN

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

        public static final java.lang.String MAX
        Generated constant - Attribute key of SizeConstraint.max attribute defined at extension validation.
        See Also:
        Constant Field Values
    • Constructor Detail

      • SizeConstraintModel

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

        public SizeConstraintModel​(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​(java.lang.Class _annotation,
                                   java.lang.String _id,
                                   java.lang.Long _max,
                                   java.lang.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​(java.lang.Class _annotation,
                                   java.lang.String _id,
                                   java.lang.Long _max,
                                   java.lang.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 Detail

      • getMax

        @Accessor(qualifier="max",
                  type=GETTER)
        public java.lang.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 java.lang.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​(java.lang.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​(java.lang.Long value)
        Generated method - Setter of SizeConstraint.min attribute defined at extension validation.
        Parameters:
        value - the min - Underflow value