Class PatternConstraintModel
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.PatternConstraintModel
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
B2BCustomerEmailConstraintModel
Generated model class for type PatternConstraint first defined at extension validation.
Pattern JSR 303 compatible constraint class.
- 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 ofPatternConstraint.flagsattribute defined at extensionvalidation.static final StringGenerated constant - Attribute key ofPatternConstraint.regexpattribute defined at extensionvalidation.Fields inherited from class de.hybris.platform.validation.model.constraints.AttributeConstraintModel
DESCRIPTOR, LANGUAGES, QUALIFIERFields 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.PatternConstraintModel(de.hybris.platform.servicelayer.model.ItemModelContext ctx) Generated constructor - Default constructor for creation with existing contextPatternConstraintModel(Class _annotation, Set<RegexpFlag> _flags, String _id, ItemModel _owner, String _regexp) Deprecated, for removal: This API element is subject to removal in a future version.since 4.1.1 Please use the default constructor without parametersPatternConstraintModel(Class _annotation, Set<RegexpFlag> _flags, String _id, String _regexp) 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 TypeMethodDescriptiongetFlags()Generated method - Getter of thePatternConstraint.flagsattribute defined at extensionvalidation.Generated method - Getter of thePatternConstraint.regexpattribute defined at extensionvalidation.voidsetFlags(Set<RegexpFlag> value) Generated method - Setter ofPatternConstraint.flagsattribute defined at extensionvalidation.voidGenerated method - Setter ofPatternConstraint.regexpattribute defined at extensionvalidation.Methods inherited from class de.hybris.platform.validation.model.constraints.AttributeConstraintModel
getDescriptor, getLanguages, getQualifier, setDescriptor, setLanguages, setQualifierMethods 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:
-
REGEXP
Generated constant - Attribute key ofPatternConstraint.regexpattribute defined at extensionvalidation.- See Also:
-
FLAGS
Generated constant - Attribute key ofPatternConstraint.flagsattribute defined at extensionvalidation.- See Also:
-
-
Constructor Details
-
PatternConstraintModel
public PatternConstraintModel()Generated constructor - Default constructor for generic creation. -
PatternConstraintModel
public PatternConstraintModel(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
-
PatternConstraintModel
@Deprecated(since="4.1.1", forRemoval=true) public PatternConstraintModel(Class _annotation, Set<RegexpFlag> _flags, String _id, String _regexp) 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 typePatternConstraintat extensionvalidation_flags- initial attribute declared by typePatternConstraintat extensionvalidation_id- initial attribute declared by typeAbstractConstraintat extensionvalidation_regexp- initial attribute declared by typePatternConstraintat extensionvalidation
-
PatternConstraintModel
@Deprecated(since="4.1.1", forRemoval=true) public PatternConstraintModel(Class _annotation, Set<RegexpFlag> _flags, String _id, ItemModel _owner, String _regexp) 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 typePatternConstraintat extensionvalidation_flags- initial attribute declared by typePatternConstraintat extensionvalidation_id- initial attribute declared by typeAbstractConstraintat extensionvalidation_owner- initial attribute declared by typeItemat extensioncore_regexp- initial attribute declared by typePatternConstraintat extensionvalidation
-
-
Method Details
-
getFlags
Generated method - Getter of thePatternConstraint.flagsattribute defined at extensionvalidation. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.- Returns:
- the flags - Regular expression for constraint
-
getRegexp
Generated method - Getter of thePatternConstraint.regexpattribute defined at extensionvalidation.- Returns:
- the regexp - Regular expression for constraint
-
setFlags
Generated method - Setter ofPatternConstraint.flagsattribute defined at extensionvalidation.- Parameters:
value- the flags - Regular expression for constraint
-
setRegexp
Generated method - Setter ofPatternConstraint.regexpattribute defined at extensionvalidation.- Parameters:
value- the regexp - Regular expression for constraint
-