Hide menu
Loading...
Searching...
No Matches
DatumComponent

Defines a PMI datum component.

Extends

Constructors

Constructor

‍new DatumComponent(label?): DatumComponent

Creates a datum component.

Parameters

label?

string = ‘’'`

Datum label.

Returns

DatumComponent

Overrides

SemanticComponent.constructor

Properties

attributes

‍readonly attributes: Set<SemanticAttribute>

Inherited from

SemanticComponent.attributes


label

‍label: string = ‘’'`

Datum label.

Accessors

id

Get Signature

‍get id(): bigint

Returns the unique identifier of the object.

Returns

bigint

Inherited from

SemanticComponent.id

Methods

accept()

‍accept(visitor): void

Accepts a semantic attribute visitor or semantic component visitor.

If the visitor is a SemanticComponentVisitor, it will invoke the SemanticComponentVisitor.visitDatumComponent method. Else if the visitor is a SemanticAttributeVisitor, it will invoke the accept method of each attribute.

Parameters

visitor

SemanticAttributeVisitor | SemanticComponentVisitor

Visitor to accept.

Returns

void

Overrides

SemanticComponent.accept


addAttribute()

‍addAttribute(attribute): void

Adds a semantic attribute.

Parameters

attribute

SemanticAttribute

Semantic attribute.

Returns

void

Deprecated

Use SemanticComponent.attributes and attributes.add instead.

Inherited from

SemanticComponent.addAttribute


hasAttributes()

‍hasAttributes(): boolean

Returns whether this component has attributes.

Returns

boolean

Deprecated

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

Inherited from

SemanticComponent.hasAttributes


numberOfAttributes()

‍numberOfAttributes(): number

Returns the number of semantic attributes.

Returns

number

Deprecated

Use SemanticComponent.attributes and attributes.size instead.

Inherited from

SemanticComponent.numberOfAttributes