Hide menu
Loading...
Searching...
No Matches
SemanticComponent

Base class for PMI semantic components.

Extends

Extended by

Constructors

Constructor

‍new SemanticComponent(): SemanticComponent

Returns

SemanticComponent

Inherited from

BaseObject.constructor

Properties

attributes

‍readonly attributes: Set<SemanticAttribute>

Accessors

id

Get Signature

‍get id(): bigint

Returns the unique identifier of the object.

Returns

bigint

Inherited from

BaseObject.id

Methods

accept()

‍accept(visitor): void

Accepts a semantic attribute visitor or semantic component visitor.

Parameters

visitor

SemanticAttributeVisitor | SemanticComponentVisitor

Visitor to accept.

Returns

void


addAttribute()

‍addAttribute(attribute): void

Adds a semantic attribute.

Parameters

attribute

SemanticAttribute

Semantic attribute.

Returns

void

Deprecated

Use SemanticComponent.attributes and attributes.add instead.


hasAttributes()

‍hasAttributes(): boolean

Returns whether this component has attributes.

Returns

boolean

Deprecated

Use SemanticComponent.attributes and attributes.size > 0 instead.


numberOfAttributes()

‍numberOfAttributes(): number

Returns the number of semantic attributes.

Returns

number

Deprecated

Use SemanticComponent.attributes and attributes.size instead.