Hide menu
Loading...
Searching...
No Matches
PMIElement

Defines a PMI element.

Extends

Constructors

Constructor

‍new PMIElement(): Element

Creates an empty PMI element.

Returns

Element

Overrides

BaseObject.constructor

Constructor

‍new PMIElement(representation): Element

Creates a PMI element from a graphical representation.

Parameters

representation

GraphicalRepresentation

Graphical representation.

Returns

Element

Overrides

BaseObject.constructor

Constructor

‍new PMIElement(type): Element

Creates a PMI element of the specified type.

Parameters

type

PMIElementType

Element type.

Returns

Element

Overrides

BaseObject.constructor

Constructor

‍new PMIElement(type, name): Element

Creates a named PMI element of the specified type.

Parameters

type

PMIElementType

Element type.

name

string

Element name.

Returns

Element

Overrides

BaseObject.constructor

Properties

graphicalRepresentation

‍graphicalRepresentation: GraphicalRepresentation | null = null


semanticRepresentation

‍semanticRepresentation: SemanticRepresentation | null = null


type

‍type: PMIElementType = ElementType.UNDEFINED

Accessors

id

Get Signature

‍get id(): bigint

Returns the unique identifier of the object.

Returns

bigint

Inherited from

BaseObject.id


name

Get Signature

‍get name(): string | null

Returns the name of the element.

Returns

string | null

Set Signature

‍set name(name): void

Sets the name of the element.

Parameters

name

string | null

Name to assign to the element.

Returns

void

Methods

isEmpty()

‍isEmpty(): boolean

Returns whether this PMI element has no assigned data.

Returns

boolean