public class DigitsConstraintModel extends AttributeConstraintModel
Digits JSR 303 compatible constraint class.
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
_TYPECODE
Generated model type code constant.
|
static java.lang.String |
FRACTION
Generated constant - Attribute key of
DigitsConstraint.fraction attribute defined at extension validation. |
static java.lang.String |
INTEGER
Generated constant - Attribute key of
DigitsConstraint.integer attribute defined at extension validation. |
DESCRIPTOR, LANGUAGES, QUALIFIERACTIVE, ANNOTATION, CONSTRAINTGROUPS, DEFAULTMESSAGE, ID, MESSAGE, NEEDRELOAD, SEVERITY, TARGET, TYPE_COMMENTITEMRELATION, COMMENTS, CREATIONTIME, ITEMTYPE, MODIFIEDTIME, OWNER, PK, SEALED| Constructor and Description |
|---|
DigitsConstraintModel()
Generated constructor - Default constructor for generic creation.
|
DigitsConstraintModel(java.lang.Class _annotation,
java.lang.Integer _fraction,
java.lang.String _id,
java.lang.Integer _integer)
Deprecated.
since 4.1.1 Please use the default constructor without parameters
|
DigitsConstraintModel(java.lang.Class _annotation,
java.lang.Integer _fraction,
java.lang.String _id,
java.lang.Integer _integer,
ItemModel _owner)
Deprecated.
since 4.1.1 Please use the default constructor without parameters
|
DigitsConstraintModel(ItemModelContext ctx)
Generated constructor - Default constructor for creation with existing context
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Integer |
getFraction()
Generated method - Getter of the
DigitsConstraint.fraction attribute defined at extension validation. |
java.lang.Integer |
getInteger()
Generated method - Getter of the
DigitsConstraint.integer attribute defined at extension validation. |
void |
setFraction(java.lang.Integer value)
Generated method - Setter of
DigitsConstraint.fraction attribute defined at extension validation. |
void |
setInteger(java.lang.Integer value)
Generated method - Setter of
DigitsConstraint.integer attribute defined at extension validation. |
getDescriptor, getLanguages, getQualifier, setDescriptor, setLanguages, setQualifiergetAnnotation, getConstraintGroups, getDefaultMessage, getDefaultMessage, getId, getMessage, getMessage, getSeverity, getTarget, getType, isActive, isNeedReload, setActive, setAnnotation, setConstraintGroups, setId, setMessage, setMessage, setSeverity, setTarget, setTypegetComments, getCreationtime, getModifiedtime, getOwner, isSealed, setComments, setCreationtime, setModifiedtime, setOwnerpublic static final java.lang.String _TYPECODE
public static final java.lang.String INTEGER
DigitsConstraint.integer attribute defined at extension validation.public static final java.lang.String FRACTION
DigitsConstraint.fraction attribute defined at extension validation.public DigitsConstraintModel()
public DigitsConstraintModel(ItemModelContext ctx)
ctx - the model context to be injected, must not be null@Deprecated
public DigitsConstraintModel(java.lang.Class _annotation,
java.lang.Integer _fraction,
java.lang.String _id,
java.lang.Integer _integer)
_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@Deprecated
public DigitsConstraintModel(java.lang.Class _annotation,
java.lang.Integer _fraction,
java.lang.String _id,
java.lang.Integer _integer,
ItemModel _owner)
_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 corepublic java.lang.Integer getFraction()
DigitsConstraint.fraction attribute defined at extension validation.public java.lang.Integer getInteger()
DigitsConstraint.integer attribute defined at extension validation.public void setFraction(java.lang.Integer value)
DigitsConstraint.fraction attribute defined at extension validation.value - the fraction - Fraction part of the numberpublic void setInteger(java.lang.Integer value)
DigitsConstraint.integer attribute defined at extension validation.value - the integer - Integer part of the numberCopyright © 2018 SAP SE. All Rights Reserved.