DataSchema

open class DataSchema : ObjectBase

Represents an OData data schema.

  • The namespace of this data schema.

    Declaration

    Swift

    final public var namespace: String
  • The alias of this data schema.

    Declaration

    Swift

    final public var alias: String?
  • Source line number for this schema element within its defining schema.

    Declaration

    Swift

    final public var sourceLine: Int
  • Default initializer.

    Declaration

    Swift

    override public init()
  • Lookup an existing annotation by term name, or throw an exception if the annotation is not found.

    See also

    annotations and AnnotationMap.get, for looking up annotations that might not exist.

    Declaration

    Swift

    open func annotation(withName term: String) throws -> Annotation

    Parameters

    term

    The 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 annotation terms defined by this schema.

    Declaration

    Swift

    @inline(__always)
    public final var annotationTerms: AnnotationTermMap { 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 }
  • Map of complex types defined by this schema.

    Declaration

    Swift

    @inline(__always)
    public final var complexTypes: ComplexTypeMap { get }
  • Map of data methods defined by this schema.

    Declaration

    Swift

    @inline(__always)
    public final var dataMethods: DataMethodMap { get }
  • Map of entity containers defined by this schema.

    Declaration

    Swift

    @inline(__always)
    public final var entityContainers: EntityContainerMap { get }
  • Map of entity sets defined by this schema.

    Declaration

    Swift

    @inline(__always)
    public final var entitySets: EntitySetMap { get }
  • Map of entity types defined by this schema.

    Declaration

    Swift

    @inline(__always)
    public final var entityTypes: EntityTypeMap { get }
  • Map of enum types defined by this schema.

    Declaration

    Swift

    @inline(__always)
    public final var enumTypes: EnumTypeMap { get }
  • Map of simple types defined by this schema.

    Declaration

    Swift

    @inline(__always)
    public final var simpleTypes: SimpleTypeMap { get }
  • Map of singletons defined by this schema.

    Declaration

    Swift

    @inline(__always)
    public final var singletons: EntitySetMap { get }
  • Declaration

    Swift

    override open func toString() -> String

    Return Value

    A string representation of this object.