Class DigitsConstraintModel

  • All Implemented Interfaces:
    java.io.Serializable

    public class DigitsConstraintModel
    extends AttributeConstraintModel
    Generated model class for type DigitsConstraint first defined at extension validation.

    Digits 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
      • INTEGER

        public static final java.lang.String INTEGER
        Generated constant - Attribute key of DigitsConstraint.integer attribute defined at extension validation.
        See Also:
        Constant Field Values
      • FRACTION

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

      • DigitsConstraintModel

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

        public DigitsConstraintModel​(ItemModelContext ctx)
        Generated constructor - Default constructor for creation with existing context
        Parameters:
        ctx - the model context to be injected, must not be null
      • DigitsConstraintModel

        @Deprecated(since="4.1.1",
                    forRemoval=true)
        public DigitsConstraintModel​(java.lang.Class _annotation,
                                     java.lang.Integer _fraction,
                                     java.lang.String _id,
                                     java.lang.Integer _integer)
        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 DigitsConstraint at extension validation
        _fraction - initial attribute declared by type DigitsConstraint at extension validation
        _id - initial attribute declared by type AbstractConstraint at extension validation
        _integer - initial attribute declared by type DigitsConstraint at extension validation
      • DigitsConstraintModel

        @Deprecated(since="4.1.1",
                    forRemoval=true)
        public DigitsConstraintModel​(java.lang.Class _annotation,
                                     java.lang.Integer _fraction,
                                     java.lang.String _id,
                                     java.lang.Integer _integer,
                                     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 DigitsConstraint at extension validation
        _fraction - initial attribute declared by type DigitsConstraint at extension validation
        _id - initial attribute declared by type AbstractConstraint at extension validation
        _integer - initial attribute declared by type DigitsConstraint at extension validation
        _owner - initial attribute declared by type Item at extension core
    • Method Detail

      • getFraction

        @Accessor(qualifier="fraction",
                  type=GETTER)
        public java.lang.Integer getFraction()
        Generated method - Getter of the DigitsConstraint.fraction attribute defined at extension validation.
        Returns:
        the fraction - Fraction part of the number
      • getInteger

        @Accessor(qualifier="integer",
                  type=GETTER)
        public java.lang.Integer getInteger()
        Generated method - Getter of the DigitsConstraint.integer attribute defined at extension validation.
        Returns:
        the integer - Integer part of the number
      • setFraction

        @Accessor(qualifier="fraction",
                  type=SETTER)
        public void setFraction​(java.lang.Integer value)
        Generated method - Setter of DigitsConstraint.fraction attribute defined at extension validation.
        Parameters:
        value - the fraction - Fraction part of the number
      • setInteger

        @Accessor(qualifier="integer",
                  type=SETTER)
        public void setInteger​(java.lang.Integer value)
        Generated method - Setter of DigitsConstraint.integer attribute defined at extension validation.
        Parameters:
        value - the integer - Integer part of the number