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 = ComplexType._new1_in_ComplexType("undefined", PropertyList.empty, "undefined", PropertyList.empty, PropertyList.empty, PropertyList.empty, PropertyList.empty, PropertyMap.empty)
  • The abstract base type Edm.ComplexType.

    Declaration

    Swift

    public static let abstractBase: ComplexType = ComplexType._new2_in_ComplexType("ComplexType", PropertyList.empty, "Edm.ComplexType", PropertyList.empty, PropertyList.empty, PropertyList.empty, PropertyList.empty, PropertyMap.empty, true)
  • 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
  • true if this complex type is a parent of one or more derived complex types.

    Declaration

    Swift

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

    Declaration

    Swift

    open var hasSupertype: Bool
  • Set the objectFactory for this complex type.

    Declaration

    Swift

    open func registerFactory(_ factory: ObjectFactory) -> Void

    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?
  • 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.