Skip to main content

Classifier

A decoratable element that defines the properties exhibited by its instances — a class or a relation.

Classifier is abstract: it is never serialized on its own and has no type of its own. Every classifier is one of its subtypes:

  • a Class — the properties of a set of individualized entities; or
  • a Relation — the properties of a set of relations, itself always a binary or n-ary relation.
PropertyTypeDescription
isAbstractboolean or nullWhether the classifier can have direct instances. An abstract classifier is instantiated only through its non-abstract specializations.
propertiesid[]The properties contained in the classifier, referenced by id.

Classifier is a Decoratable, so it also carries stereotype and isDerived, along with the properties common to all model elements.

The properties array holds the classifier's attributes when the classifier is a class, and its relation ends when the classifier is a relation. Each entry is the id of a Property element defined elsewhere in the document. For relations this array must be ordered, since the position of each end (source, target, …) is significant.