ComplexType

open class ComplexType : StructureType

Encapsulates the metadata of an OData complex type.

  • Represents an undefined complex type.

    Declaration

    Swift

    public static let undefined: ComplexType
  • The abstract base type Edm.ComplexType.

    Declaration

    Swift

    public static let abstractBase: ComplexType
  • If hasSubtypes is true, then the list of subtypes. Otherwise nil.

    Declaration

    Swift

    final public var subtypes: ComplexTypeList?
  • Default initializer.

    Declaration

    Swift

    override public init()
  • DataType.COMPLEX_VALUE

    Declaration

    Swift

    override open var code: Int { get }
  • true if this complex type is a parent of one or more derived complex types.

    Declaration

    Swift

    override open var hasSubtypes: Bool { get }
  • true if this complex type is a subtype of a parent complex type.

    Declaration

    Swift

    override open var hasSupertype: Bool { get }
  • Set the objectFactory for this complex type.

    Declaration

    Swift

    open func registerFactory(_ factory: ObjectFactory)

    Parameters

    factory

    Custom factory to produce ComplexValue instances of this type.

  • If hasSupertype is true, then the parent complex type. Otherwise nil.

    Declaration

    Swift

    open var supertype: ComplexType? { get set }
  • Declaration

    Swift

    override open func toString() -> String

    Return Value

    The name of this data type.

  • Set the objectFactory for this complex type.

    Declaration

    Swift

    open func withFactory(_ factory: ObjectFactory) -> ComplexType

    Parameters

    factory

    Custom factory to produce ComplexValue instances of this type.

    Return Value

    This complex type.