-
Represents an undefined entity type.
Declaration
Swift
public static let undefined: EntityType = EntityType._new1_in_EntityType("undefined", PropertyList.empty, PropertyList.empty, "undefined", PropertyList.empty, PropertyList.empty, PropertyList.empty, PropertyList.empty, PropertyMap.empty, CustomPathList.empty)
-
The abstract base type Edm.EntityType.
Declaration
Swift
public static let abstractBase: EntityType = EntityType._new2_in_EntityType("EntityType", PropertyList.empty, PropertyList.empty, "Edm.EntityType", PropertyList.empty, PropertyList.empty, PropertyList.empty, PropertyList.empty, PropertyMap.empty, CustomPathList.empty, true)
-
If
hasSubtypes
istrue
, then the list of subtypes. Otherwisenil
.Declaration
Swift
final public var subtypes: EntityTypeList?
-
true
if this entity type is a media resource (has stream content).Declaration
Swift
final public var isMedia: Bool = false
-
List of key properties for this type.
Declaration
Swift
final public var keyProperties: PropertyList!
-
Pseudo-property for media content (media entities only).
See also
isMedia
.Declaration
Swift
final public var mediaProperty: StreamProperty!
-
Default initializer.
Declaration
Swift
override public init()
-
DataType.ENTITY_VALUE
Declaration
Swift
override open var code: Int
-
true
if this entity type is a parent of one or more derived entity types.Declaration
Swift
open var hasSubtypes: Bool
-
true
if this entity type is a subtype of a parent entity type.Declaration
Swift
open var hasSupertype: Bool
-
Lookup a key property by name.
See also
keyProperties
.Declaration
Swift
open func keyProperty(name: String) -> Property
Parameters
name
Name of the property.
Return Value
The property metadata. A DataException is thrown if the property does not exist in this type.
-
Set the
objectFactory
for this entity type.Declaration
Swift
open func registerFactory(_ factory: ObjectFactory) -> Void
Parameters
factory
Custom factory to produce
EntityValue
instances of this type. -
If
hasSupertype
istrue
, then the parent entity type. Otherwisenil
.Declaration
Swift
open var supertype: EntityType?
-
Declaration
Swift
override open func toString() -> String
Return Value
The name of this data type.
-
Set the
objectFactory
for this entity type.Declaration
Swift
open func withFactory(_ factory: ObjectFactory) -> EntityType
Parameters
factory
Custom factory to produce
EntityValue
instances of this type.Return Value
This entity type.