Class ValueConstraint

Applied Stereotypes:
XSDcomplexType

Value constraints represent a single rule to a given parameter in a parameter declaration. Note that value must match the type of the enclosing parameter declaration. A ValueConstraint for parameter declaration of type "string" must use either "equalTo" or "notEqualTo" for the rule property.

Used in:
ValueConstraintGroup
Properties
  Name Type Cardinality AppliedStereotypes Description
  rule Rule 1..1 XSDattribute Available operators for the validation of the constraint. Note that either "equalTo" or "notEqualTo" must be used in parameter declarations of type "string".
  value string 1..1 XSDattribute A constant value, parameter or parameter expression. The value must match the type of the enclosing parameter declaration.
XSD 1.3 Representation


<xsd:complexType name="ValueConstraint">
<xsd:attribute name="rule" type="Rule" use="required"/>
<xsd:attribute name="value" type="String" use="required"/>
</xsd:complexType>

Stereotype Details Information
  • Class
    • XSDcomplexType [modelGroup: "all"; mixed: "false"]
  • Property rule
    • XSDattribute
  • Property value
    • XSDattribute

To XSD