Class SizeConstraintModel
- 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.AttributeConstraintModel
-
- de.hybris.platform.validation.model.constraints.jsr303.SizeConstraintModel
-
- All Implemented Interfaces:
java.io.Serializable
public class SizeConstraintModel extends AttributeConstraintModel
Generated model class for type SizeConstraint first defined at extension validation.Size range JSR 303 compatible constraint class.
- 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
_TYPECODE
Generated model type code constant.static java.lang.String
MAX
Generated constant - Attribute key ofSizeConstraint.max
attribute defined at extensionvalidation
.static java.lang.String
MIN
Generated constant - Attribute key ofSizeConstraint.min
attribute defined at extensionvalidation
.-
Fields inherited from class de.hybris.platform.validation.model.constraints.AttributeConstraintModel
DESCRIPTOR, LANGUAGES, QUALIFIER
-
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 SizeConstraintModel()
Generated constructor - Default constructor for generic creation.SizeConstraintModel(ItemModelContext ctx)
Generated constructor - Default constructor for creation with existing contextSizeConstraintModel(java.lang.Class _annotation, java.lang.String _id, java.lang.Long _max, java.lang.Long _min)
Deprecated, for removal: This API element is subject to removal in a future version.since 4.1.1 Please use the default constructor without parametersSizeConstraintModel(java.lang.Class _annotation, java.lang.String _id, java.lang.Long _max, java.lang.Long _min, 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.Long
getMax()
Generated method - Getter of theSizeConstraint.max
attribute defined at extensionvalidation
.java.lang.Long
getMin()
Generated method - Getter of theSizeConstraint.min
attribute defined at extensionvalidation
.void
setMax(java.lang.Long value)
Generated method - Setter ofSizeConstraint.max
attribute defined at extensionvalidation
.void
setMin(java.lang.Long value)
Generated method - Setter ofSizeConstraint.min
attribute defined at extensionvalidation
.-
Methods inherited from class de.hybris.platform.validation.model.constraints.AttributeConstraintModel
getDescriptor, getLanguages, getQualifier, setDescriptor, setLanguages, setQualifier
-
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
-
MIN
public static final java.lang.String MIN
Generated constant - Attribute key ofSizeConstraint.min
attribute defined at extensionvalidation
.- See Also:
- Constant Field Values
-
MAX
public static final java.lang.String MAX
Generated constant - Attribute key ofSizeConstraint.max
attribute defined at extensionvalidation
.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SizeConstraintModel
public SizeConstraintModel()
Generated constructor - Default constructor for generic creation.
-
SizeConstraintModel
public SizeConstraintModel(ItemModelContext ctx)
Generated constructor - Default constructor for creation with existing context- Parameters:
ctx
- the model context to be injected, must not be null
-
SizeConstraintModel
@Deprecated(since="4.1.1", forRemoval=true) public SizeConstraintModel(java.lang.Class _annotation, java.lang.String _id, java.lang.Long _max, java.lang.Long _min)
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 typeSizeConstraint
at extensionvalidation
_id
- initial attribute declared by typeAbstractConstraint
at extensionvalidation
_max
- initial attribute declared by typeSizeConstraint
at extensionvalidation
_min
- initial attribute declared by typeSizeConstraint
at extensionvalidation
-
SizeConstraintModel
@Deprecated(since="4.1.1", forRemoval=true) public SizeConstraintModel(java.lang.Class _annotation, java.lang.String _id, java.lang.Long _max, java.lang.Long _min, 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 typeSizeConstraint
at extensionvalidation
_id
- initial attribute declared by typeAbstractConstraint
at extensionvalidation
_max
- initial attribute declared by typeSizeConstraint
at extensionvalidation
_min
- initial attribute declared by typeSizeConstraint
at extensionvalidation
_owner
- initial attribute declared by typeItem
at extensioncore
-
-
Method Detail
-
getMax
@Accessor(qualifier="max", type=GETTER) public java.lang.Long getMax()
Generated method - Getter of theSizeConstraint.max
attribute defined at extensionvalidation
.- Returns:
- the max - Overflow value
-
getMin
@Accessor(qualifier="min", type=GETTER) public java.lang.Long getMin()
Generated method - Getter of theSizeConstraint.min
attribute defined at extensionvalidation
.- Returns:
- the min - Underflow value
-
setMax
@Accessor(qualifier="max", type=SETTER) public void setMax(java.lang.Long value)
Generated method - Setter ofSizeConstraint.max
attribute defined at extensionvalidation
.- Parameters:
value
- the max - Overflow value
-
-