Annotation Type AllowedValues
This annotation defines a set of values permitted to be used in the context
of the containing annotation.
-
Required Element Summary
Modifier and TypeRequired ElementDescriptionGet any allowed values for this constraint. -
Optional Element Summary
Modifier and TypeOptional ElementDescriptionboolean
Indicates if the constraint allows other values not included in the enumerated list.An optional description of the constraint.Indicates if the constraint can be extended by other constraints.An optional formal name for the constraint.An optional identifier for the constraint, which must be unique to only this constraint.The significance of a violation of this constraint.Property[]
An optional set of properties associated with these allowed values.Any remarks about the constraint, encoded as an escaped Markdown string.An optional metapath that points to the target flag or field value that the constraint applies to.
-
Element Details
-
values
Get any allowed values for this constraint.- Returns:
- an array of allowed value enumerations
-
-
-
id
An optional identifier for the constraint, which must be unique to only this constraint.- Returns:
- the identifier if provided or an empty string otherwise
- Default:
- ""
-
formalName
An optional formal name for the constraint.- Returns:
- the formal name if provided or an empty string otherwise
- Default:
- ""
-
description
An optional description of the constraint.- Returns:
- the description if provided or an empty string otherwise
- Default:
- ""
-
level
The significance of a violation of this constraint.- Returns:
- the level
- Default:
- ERROR
-
target
An optional metapath that points to the target flag or field value that the constraint applies to. If omitted the target will be ".", which means the target is the value of theBoundFlag
,BoundField
orBoundFieldValue
annotation the constraint appears on. In the prior case, this annotation may only appear on aBoundField
if the field has no flags, which results in aBoundField
annotation on a field instance with a scalar, data type value.- Returns:
- the target metapath
- Default:
- "."
-
properties
An optional set of properties associated with these allowed values.- Returns:
- the properties or an empty array with no properties
- Default:
- {}
-
allowOthers
boolean allowOthersIndicates if the constraint allows other values not included in the enumerated list.- Returns:
true
if other values are allowed orfalse
otherwise
- Default:
- false
-
extensible
Indicates if the constraint can be extended by other constraints.- Returns:
- the extension mode
- Default:
- EXTERNAL
-
remarks
Any remarks about the constraint, encoded as an escaped Markdown string.- Returns:
- an encoded markdown string or an empty string if no remarks are provided
- Default:
- ""
-