Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

EntityClass

The EntityClass class represents an entity class. EntityClass is a subclass of ImmutableEntityClass and supports full mutation.

Instances obtained from domain-level paths — domain.getEntityClassByName(name), domain.entityClasses, document.defaultEntityClass — are mutable EntityClass objects. Instances obtained via entity.entityClass are ImmutableEntityClass and do not allow mutation. See ImmutableEntityClass for details.

Fields

FieldTypeDescription
namestringThe class name.
uuidstringAPI 1.18
Read-only. A unique identifier for this entity class.
builtInbooleanRead-only. True if the class is built-in and cannot be modified.
colorColorThe background color behind the class title.
nameColorColorRead-only. The color the class name is rendered in on an entity shape (auto-computed for contrast).
weightnumberThe default weight for new edges created with entities of this class, between -1.0 and 1.0.
symbolSymbolThe symbol inherited by new entities of this class.
milestonebooleanTrue if entities of this class are zero-effort milestone tasks.
resourceAssignmentResource Assignment TypeThe default resource assignment type for entities of this class.
showNamebooleanTrue if the class name is shown on entity shapes.
domainDomainRead-only. The parent domain of this class.
filterUserDefinedAttributesbooleanAPI 1.18
True if UDA visibility on entities of this class is restricted to the keys in userDefinedAttributesFilterList. When False, all UDAs are shown. The filter list and this flag are independent — set the list first, then enable filtering.
userDefinedAttributesFilterListlist of stringAPI 1.18
The UDA key names shown on entities of this class when filterUserDefinedAttributes is True. Set to None to clear. Empty if no keys have been set.

Methods

duplicate( )

Creates and returns a unique duplicate of this class with the name modified to include "copy," as an EntityClass.