public class DynamicConstraintModel extends TypeConstraintModel
Dynamic constraint definition.
AbstractItemModel.NewModelContextFactory| 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, SEALEDLANGUAGE_FALLBACK_ENABLED_SERVICE_LAYER, MODEL_CONTEXT_FACTORY| 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, 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 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 core@Accessor(qualifier="expression", type=GETTER) public java.lang.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(java.lang.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 © 2018 SAP SE. All Rights Reserved.