Base class for PMI semantic components.
new SemanticComponent():
SemanticComponent
SemanticComponent
readonlyattributes:Set<SemanticAttribute>
get id():
bigint
Returns the unique identifier of the object.
bigint
accept(
visitor):void
Accepts a semantic attribute visitor or semantic component visitor.
SemanticAttributeVisitor | SemanticComponentVisitor
Visitor to accept.
void
addAttribute(
attribute):void
Adds a semantic attribute.
Semantic attribute.
void
Use SemanticComponent.attributes and attributes.add instead.
hasAttributes():
boolean
Returns whether this component has attributes.
boolean
Use SemanticComponent.attributes and attributes.size > 0 instead.
numberOfAttributes():
number
Returns the number of semantic attributes.
number
Use SemanticComponent.attributes and attributes.size instead.