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:
java.io.Serializable
public class DynamicConstraintModel extends TypeConstraintModel
Generated model class for type DynamicConstraint first defined at extension validation.Dynamic constraint definition.
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
AbstractItemModel.NewModelContextFactory
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String_TYPECODEGenerated model type code constant.static java.lang.StringEXPRESSIONGenerated constant - Attribute key ofDynamicConstraint.expressionattribute defined at extensionvalidation.static java.lang.StringLANGUAGEGenerated 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, TYPE
-
Fields inherited from class de.hybris.platform.core.model.ItemModel
_COMMENTITEMRELATION, COMMENTS, CREATIONTIME, ITEMTYPE, MODIFIEDTIME, OWNER, PK, SEALED
-
Fields inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
LANGUAGE_FALLBACK_ENABLED_SERVICE_LAYER, MODEL_CONTEXT_FACTORY
-
-
Constructor Summary
Constructors Constructor Description DynamicConstraintModel()Generated constructor - Default constructor for generic creation.DynamicConstraintModel(ItemModelContext ctx)Generated constructor - Default constructor for creation with existing contextDynamicConstraintModel(java.lang.Class _annotation, java.lang.String _expression, java.lang.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(java.lang.Class _annotation, java.lang.String _expression, java.lang.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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetExpression()Generated method - Getter of theDynamicConstraint.expressionattribute defined at extensionvalidation.ValidatorLanguagegetLanguage()Generated method - Getter of theDynamicConstraint.languageattribute defined at extensionvalidation.voidsetExpression(java.lang.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, setType
-
Methods inherited from class de.hybris.platform.core.model.ItemModel
getComments, getCreationtime, getModifiedtime, getOwner, isSealed, setComments, setCreationtime, setModifiedtime, setOwner
-
Methods 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 Detail
-
_TYPECODE
public static final java.lang.String _TYPECODE
Generated model type code constant.- See Also:
- Constant Field Values
-
LANGUAGE
public static final java.lang.String LANGUAGE
Generated constant - Attribute key ofDynamicConstraint.languageattribute defined at extensionvalidation.- See Also:
- Constant Field Values
-
EXPRESSION
public static final java.lang.String EXPRESSION
Generated constant - Attribute key ofDynamicConstraint.expressionattribute defined at extensionvalidation.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DynamicConstraintModel
public DynamicConstraintModel()
Generated constructor - Default constructor for generic creation.
-
DynamicConstraintModel
public DynamicConstraintModel(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(java.lang.Class _annotation, java.lang.String _expression, java.lang.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(java.lang.Class _annotation, java.lang.String _expression, java.lang.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 Detail
-
getExpression
@Accessor(qualifier="expression", type=GETTER) public java.lang.String getExpression()
Generated method - Getter of theDynamicConstraint.expressionattribute defined at extensionvalidation.- Returns:
- the expression - Expression to evaluate in assigned language type
-
getLanguage
@Accessor(qualifier="language", type=GETTER) public ValidatorLanguage getLanguage()
Generated method - Getter of theDynamicConstraint.languageattribute defined at extensionvalidation.- Returns:
- the language - Type of the dynamic script language
-
setExpression
@Accessor(qualifier="expression", type=SETTER) public void setExpression(java.lang.String value)
Generated method - Setter ofDynamicConstraint.expressionattribute defined at extensionvalidation.- Parameters:
value- the expression - Expression to evaluate in assigned language type
-
setLanguage
@Accessor(qualifier="language", type=SETTER) public void setLanguage(ValidatorLanguage value)
Generated method - Setter ofDynamicConstraint.languageattribute defined at extensionvalidation.- Parameters:
value- the language - Type of the dynamic script language
-
-