Annotation
open class Annotation : ObjectBase, @unchecked Sendable
Represents an OData annotation.
See also
AnnotationTerm.
-
Annotation qualifier.
Declaration
Swift
final public var qualifier: String? -
Is
explicitValuean explicitnilvalue?Declaration
Swift
final public var explicitNull: Bool -
Property name if this annotation was applied to a property.
Declaration
Swift
final public var propertyName: String? -
Source line number for this schema element within its defining schema.
Declaration
Swift
final public var sourceLine: Int -
Source file name for this schema element within its defining schema.
Declaration
Swift
final public var sourceFile: String? -
Default initializer.
Declaration
Swift
override public init() -
Lookup an existing annotation by term name, or throw an exception if the annotation is not found.
Declaration
Swift
open func annotation(withName term: String) -> AnnotationParameters
termThe term name.
Return Value
The annotation.
-
Obsolete. Use
annotations.Declaration
Swift
open var annotationList: AnnotationList { get } -
Obsolete. Use
annotations.Declaration
Swift
open var annotationMap: AnnotationMap { get } -
Map of annotations for this model element. For annotations without qualifiers, the entry key is the annotation term name. For annotations with qualifiers, the entry key is the annotation term name, then “#”, then the annotation qualifier.
Declaration
Swift
open var annotations: AnnotationMap { get } -
Declaration
Swift
open class func equal(a: Annotation?, b: Annotation?) -> BoolParameters
aFirst annotation.
bSecond annotation.
Return Value
trueif two annotations have equal key-values. -
Annotation term.
Declaration
Swift
public final var term: AnnotationTerm { get set } -
Declaration
Swift
override open func toString() -> StringReturn Value
A string representation of this object.
-
Annotation value. Will return
term.defaultValueifexplicitValueisnilandexplicitNullisfalse. Otherwise returnsexplicitValue.Declaration
Swift
open var value: DataValue? { get } -
Declaration
Swift
open func valueIsTrue() -> BoolReturn Value
trueifvalueistrue.