public class SizeConstraintModel extends AttributeConstraintModel
Size range JSR 303 compatible constraint class.
AbstractItemModel.NewModelContextFactory| Modifier and Type | Field and Description |
|---|---|
static String |
_TYPECODE
Generated model type code constant.
|
static String |
MAX
Generated constant - Attribute key of
SizeConstraint.max attribute defined at extension validation. |
static String |
MIN
Generated constant - Attribute key of
SizeConstraint.min attribute defined at extension validation. |
DESCRIPTOR, LANGUAGES, QUALIFIERACTIVE, ANNOTATION, CONSTRAINTGROUPS, DEFAULTMESSAGE, ID, MESSAGE, NEEDRELOAD, SEVERITY, TARGET, TYPE_COMMENTITEMRELATION, COMMENTS, CREATIONTIME, ITEMTYPE, MODIFIEDTIME, OWNER, PKLANGUAGE_FALLBACK_ENABLED_SERVICE_LAYER, MODEL_CONTEXT_FACTORY| Constructor and Description |
|---|
SizeConstraintModel()
Generated constructor - Default constructor for generic creation.
|
SizeConstraintModel(Class _annotation,
String _id,
Long _max,
Long _min)
Deprecated.
Since 4.1.1 Please use the default constructor without parameters
|
SizeConstraintModel(Class _annotation,
String _id,
Long _max,
Long _min,
ItemModel _owner)
Deprecated.
Since 4.1.1 Please use the default constructor without parameters
|
SizeConstraintModel(ItemModelContext ctx)
Generated constructor - Default constructor for creation with existing context
|
| Modifier and Type | Method and Description |
|---|---|
Long |
getMax()
Generated method - Getter of the
SizeConstraint.max attribute defined at extension validation. |
Long |
getMin()
Generated method - Getter of the
SizeConstraint.min attribute defined at extension validation. |
void |
setMax(Long value)
Generated method - Setter of
SizeConstraint.max attribute defined at extension validation. |
void |
setMin(Long value)
Generated method - Setter of
SizeConstraint.min 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, setComments, setCreationtime, setModifiedtime, setOwnerequals, getItemModelContext, getItemtype, getPersistenceContext, getPk, getProperty, getProperty, getTenantId, hashCode, readResolve, setProperty, setProperty, toObject, toObject, toObject, toObject, toObject, toObject, toObject, toObject, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toString, writeReplacepublic static final String _TYPECODE
public static final String MIN
SizeConstraint.min attribute defined at extension validation.public static final String MAX
SizeConstraint.max attribute defined at extension validation.public SizeConstraintModel()
public SizeConstraintModel(ItemModelContext ctx)
ctx - the model context to be injected, must not be null@Deprecated public SizeConstraintModel(Class _annotation, String _id, Long _max, Long _min)
_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@Deprecated public SizeConstraintModel(Class _annotation, String _id, Long _max, Long _min, ItemModel _owner)
_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@Accessor(qualifier="max", type=GETTER) public Long getMax()
SizeConstraint.max attribute defined at extension validation.@Accessor(qualifier="min", type=GETTER) public Long getMin()
SizeConstraint.min attribute defined at extension validation.@Accessor(qualifier="max", type=SETTER) public void setMax(Long value)
SizeConstraint.max attribute defined at extension validation.value - the max - Overflow valueCopyright © 2017 SAP SE. All Rights Reserved.