Class DigitsConstraintModel

All Implemented Interfaces:
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:
  • Field Details

    • _TYPECODE

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

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

      public static final String FRACTION
      Generated constant - Attribute key of DigitsConstraint.fraction attribute defined at extension validation.
      See Also:
  • Constructor Details

    • 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(Class _annotation, Integer _fraction, String _id, 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(Class _annotation, Integer _fraction, String _id, 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 Details

    • getFraction

      @Accessor(qualifier="fraction", type=GETTER) public 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 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(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(Integer value)
      Generated method - Setter of DigitsConstraint.integer attribute defined at extension validation.
      Parameters:
      value - the integer - Integer part of the number