UiVocabularySchema class
The canonical UI Vocabulary Schema (spec Key Entities).
Configurable per mission via vocabularyNarrowing (spec FR-005). The default schema allows a small, generic component set + common style tokens; production apps override via mission-type configuration.
Constructors
Properties
-
allowedNodeTypes
→ Set<
String> -
Allowed component node types (e.g.
card,button,text,container).final -
allowedRoles
→ Set<
String> -
Allowed semantic roles (v2). Empty set means "any role string allowed".
final
-
allowedStyleTokens
→ Set<
String> -
Allowed style token values (e.g.
primary,secondary,danger).final - hashCode → int
-
The hash code for this object.
no setterinherited
- missionType → String?
-
Optional mission-type tag this schema is narrowed for (null = base).
final
- nodeCap → int
-
Maximum node count per rendered tree (FR-002 cap overflow).
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- schemaVersion → String
-
Schema version — recorded alongside each rendered tree in the mission
trace (FR-008).
final
Methods
-
capOverflowError(
UiNode tree) → ValidationError? - Cap-overflow check (FR-002 acceptance 2). Public so the render tool can re-check after narrowing changes the cap.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
validate(
UiNode tree) → ValidationResult -
Validate a tree against this schema (FR-002). Returns a
ValidationResultwith a list of every encountered error so the agent can fix them all in one retry rather than fixing one-at-a-time.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- base → const UiVocabularySchema
- Default base schema — broad enough to cover the spec's acceptance scenarios (product-offer card with a Select Offer button).