ConstraintRepr

Top  Previous  Next

Description

Represents a single constraint in a schema.

 

XML Representation

<?xml version="1.0"?>

<Constraint 

  Address="%constraint resource uri%" 

  ConstraintType="%constraint type identifier%">

  <TopicTypeSi>%si%</TopicTypeSi>

  <OtherTopicTypeSi>%si%</OtherTopicTypeSi>

  <OccurrenceTypeSi>%si%</OccurrenceTypeSi>

  <NameTypeSi>%si%</NameTypeSi>

  <RoleTypeSi>%si%</RoleTypeSi>

  <OtherRoleTypeSi>%si%</OtherRoleTypeSi>

  <AssociationTypeSi>%si%</AssociationTypeSi>

  <StatementTypeSi>%si%</StatementTypeSi>

  <ScopeTopicSi>%si%</ScopeTopicSi>

  <ScopeTypeSi>%si%</ScopeTypeSi>

  <CardMin>%integer%</CardMin>

  <CardMax>%integer%</CardMax>

  <RegExp>%regular expression string%</RegExp>

  <DataTypeUri>%data type identifier%</DataTypeUri>

</Constraint>

 

JSON Representation

 

"Address":"%constraint resource uri%", 

"ConstraintType":"%constraint type identifier%", 

"TopicTypeSi":"%si%", 

"OtherTopicTypeSi":"%si%", 

"OccurrenceTypeSi":"%si%", 

"NameTypeSi":"%si%", 

"RoleTypeSi":"%si%", 

"OtherRoleTypeSi":"%si%", 

"AssociationTypeSi":"%si%", 

"StatementTypeSi":"%si%", 

"ScopeTopicSi":"%si%", 

"ScopeTypeSi":"%si%", 

"CardMin":%integer%, 

"CardMax":%integer%, 

"RegExp":"%regular expression string%", 

"DataTypeUri":"%data type identifier%", 

"Properties": array of ConstraintPropertyRepr

 

 

Notes

The value for "%constraint type identifier%" must be one of the constraint subject identifiers defined by the TMCL standard. For a complete list of these identifiers please refer to the topic Constraint Type Identifiers.
An unbounded maximum cardinality can be specified by using the value Int32.MaxValue.

 

See Also