SimpleType
open class SimpleType: DataType
Represents a type definition for an underlying basic type.
-
Can this model element be removed by
DataService.refreshMetadata
. Defaults tofalse
. Set this totrue
to indicate that the application is coded to be able able to function correctly without this model element.See also
isRemoved
.Declaration
Swift
final public var canBeRemoved: Bool = false
-
Has this model element been removed by a successful call to
DataService.refreshMetadata
? If `isRemoved == true, that implies that the old metadata (before refreshMetadata was called) did include this model element, and that the new metadata (after refreshMetadata was called) does not include this model element.See also
canBeRemoved
.Declaration
Swift
final public var isRemoved: Bool = false
-
The local name of this type within its owning
DataSchema
, e.g.MyType
.Declaration
Swift
final public var localName: String = ""
-
The name of this type qualified by its owning
DataSchema
name, e.g.MySchema.MyType
.Declaration
Swift
final public var qualifiedName: String = ""
-
Type facets for this type. Can be
nil
if there are no custom facets.Declaration
Swift
final public var typeFacets: TypeFacets?
-
true
if this type was added since metadata was originally loaded.Declaration
Swift
final public var isExtension: Bool = false
-
true
if this simple type was inferred due to a missing term definition in the CSDL.Declaration
Swift
final public var isInferred: Bool = false
-
true
if this item allows Unicode content. IfisUnicode
isfalse
, then this item only allows ASCII content.Declaration
Swift
final public var isUnicode: Bool = true
-
Minimum length for
string
andbinary
values.See also
TypeFacets.ANY_LENGTH
.Declaration
Swift
final public var minLength: Int = (0 as Int)
-
Maximum length for
string
andbinary
values.See also
TypeFacets.ANY_LENGTH
.Declaration
Swift
final public var maxLength: Int = (0 as Int)
-
Precision for
decimal
andinteger
values.See also
TypeFacets.ANY_PRECISION
.Declaration
Swift
final public var precision: Int = (0 as Int)
-
Scale for
decimal
values.See also
TypeFacets.FLOATING_SCALE
,TypeFacets.VARIABLE_SCALE
.Declaration
Swift
final public var scale: Int = (0 as Int)
-
EPSG Spatial Reference System Identifier (SRID) for the associated value.
See also
TypeFacets.VARIABLE_SRID
.Declaration
Swift
final public var srid: Int = (0 as Int)
-
Default initializer.
Declaration
Swift
override public init()
-
Lookup an existing type annotation by term name.
See also
annotationMap
, for looking up annotations that might not exist.Declaration
Swift
open func annotation(withName term: String) -> Annotation
Parameters
term
The term name.
Return Value
The type annotation.
-
List of annotations for this type.
Declaration
Swift
open var annotationList: AnnotationList
-
Map of annotations for this type.
Declaration
Swift
open var annotationMap: AnnotationMap
-
The type code of the underlying type.
Declaration
Swift
override open var code: Int
-
Synonym for
baseType
.Declaration
Swift
open var derivedFrom: DataType
-
true
if this type is a derived simple, complex, entity or enum type.Declaration
Swift
override open var isDerived: Bool
-
Synonym for
qualifiedName
.Declaration
Swift
override open var name: String
-
Declaration
Swift
override open func toString() -> String
Return Value
The name of this data type.