public class DynamicConstraintModel extends TypeConstraintModel
Dynamic constraint definition.
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
_TYPECODE
Generated model type code constant.
|
static java.lang.String |
EXPRESSION
Generated constant - Attribute key of
DynamicConstraint.expression attribute defined at extension validation. |
static java.lang.String |
LANGUAGE
Generated constant - Attribute key of
DynamicConstraint.language attribute defined at extension validation. |
ACTIVE, ANNOTATION, CONSTRAINTGROUPS, DEFAULTMESSAGE, ID, MESSAGE, NEEDRELOAD, SEVERITY, TARGET, TYPE_COMMENTITEMRELATION, COMMENTS, CREATIONTIME, ITEMTYPE, MODIFIEDTIME, OWNER, PK, SEALED| Constructor and Description |
|---|
DynamicConstraintModel()
Generated constructor - Default constructor for generic creation.
|
DynamicConstraintModel(java.lang.Class _annotation,
java.lang.String _expression,
java.lang.String _id,
ValidatorLanguage _language)
Deprecated.
since 4.1.1 Please use the default constructor without parameters
|
DynamicConstraintModel(java.lang.Class _annotation,
java.lang.String _expression,
java.lang.String _id,
ValidatorLanguage _language,
ItemModel _owner)
Deprecated.
since 4.1.1 Please use the default constructor without parameters
|
DynamicConstraintModel(ItemModelContext ctx)
Generated constructor - Default constructor for creation with existing context
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getExpression()
Generated method - Getter of the
DynamicConstraint.expression attribute defined at extension validation. |
ValidatorLanguage |
getLanguage()
Generated method - Getter of the
DynamicConstraint.language attribute defined at extension validation. |
void |
setExpression(java.lang.String value)
Generated method - Setter of
DynamicConstraint.expression attribute defined at extension validation. |
void |
setLanguage(ValidatorLanguage value)
Generated method - Setter of
DynamicConstraint.language attribute defined at extension validation. |
getAnnotation, 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 LANGUAGE
DynamicConstraint.language attribute defined at extension validation.public static final java.lang.String EXPRESSION
DynamicConstraint.expression attribute defined at extension validation.public DynamicConstraintModel()
public DynamicConstraintModel(ItemModelContext ctx)
ctx - the model context to be injected, must not be null@Deprecated
public DynamicConstraintModel(java.lang.Class _annotation,
java.lang.String _expression,
java.lang.String _id,
ValidatorLanguage _language)
_annotation - initial attribute declared by type DynamicConstraint at extension validation_expression - initial attribute declared by type DynamicConstraint at extension validation_id - initial attribute declared by type AbstractConstraint at extension validation_language - initial attribute declared by type DynamicConstraint at extension validation@Deprecated
public DynamicConstraintModel(java.lang.Class _annotation,
java.lang.String _expression,
java.lang.String _id,
ValidatorLanguage _language,
ItemModel _owner)
_annotation - initial attribute declared by type DynamicConstraint at extension validation_expression - initial attribute declared by type DynamicConstraint at extension validation_id - initial attribute declared by type AbstractConstraint at extension validation_language - initial attribute declared by type DynamicConstraint at extension validation_owner - initial attribute declared by type Item at extension corepublic java.lang.String getExpression()
DynamicConstraint.expression attribute defined at extension validation.public ValidatorLanguage getLanguage()
DynamicConstraint.language attribute defined at extension validation.public void setExpression(java.lang.String value)
DynamicConstraint.expression attribute defined at extension validation.value - the expression - Expression to evaluate in assigned language typepublic void setLanguage(ValidatorLanguage value)
DynamicConstraint.language attribute defined at extension validation.value - the language - Type of the dynamic script languageCopyright © 2018 SAP SE. All Rights Reserved.