Interface LaravelUi5\OData\Edm\Contracts\Annotation\AnnotationInterface

A single annotation applied to a model element.

An annotation binds a term to a value and applies that binding to a specific model element. The term is identified by its qualified name. An optional qualifier allows multiple annotations of the same term on the same element to coexist, disambiguated by context — e.g. a label for a "desktop" qualifier vs. a "mobile" qualifier.

The value may be absent for terms whose type is implicitly Boolean and whose presence alone carries the meaning (marker annotations).

Example — a simple string annotation:

getTerm() → "Core.Description" getQualifier() → null getValue() → ConstantAnnotationValueInterface { kind: "String", value: "The list of open orders" }

Example — a record annotation with qualifier:

getTerm() → "UI.LineItem" getQualifier() → "Expanded" getValue() → CollectionAnnotationValueInterface { items: [...] }

Methods