public class AttributeConstraintModel extends AbstractConstraintModel
Attribute constraint definition.
AbstractItemModel.NewModelContextFactory| Modifier and Type | Field and Description |
|---|---|
static String |
_TYPECODE
Generated model type code constant.
|
static String |
DESCRIPTOR
Generated constant - Attribute key of
AttributeConstraint.descriptor attribute defined at extension validation. |
static String |
LANGUAGES
Generated constant - Attribute key of
AttributeConstraint.languages attribute defined at extension validation. |
static String |
QUALIFIER
Generated constant - Attribute key of
AttributeConstraint.qualifier attribute defined at extension validation. |
ACTIVE, ANNOTATION, CONSTRAINTGROUPS, DEFAULTMESSAGE, ID, MESSAGE, NEEDRELOAD, SEVERITY, TARGET, TYPE_COMMENTITEMRELATION, COMMENTS, CREATIONTIME, ITEMTYPE, MODIFIEDTIME, OWNER, PKLANGUAGE_FALLBACK_ENABLED_SERVICE_LAYER, MODEL_CONTEXT_FACTORY| Constructor and Description |
|---|
AttributeConstraintModel()
Generated constructor - Default constructor for generic creation.
|
AttributeConstraintModel(Class _annotation,
String _id)
Deprecated.
Since 4.1.1 Please use the default constructor without parameters
|
AttributeConstraintModel(Class _annotation,
String _id,
ItemModel _owner)
Deprecated.
Since 4.1.1 Please use the default constructor without parameters
|
AttributeConstraintModel(ItemModelContext ctx)
Generated constructor - Default constructor for creation with existing context
|
| Modifier and Type | Method and Description |
|---|---|
AttributeDescriptorModel |
getDescriptor()
Generated method - Getter of the
AttributeConstraint.descriptor attribute defined at extension validation. |
Set<LanguageModel> |
getLanguages()
Generated method - Getter of the
AttributeConstraint.languages attribute defined at extension validation. |
String |
getQualifier()
Generated method - Getter of the
AttributeConstraint.qualifier attribute defined at extension validation. |
void |
setDescriptor(AttributeDescriptorModel value)
Generated method - Setter of
AttributeConstraint.descriptor attribute defined at extension validation. |
void |
setLanguages(Set<LanguageModel> value)
Generated method - Setter of
AttributeConstraint.languages attribute defined at extension validation. |
void |
setQualifier(String value)
Generated method - Setter of
AttributeConstraint.qualifier 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, 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 String _TYPECODE
public static final String QUALIFIER
AttributeConstraint.qualifier attribute defined at extension validation.public static final String LANGUAGES
AttributeConstraint.languages attribute defined at extension validation.public static final String DESCRIPTOR
AttributeConstraint.descriptor attribute defined at extension validation.public AttributeConstraintModel()
public AttributeConstraintModel(ItemModelContext ctx)
ctx - the model context to be injected, must not be null@Deprecated public AttributeConstraintModel(Class _annotation, String _id)
_annotation - initial attribute declared by type AbstractConstraint at extension validation_id - initial attribute declared by type AbstractConstraint at extension validation@Deprecated public AttributeConstraintModel(Class _annotation, String _id, ItemModel _owner)
_annotation - initial attribute declared by type AbstractConstraint at extension validation_id - initial attribute declared by type AbstractConstraint at extension validation_owner - initial attribute declared by type Item at extension core@Accessor(qualifier="descriptor", type=GETTER) public AttributeDescriptorModel getDescriptor()
AttributeConstraint.descriptor attribute defined at extension validation.@Accessor(qualifier="languages", type=GETTER) public Set<LanguageModel> getLanguages()
AttributeConstraint.languages attribute defined at extension validation.
Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.@Accessor(qualifier="qualifier", type=GETTER) public String getQualifier()
AttributeConstraint.qualifier attribute defined at extension validation.@Accessor(qualifier="descriptor", type=SETTER) public void setDescriptor(AttributeDescriptorModel value)
AttributeConstraint.descriptor attribute defined at extension validation.value - the descriptor@Accessor(qualifier="languages", type=SETTER) public void setLanguages(Set<LanguageModel> value)
AttributeConstraint.languages attribute defined at extension validation.value - the languages - Languages for which constraint will be enforcedCopyright © 2017 SAP SE. All Rights Reserved.