ResolveEffectiveAttributes class

Resolves the value of every attribute in scope for one instance, its own layer included.

ResolveSchema answers "which attributes apply, and how are they defined"; this answers "what is the value, and who said so" — precedence is the instance, then the SKU it instantiates, then the SKUs above it in an assembly (nearest first, so a component can inherit what the assembly sets), then the definition's own default. ResolvedAttribute.source names the winner and inheritedFrom names the ancestor a value came from.

The model-only question — "what does this part owe its assembly" — is its own use case, ResolveSkuAttributes.

Constructors

ResolveEffectiveAttributes({required IInstanceRepository instanceRepository, required ISkuRepository skuRepository, required ISkuComponentRepository skuComponentRepository, required ResolveSchema resolveSchema})
Creates a ResolveEffectiveAttributes use case.
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

call({required String instanceId}) → TaskEither<DomainFailure, List<ResolvedAttribute>>
Executes the use case.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited