Class DynamicConstraintModel
java.lang.Object
de.hybris.platform.servicelayer.model.AbstractItemModel
de.hybris.platform.core.model.ItemModel
de.hybris.platform.validation.model.constraints.AbstractConstraintModel
de.hybris.platform.validation.model.constraints.TypeConstraintModel
de.hybris.platform.validation.model.constraints.DynamicConstraintModel
- All Implemented Interfaces:
Serializable
Generated model class for type DynamicConstraint first defined at extension validation.
Dynamic constraint definition.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
de.hybris.platform.servicelayer.model.AbstractItemModel.NewModelContextFactory -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringGenerated model type code constant.static final StringGenerated constant - Attribute key ofDynamicConstraint.expressionattribute defined at extensionvalidation.static final StringGenerated constant - Attribute key ofDynamicConstraint.languageattribute defined at extensionvalidation.Fields inherited from class de.hybris.platform.validation.model.constraints.AbstractConstraintModel
ACTIVE, ANNOTATION, CONSTRAINTGROUPS, DEFAULTMESSAGE, ID, MESSAGE, NEEDRELOAD, SEVERITY, TARGET, TYPEFields inherited from class de.hybris.platform.core.model.ItemModel
_COMMENTITEMRELATION, COMMENTS, CREATIONTIME, ITEMTYPE, MODIFIEDTIME, OWNER, PK, SEALEDFields inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
LANGUAGE_FALLBACK_ENABLED_SERVICE_LAYER, MODEL_CONTEXT_FACTORY -
Constructor Summary
ConstructorsConstructorDescriptionGenerated constructor - Default constructor for generic creation.DynamicConstraintModel(de.hybris.platform.servicelayer.model.ItemModelContext ctx) Generated constructor - Default constructor for creation with existing contextDynamicConstraintModel(Class _annotation, String _expression, String _id, ValidatorLanguage _language) Deprecated, for removal: This API element is subject to removal in a future version.since 4.1.1 Please use the default constructor without parametersDynamicConstraintModel(Class _annotation, String _expression, String _id, ValidatorLanguage _language, ItemModel _owner) Deprecated, for removal: This API element is subject to removal in a future version.since 4.1.1 Please use the default constructor without parameters -
Method Summary
Modifier and TypeMethodDescriptionGenerated method - Getter of theDynamicConstraint.expressionattribute defined at extensionvalidation.Generated method - Getter of theDynamicConstraint.languageattribute defined at extensionvalidation.voidsetExpression(String value) Generated method - Setter ofDynamicConstraint.expressionattribute defined at extensionvalidation.voidsetLanguage(ValidatorLanguage value) Generated method - Setter ofDynamicConstraint.languageattribute defined at extensionvalidation.Methods inherited from class de.hybris.platform.validation.model.constraints.AbstractConstraintModel
getAnnotation, getConstraintGroups, getDefaultMessage, getDefaultMessage, getId, getMessage, getMessage, getSeverity, getTarget, getType, isActive, isNeedReload, setActive, setAnnotation, setConstraintGroups, setId, setMessage, setMessage, setSeverity, setTarget, setTypeMethods inherited from class de.hybris.platform.core.model.ItemModel
getComments, getCreationtime, getModifiedtime, getOwner, isSealed, setComments, setCreationtime, setModifiedtime, setOwnerMethods inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
equals, 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, writeReplace
-
Field Details
-
_TYPECODE
Generated model type code constant.- See Also:
-
LANGUAGE
Generated constant - Attribute key ofDynamicConstraint.languageattribute defined at extensionvalidation.- See Also:
-
EXPRESSION
Generated constant - Attribute key ofDynamicConstraint.expressionattribute defined at extensionvalidation.- See Also:
-
-
Constructor Details
-
DynamicConstraintModel
public DynamicConstraintModel()Generated constructor - Default constructor for generic creation. -
DynamicConstraintModel
public DynamicConstraintModel(de.hybris.platform.servicelayer.model.ItemModelContext ctx) Generated constructor - Default constructor for creation with existing context- Parameters:
ctx- the model context to be injected, must not be null
-
DynamicConstraintModel
@Deprecated(since="4.1.1", forRemoval=true) public DynamicConstraintModel(Class _annotation, String _expression, String _id, ValidatorLanguage _language) Deprecated, for removal: This API element is subject to removal in a future version.since 4.1.1 Please use the default constructor without parametersGenerated constructor - Constructor with all mandatory attributes.- Parameters:
_annotation- initial attribute declared by typeDynamicConstraintat extensionvalidation_expression- initial attribute declared by typeDynamicConstraintat extensionvalidation_id- initial attribute declared by typeAbstractConstraintat extensionvalidation_language- initial attribute declared by typeDynamicConstraintat extensionvalidation
-
DynamicConstraintModel
@Deprecated(since="4.1.1", forRemoval=true) public DynamicConstraintModel(Class _annotation, String _expression, String _id, ValidatorLanguage _language, ItemModel _owner) Deprecated, for removal: This API element is subject to removal in a future version.since 4.1.1 Please use the default constructor without parametersGenerated constructor - for all mandatory and initial attributes.- Parameters:
_annotation- initial attribute declared by typeDynamicConstraintat extensionvalidation_expression- initial attribute declared by typeDynamicConstraintat extensionvalidation_id- initial attribute declared by typeAbstractConstraintat extensionvalidation_language- initial attribute declared by typeDynamicConstraintat extensionvalidation_owner- initial attribute declared by typeItemat extensioncore
-
-
Method Details
-
getExpression
Generated method - Getter of theDynamicConstraint.expressionattribute defined at extensionvalidation.- Returns:
- the expression - Expression to evaluate in assigned language type
-
getLanguage
Generated method - Getter of theDynamicConstraint.languageattribute defined at extensionvalidation.- Returns:
- the language - Type of the dynamic script language
-
setExpression
Generated method - Setter ofDynamicConstraint.expressionattribute defined at extensionvalidation.- Parameters:
value- the expression - Expression to evaluate in assigned language type
-
setLanguage
Generated method - Setter ofDynamicConstraint.languageattribute defined at extensionvalidation.- Parameters:
value- the language - Type of the dynamic script language
-