Class: Xmi::Uml::ValueSpecification
- Inherits:
-
Base
- Object
- Lutaml::Model::Serializable
- Base
- Xmi::Uml::ValueSpecification
- Defined in:
- lib/xmi/uml/value_specification.rb
Overview
Abstract UML ValueSpecification. UML 2.5 §9.8 — the abstract parent of OpaqueExpression, LiteralString, LiteralInteger, LiteralBoolean, LiteralUnlimitedNatural, LiteralNull, etc.
Used as the type of Slot#value and other polymorphic value
attributes so the parser can dispatch on xmi:type to the
right concrete subclass.
Concrete subclasses live in their own files (literal_string.rb, opaque_expression.rb, etc.). Add new literals as a new file plus an entry in POLYMORPHIC_MAP below — OCP-friendly, no edits to callers.
Direct Known Subclasses
DefaultValue, LiteralBoolean, LiteralInteger, LiteralNull, LiteralString, LiteralUnlimitedNatural, OpaqueExpression