Previous Table of Contents Next


9.3.2 Content


   This represents the content model of an ElementType. In XML, each document contains one or more elements, the boundaries of which are normally delimited by start-tags and end-tags. The body between the start-tag and end-tag is called the element’s content. An element type declaration constrains the element’s content.

   Superclasses

   ModelElement

   Attributes

   type

Identifies the type of the content model.

type:

multiplicity:

ContentType (xml_empty | xml_any | xml_mixed | xml_element)
exactly one

   occurrence

Identifies the allowed occurrence of the content constituents.

type:

multiplicity:

OccurrenceType (xml_one | xml_zeroOrOne | xml_zeroOrMore, | xml_oneOrMore)
exactly one

   References

   elementType

Identifies the ElementType that owns the Content.

class:

defined by:

multiplicity:

inverse:

ElementType
ElementTypeContent::elementType
zero or more
ElementType::content

   ownedElementType

Identifies the ElementTypeReferences owned by the Content.

class:

defined by:

multiplicity:

inverse:

ElementTypeReference
ContentElementTypeReference::ownedElementType
zero or more
ElementTypeReference::ownerContent