public class DynamicConstraintModel extends TypeConstraintModel
Dynamic constraint definition.
AbstractItemModel.NewModelContextFactory| Modifier and Type | Field and Description |
|---|---|
static String |
_TYPECODE
Generated model type code constant.
|
static String |
EXPRESSION
Generated constant - Attribute key of
DynamicConstraint.expression attribute defined at extension validation. |
static 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, PKLANGUAGE_FALLBACK_ENABLED_SERVICE_LAYER, MODEL_CONTEXT_FACTORY| Constructor and Description |
|---|
DynamicConstraintModel()
Generated constructor - Default constructor for generic creation.
|
DynamicConstraintModel(Class _annotation,
String _expression,
String _id,
ValidatorLanguage _language)
Deprecated.
Since 4.1.1 Please use the default constructor without parameters
|
DynamicConstraintModel(Class _annotation,
String _expression,
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 |
|---|---|
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(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, 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 LANGUAGE
DynamicConstraint.language attribute defined at extension validation.public static final 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(Class _annotation, String _expression, 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(Class _annotation, String _expression, 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 core@Accessor(qualifier="expression", type=GETTER) public String getExpression()
DynamicConstraint.expression attribute defined at extension validation.@Accessor(qualifier="language", type=GETTER) public ValidatorLanguage getLanguage()
DynamicConstraint.language attribute defined at extension validation.@Accessor(qualifier="expression", type=SETTER) public void setExpression(String value)
DynamicConstraint.expression attribute defined at extension validation.value - the expression - Expression to evaluate in assigned language type@Accessor(qualifier="language", type=SETTER) public void setLanguage(ValidatorLanguage value)
DynamicConstraint.language attribute defined at extension validation.value - the language - Type of the dynamic script languageCopyright © 2017 SAP SE. All Rights Reserved.