complexType "uml:Constraint"
Namespace:
Content:
complex, 13 attributes, 10 elements
Defined:
globally in UML2XMI.xsd; see XML source
Includes:
definitions of 1 attribute, 2 elements
Used:
at 15 locations
Content Model Diagram
XML Representation Summary
<...
   
 = 
xsd:ID
 = 
xsd:string
 = 
xsd:string
 = 
xsd:string
 = 
xsd:IDREF
 = 
"2.0"
 = 
xsd:QName
 = 
xsd:string
 = 
("public" | "private" | "protected" | "package")
 = 
xsd:string
 = 
xsd:string
 = 
("public" | "private" | "protected" | "package")
 = 
xsd:string
    >
   
Content: 
xmi:Extension*, eAnnotations*, ownedComment*, (templateBinding | ownedTemplateSignature)*, (clientDependency | nameExpression)*, templateParameter*, (specification | constrainedElement)*
</...>
Known Direct Subtypes (2):
uml:InteractionConstraint, uml:IntervalConstraint
Known Indirect Subtypes (2):
uml:DurationConstraint, uml:TimeConstraint
All Direct / Indirect Based Elements (18):
bodyCondition, postCondition,
Known Usage Locations
Annotation
Constraint contains a ValueSpecification that specifies additional semantics for one or more elements. Certain kinds of constraints (such as an association “xor” constraint) are predefined in UML, others may be user-defined. A user-defined Constraint is described using a specified language, whose syntax and interpretation is a tool responsibility. One predefined language for writing constraints is OCL. In some situations, a programming language such as Java may be appropriate for expressing a constraint. In other situations natural language may be used. Constraint is a condition (a Boolean expression) that restricts the extension of the associated element beyond what is imposed by the other language constructs applied to that element. Constraint contains an optional name, although they are commonly unnamed.
Type Definition Detail
Type Derivation Tree
ecore:EObject (extension)
  ecore:EModelElement (extension)
      uml:Element (extension)
          uml:TemplateableElement (extension)
              uml:NamedElement (extension)
                  uml:PackageableElement (extension)
                      uml:Constraint
XML Source (w/o annotations (4); see within schema source)
<xsd:complexType name="Constraint">
<xsd:complexContent>
<xsd:extension base="uml:PackageableElement">
<xsd:choice maxOccurs="unbounded" minOccurs="0">
<xsd:element name="specification" type="uml:ValueSpecification"/>
<xsd:element name="constrainedElement" type="uml:Element"/>
</xsd:choice>
<xsd:attribute name="constrainedElement" type="xsd:string"/>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
Attribute Detail (all declarations; defined within this component only; 1/13)
constrainedElement
Type:
xsd:string, predefined
Use:
optional
ordered set of Elements referenced by this Constraint.
XML Source (w/o annotations (1); see within schema source)
<xsd:attribute name="constrainedElement" type="xsd:string"/>
Content Element Detail (all declarations; defined within this component only; 2/10)
constrainedElement
Type:
uml:Element, complex content
ordered set of Elements referenced by this Constraint.
XML Source (w/o annotations (1); see within schema source)
<xsd:element name="constrainedElement" type="uml:Element"/>

specification
Type:
uml:ValueSpecification, complex content
A condition that must be true when evaluated in order for the constraint to be satisfied. Subsets Element::ownedElement.
XML Source (w/o annotations (1); see within schema source)
<xsd:element name="specification" type="uml:ValueSpecification"/>

XML schema documentation generated with DocFlex/XML RE 1.8.5 using DocFlex/XML XSDDoc 2.5.0 template set. All content model diagrams generated by Altova XMLSpy via DocFlex/XML XMLSpy Integration.