Skip to main content

ElementClasses

An ElementClass describes the role and properties of a class of elements.

  • The ElementClass can declare Attributes, properties with simple data types.
  • Between ElementClasses you can have References, which always have an owner and a target.
model/elementClasses/Script.xml
<elementClass name="Script">
<group name="org.normalizedsystems.scripts" ontology="demo"/>
<role name="element"/>
<attributes>
<attribute name="name">
<isIdentifier>true</isIdentifier>
<dataType name="Name" ontology="demo"/>
</attribute>
<attribute name="command">
<dataType name="Text" ontology="demo"/>
</attribute>
<attribute name="helpText">
<dataType name="Text" ontology="demo"/>
</attribute>
</attributes>
</elementClass>

Element Groups

Each ElementClass references an ElementGroup, which is part of the same ontology. The ElementGroup defines a package for all of its ElementClasses.