Defines a PMI datum component.
new DatumComponent(
label?):DatumComponent
Creates a datum component.
string = ‘’'`
Datum label.
DatumComponent
readonlyattributes:Set<SemanticAttribute>
label:
string= ‘’'`
Datum label.
get id():
bigint
Returns the unique identifier of the object.
bigint
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.
SemanticAttributeVisitor | SemanticComponentVisitor
Visitor to accept.
void
addAttribute(
attribute):void
Adds a semantic attribute.
Semantic attribute.
void
Use SemanticComponent.attributes and attributes.add instead.
SemanticComponent.addAttribute
hasAttributes():
boolean
Returns whether this component has attributes.
boolean
Use SemanticComponent.attributes and attributes.size > 0 instead.
SemanticComponent.hasAttributes
numberOfAttributes():
number
Returns the number of semantic attributes.
number
Use SemanticComponent.attributes and attributes.size instead.