Property
open class Property : PropertyPath, @unchecked Sendable
Encapsulates the metadata of an OData structural or navigation property. Used for properties of complex and entity types.
-
Related entities will be deleted if the source entity is deleted.
See also
onDeleteAction.Declaration
Swift
public static let onDeleteCascade: Int -
A delete request on a source entity with related entities will fail.
Declaration
Swift
public static let onDeleteRestrict: Int -
All properties of related entities that are tied to properties of the source entity via a referential constraint and that do not participate in other referential constraints will be set to their default value.
Declaration
Swift
public static let onDeleteSetDefault: Int -
All properties of related entities that are tied to properties of the source entity via a referential constraint and that do not participate in other referential constraints will be set to
nil.Declaration
Swift
public static let onDeleteSetNull: Int -
There are no foreign keys for this navigation property.
See also
hasForeignKeys.Declaration
Swift
public static let hasNoForeignKeys: Int -
Foreign keys for this navigation property exist on the source side of the relationship.
See also
hasForeignKeys.Declaration
Swift
public static let hasForeignKeysInSource: Int -
Foreign keys for this navigation property exist on the target side of the relationship.
See also
hasForeignKeys.Declaration
Swift
public static let hasForeignKeysInTarget: Int -
Can this model element be removed by
DataService.refreshMetadata. Defaults tofalse. Set this totrueto 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 -
Has this model element been removed by a successful call to
DataService.refreshMetadata? IfisRemoved== 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 -
When this property is persisted, and it has complex type, can it be flattened into separate columns? Defaults to
true.Declaration
Swift
final public var allowsFlattening: Bool -
A database-level column default for this property.
Declaration
Swift
final public var columnDefault: String? -
A value for this property can be provided by the client on insert. If no value is provided by the client, a default value is generated by the database.
Declaration
Swift
final public var hasColumnDefault: Bool -
If
isKeyistrueandisForeignKeyisfalse, then isGeneratedKey defaults totrue. Set to false to disable backend key generation for this property.Declaration
Swift
final public var isGeneratedKey: Bool -
Zero-based index for this property within its parent type definition.
Declaration
Swift
final public var id: Int -
True if the property value is text which can be pretty printed in CSDL documents (preserving relative indentation of lines but shifted for context).
Declaration
Swift
final public var prettyText: Bool -
Name of type that owns this property.
Declaration
Swift
final public var owningType: String -
Source line number for this schema element within its defining schema.
Declaration
Swift
final public var sourceLine: Int -
Path for customized property-to-element mapping.
Declaration
Swift
final public var customPath: CustomPath? -
Database column name for this property.
Declaration
Swift
final public var column: String? -
Database column type for this property.
Declaration
Swift
final public var columnType: String? -
trueif this property represents a key path, i.e. the property value is obtained by following a path rather than being directly contained in the associated entity instance.Declaration
Swift
final public var hasKeyPath: Bool -
trueif this property is the primary key, or part of a composite primary key.Declaration
Swift
final public var isKey: Bool -
trueif this property is a foreign key, or part of a composite foreign key.Declaration
Swift
final public var isForeignKey: Bool -
trueif this property was added since metadata was originally loaded.Declaration
Swift
final public var isExtension: Bool -
trueif this property is used for optimistic concurrency control (part of entity tag). For OData V3, this relates to a ConcurrencyMode of “Fixed”. For OData V4, this relates to the use of Org.OData.Core.V1.OptimisticConcurrency in one or more entity sets using the entity type containing this property.Declaration
Swift
final public var isOptimistic: Bool -
trueif this item allows Unicode content. IfisUnicodeisfalse, then this item only allows ASCII content.Declaration
Swift
final public var isUnicode: Bool -
Minimum length for
stringandbinaryvalues.See also
TypeFacets.ANY_LENGTH.Declaration
Swift
final public var minLength: Int -
Maximum length for
stringandbinaryvalues.See also
TypeFacets.ANY_LENGTH.Declaration
Swift
final public var maxLength: Int -
Precision for
decimalandintegervalues.See also
TypeFacets.ANY_PRECISION.Declaration
Swift
final public var precision: Int -
Scale for
decimalvalues.See also
TypeFacets.FLOATING_SCALE,TypeFacets.VARIABLE_SCALE.Declaration
Swift
final public var scale: Int -
EPSG Spatial Reference System Identifier (SRID) for the associated value.
See also
TypeFacets.VARIABLE_SRID.Declaration
Swift
final public var srid: Int -
Default value for this item. May be
nil.Declaration
Swift
final public var defaultValue: DataValue? -
trueif this item is nullable.Declaration
Swift
final public var isOptional: Bool -
Was this property synthesized, e.g. to hold
referentialConstraintsfor a unidirectional relationship?Declaration
Swift
final public var isSynthesized: Bool -
Default initializer.
Declaration
Swift
override public init() -
Lookup an existing annotation by term name, or throw an exception if the annotation is not found.
Declaration
Swift
open func annotation(withName term: String) -> AnnotationParameters
termThe 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 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 } -
See also
DataPath.atIndex.Declaration
Swift
open func atIndex(_ itemIndex: Int) -> DataPathParameters
itemIndexItem inedx.
Return Value
A new data path from this property to an item at the specified index.
-
Get the value of this property from a structure.
Throws
UndefinedExceptionif the property value was not previously set,CastExceptionif the value does not have the expected type for this property.Declaration
Swift
open func basicList(from source: StructureBase) -> DataValueListParameters
sourceSource structure.
Return Value
Property value.
-
Get the value of this property from a structure.
Throws
UndefinedExceptionif the property value was not previously set,CastExceptionif the value does not have the expected type for this property.Declaration
Swift
open func binaryValue(from source: StructureBase) -> DataParameters
sourceSource structure.
Return Value
Property value.
-
Get the value of this property from a structure.
Throws
UndefinedExceptionif the property value was not previously set,CastExceptionif the value does not have the expected type for this property.Declaration
Swift
open func booleanValue(from source: StructureBase) -> BoolParameters
sourceSource structure.
Return Value
Property value.
-
Get the value of this property from a structure.
Throws
UndefinedExceptionif the property value was not previously set,CastExceptionif the value does not have the expected type for this property.Declaration
Swift
open func byteValue(from source: StructureBase) -> IntParameters
sourceSource structure.
Return Value
Property value.
-
Get the value of this property from a structure.
Throws
UndefinedExceptionif the property value was not previously set,CastExceptionif the value does not have the expected type for this property.Declaration
Swift
open func complexList(from source: StructureBase) -> ComplexValueListParameters
sourceSource structure.
Return Value
Property value.
-
If this property has a complex type, then return it. Otherwise panic.
See also
DataType.isComplex.Declaration
Swift
open var complexType: ComplexType { get } -
Get the value of this property from a structure.
Throws
UndefinedExceptionif the property value was not previously set,CastExceptionif the value does not have the expected type for this property.Declaration
Swift
open func complexValue(from source: StructureBase) -> ComplexValueParameters
sourceSource structure.
Return Value
Property value.
-
If this property is a navigation property, then does it contain its target?
Declaration
Swift
open var containsTarget: Bool { get set } -
Declaration
Swift
override open func copyMutable() -> DataValueReturn Value
selfproperty object without copying (DataValue.copyMutabledoes not need to copy metadata objects). -
Get the value of this property from a structure.
Throws
UndefinedExceptionif the property value was not previously set.Declaration
Swift
open func dataValue(from source: StructureBase) -> DataValue?Parameters
sourceSource structure.
Return Value
Property value.
-
Get the value of this property from a structure.
Throws
UndefinedExceptionif the property value was not previously set,CastExceptionif the value does not have the expected type for this property.Declaration
Swift
open func decimalValue(from source: StructureBase) -> BigDecimalParameters
sourceSource structure.
Return Value
Property value.
-
Declaration
Swift
open func dotString() -> StringReturn Value
The name of this property, with dot-separated path segments if
hasKeyPathis true. -
Get the value of this property from a structure.
Throws
UndefinedExceptionif the property value was not previously set,CastExceptionif the value does not have the expected type for this property.Declaration
Swift
open func doubleValue(from source: StructureBase) -> DoubleParameters
sourceSource structure.
Return Value
Property value.
-
Percent-encoded
name.Declaration
Swift
open var encodedName: String { get } -
Get the value of this property from a structure.
Throws
UndefinedExceptionif the property value was not previously set,CastExceptionif the value does not have the expected type for this property.Declaration
Swift
open func entityList(from source: StructureBase) -> EntityValueListParameters
sourceSource structure.
Return Value
Property value.
-
If this property has an entity type, then return it. Otherwise panic.
See also
DataType.isEntity.Declaration
Swift
open var entityType: EntityType { get } -
Get the value of this property from a structure.
Throws
UndefinedExceptionif the property value was not previously set,CastExceptionif the value does not have the expected type for this property.Declaration
Swift
open func entityValue(from source: StructureBase) -> EntityValueParameters
sourceSource structure.
Return Value
Property value.
-
If this property has an enum type, then return it. Otherwise panic.
See also
DataType.isEnum.Declaration
Swift
open var enumType: EnumType { get } -
Get the value of this property from a structure.
Throws
UndefinedExceptionif the property value was not previously set,CastExceptionif the value does not have the expected type for this property.Declaration
Swift
open func enumValue(from source: StructureBase) -> EnumValueParameters
sourceSource structure.
Return Value
Property value.
-
Get the value of this property from a structure.
Throws
UndefinedExceptionif the property value was not previously set,CastExceptionif the value does not have the expected type for this property.Declaration
Swift
open func floatValue(from source: StructureBase) -> FloatParameters
sourceSource structure.
Return Value
Property value.
-
Get the value of this property from a structure.
Throws
UndefinedExceptionif the property value was not previously set,CastExceptionif the value does not have the expected type for this property.Declaration
Swift
open func guidValue(from source: StructureBase) -> GuidValueParameters
sourceSource structure.
Return Value
Property value.
-
If this property is a navigation property, then where are foreign keys found.
See also
constants.Declaration
Swift
open var hasForeignKeys: Int { get set } -
Get the value of this property from a structure.
Throws
UndefinedExceptionif the property value was not previously set,CastExceptionif the value does not have the expected type for this property.Declaration
Swift
open func intValue(from source: StructureBase) -> IntParameters
sourceSource structure.
Return Value
Property value.
-
Get the value of this property from a structure.
Throws
UndefinedExceptionif the property value was not previously set,CastExceptionif the value does not have the expected type for this property.Declaration
Swift
open func integerValue(from source: StructureBase) -> BigIntegerParameters
sourceSource structure.
Return Value
Property value.
-
trueif this property has a binary type.Declaration
Swift
open var isBinary: Bool { get } -
trueif this is a collection-typed property. Equivalent totype.isList.Declaration
Swift
open var isCollection: Bool { get } -
trueif this is a property with complex type. Equivalent totype.isComplex.Declaration
Swift
open var isComplex: Bool { get } -
trueif this is a list-typed property with complex item type. Equivalent totype.isComplexList.Declaration
Swift
open var isComplexList: Bool { get } -
trueif this is a property with entity type. Equivalent totype.isEntity.Declaration
Swift
open var isEntity: Bool { get } -
trueif this is a list-typed property with entity item type. Equivalent totype.isEntityList.Declaration
Swift
open var isEntityList: Bool { get } -
trueif this property is immutable (non-updatable after insert).Declaration
Swift
open var isImmutable: Bool { get set } -
trueif this is a navigation property.Declaration
Swift
open var isNavigation: Bool { get } -
trueif this property is persistent (stored in the local database when offline).Declaration
Swift
open var isPersistent: Bool { get } -
trueif this property has a stream type.Declaration
Swift
open var isStream: Bool { get } -
trueif this is a structural property.Declaration
Swift
open var isStructural: Bool { get } -
trueif this is a property with structure type. Equivalent totype.isStructure.Declaration
Swift
open var isStructure: Bool { get } -
trueif this is a list-typed property with structure item type. Equivalent totype.isStructureList.Declaration
Swift
open var isStructureList: Bool { get } -
If this property is a list with complex item type, then return it. Otherwise panic.
See also
DataType.isComplexList.Declaration
Swift
open var itemComplexType: ComplexType { get } -
If this property is a list with entity item type, then return it. Otherwise panic.
See also
DataType.isEntityList.Declaration
Swift
open var itemEntityType: EntityType { get } -
If this property is a list with structure item type, then return it. Otherwise panic.
See also
DataType.isStructureList.Declaration
Swift
open var itemStructureType: StructureType { get } -
If this property has a list type, then return it. Otherwise panic.
See also
DataType.isList.Declaration
Swift
open var itemType: DataType { get } -
Custom JSON field for request/response payload (e.g. for OpenAPI interoperability), otherwise
name.Declaration
Swift
@inline(__always) public final var jsonField: String { get set } -
If
hasKeyPathis true, then the key path. Otherwise unused.Declaration
Swift
public final var keyPath: DataPath { get set } -
Label for this property. Defaults to
name, but can be modified, e.g. during UI initialization.Declaration
Swift
open var label: String { get set } -
Get the value of this property from a structure.
Throws
UndefinedExceptionif the property value was not previously set,CastExceptionif the value does not have the expected type for this property.Declaration
Swift
open func longValue(from source: StructureBase) -> Int64Parameters
sourceSource structure.
Return Value
Property value.
-
Name of the property.
Declaration
Swift
@inline(__always) public final var name: String { get set } -
If this property is a navigation property, then the action upon deletion of the source entity. Zero indicates an undefined action.
See also
ON_DELETE_*constants.Declaration
Swift
open var onDeleteAction: Int { get set } -
Get the value of this property from a structure.
Throws
UndefinedExceptionif the property value was not previously set,CastExceptionif the value does not have the expected type for this property.Declaration
Swift
open func optionalBinary(from source: StructureBase) -> Data?Parameters
sourceSource structure.
Return Value
Property value.
-
Get the value of this property from a structure.
Throws
UndefinedExceptionif the property value was not previously set,CastExceptionif the value does not have the expected type for this property.Declaration
Swift
open func optionalBoolean(from source: StructureBase) -> Bool?Parameters
sourceSource structure.
Return Value
Property value.
-
Get the value of this property from a structure.
Throws
UndefinedExceptionif the property value was not previously set,CastExceptionif the value does not have the expected type for this property.Declaration
Swift
open func optionalByte(from source: StructureBase) -> Int?Parameters
sourceSource structure.
Return Value
Property value.
-
Get the value of this property from a structure.
Throws
UndefinedExceptionif the property value was not previously set,CastExceptionif the value does not have the expected type for this property.Declaration
Swift
open func optionalComplex(from source: StructureBase) -> ComplexValue?Parameters
sourceSource structure.
Return Value
Property value.
-
Get the value of this property from a structure.
Throws
UndefinedExceptionif the property value was not previously set,CastExceptionif the value does not have the expected type for this property.Declaration
Swift
open func optionalDecimal(from source: StructureBase) -> BigDecimal?Parameters
sourceSource structure.
Return Value
Property value.
-
Get the value of this property from a structure.
Throws
UndefinedExceptionif the property value was not previously set,CastExceptionif the value does not have the expected type for this property.Declaration
Swift
open func optionalDouble(from source: StructureBase) -> Double?Parameters
sourceSource structure.
Return Value
Property value.
-
Get the value of this property from a structure.
Throws
UndefinedExceptionif the property value was not previously set,CastExceptionif the value does not have the expected type for this property.Declaration
Swift
open func optionalEntity(from source: StructureBase) -> EntityValue?Parameters
sourceSource structure.
Return Value
Property value.
-
Get the value of this property from a structure.
Throws
UndefinedExceptionif the property value was not previously set,CastExceptionif the value does not have the expected type for this property.Declaration
Swift
open func optionalEnum(from source: StructureBase) -> EnumValue?Parameters
sourceSource structure.
Return Value
Property value.
-
Get the value of this property from a structure.
Throws
UndefinedExceptionif the property value was not previously set,CastExceptionif the value does not have the expected type for this property.Declaration
Swift
open func optionalFloat(from source: StructureBase) -> Float?Parameters
sourceSource structure.
Return Value
Property value.
-
Get the value of this property from a structure.
Throws
UndefinedExceptionif the property value was not previously set,CastExceptionif the value does not have the expected type for this property.Declaration
Swift
open func optionalGuid(from source: StructureBase) -> GuidValue?Parameters
sourceSource structure.
Return Value
Property value.
-
Get the value of this property from a structure.
Throws
UndefinedExceptionif the property value was not previously set,CastExceptionif the value does not have the expected type for this property.Declaration
Swift
open func optionalInt(from source: StructureBase) -> Int?Parameters
sourceSource structure.
Return Value
Property value.
-
Get the value of this property from a structure.
Throws
UndefinedExceptionif the property value was not previously set,CastExceptionif the value does not have the expected type for this property.Declaration
Swift
open func optionalInteger(from source: StructureBase) -> BigInteger?Parameters
sourceSource structure.
Return Value
Property value.
-
Get the value of this property from a structure.
Throws
UndefinedExceptionif the property value was not previously set,CastExceptionif the value does not have the expected type for this property.Declaration
Swift
open func optionalLong(from source: StructureBase) -> Int64?Parameters
sourceSource structure.
Return Value
Property value.
-
Get the value of this property from a structure.
Throws
UndefinedExceptionif the property value was not previously set,CastExceptionif the value does not have the expected type for this property.Declaration
Swift
open func optionalShort(from source: StructureBase) -> Int?Parameters
sourceSource structure.
Return Value
Property value.
-
Get the value of this property from a structure.
Throws
UndefinedExceptionif the property value was not previously set,CastExceptionif the value does not have the expected type for this property.Declaration
Swift
open func optionalString(from source: StructureBase) -> String?Parameters
sourceSource structure.
Return Value
Property value.
-
Get the value of this property from a structure.
Throws
UndefinedExceptionif the property value was not previously set,CastExceptionif the value does not have the expected type for this property.Declaration
Swift
open func optionalUnsignedByte(from source: StructureBase) -> Int?Parameters
sourceSource structure.
Return Value
Property value.
-
If this property is a navigation property with a defined partner property, then the path of the partner.
Declaration
Swift
open var partnerPath: String? { get set } -
See also
DataPath.path.Declaration
Swift
open func path(_ child: Property) -> DataPathParameters
childChild property.
Return Value
A new data path from this property to a
childproperty. -
Owning type name, forward slash, then property name, e.g. “MySchema.MyEntityType/MyPropertyName”.
Declaration
Swift
open var qualifiedName: String { get } -
If this property is a navigation property with referential constraints, then a map of constraints (from property name in the dependent entity to property name in the principal entity).
Declaration
Swift
open var referentialConstraints: StringMap { get set } -
Returns
complexTypeoritemComplexType, if one of them is applicable to this property. Otherwise panic.Declaration
Swift
open var relatedComplexType: ComplexType { get } -
Returns
entityTypeoritemEntityType, if one of them is applicable to this property. Otherwise panic.Declaration
Swift
open var relatedEntityType: EntityType { get } -
Returns
relatedComplexTypeorrelatedEntityType, if one of them is applicable to this property. Otherwise panic.Declaration
Swift
open var relatedStructureType: StructureType { get } -
Set the value of this property in a structure.
Throws
CastExceptionif the value does not have the expected type for this property.Declaration
Swift
open func setBasicList(in target: StructureBase, to value: DataValueList)Parameters
targetTarget structure.
valueProperty value.
-
Set the value of this property in a structure.
Throws
CastExceptionif the value does not have the expected type for this property.Declaration
Swift
open func setBinaryValue(in target: StructureBase, to value: Data)Parameters
targetTarget structure.
valueProperty value.
-
Set the value of this property in a structure.
Throws
CastExceptionif the value does not have the expected type for this property.Declaration
Swift
open func setBinaryValue(in target: StructureBase, to value: Data?)Parameters
targetTarget structure.
valueProperty value.
-
Set the value of this property in a structure.
Throws
CastExceptionif the value does not have the expected type for this property.Declaration
Swift
open func setBooleanValue(in target: StructureBase, to value: Bool)Parameters
targetTarget structure.
valueProperty value.
-
Set the value of this property in a structure.
Throws
CastExceptionif the value does not have the expected type for this property.Declaration
Swift
open func setBooleanValue(in target: StructureBase, to value: Bool?)Parameters
targetTarget structure.
valueProperty value.
-
Set the value of this property in a structure.
Throws
CastExceptionif the value does not have the expected type for this property.Declaration
Swift
open func setByteValue(in target: StructureBase, to value: Int)Parameters
targetTarget structure.
valueProperty value.
-
Set the value of this property in a structure.
Throws
CastExceptionif the value does not have the expected type for this property.Declaration
Swift
open func setByteValue(in target: StructureBase, to value: Int?)Parameters
targetTarget structure.
valueProperty value.
-
Set the value of this property in a structure.
Throws
CastExceptionif the value does not have the expected type for this property.Declaration
Swift
open func setComplexList(in target: StructureBase, to value: ComplexValueList)Parameters
targetTarget structure.
valueProperty value.
-
Set the value of this property in a structure.
Throws
CastExceptionif the value does not have the expected type for this property.Declaration
Swift
open func setComplexValue(in target: StructureBase, to value: ComplexValue)Parameters
targetTarget structure.
valueProperty value.
-
Set the value of this property in a structure.
Throws
CastExceptionif the value does not have the expected type for this property.Declaration
Swift
open func setComplexValue(in target: StructureBase, to value: ComplexValue?)Parameters
targetTarget structure.
valueProperty value.
-
Set the value of this property in a structure.
Declaration
Swift
open func setDataValue(in target: StructureBase, to value: DataValue?)Parameters
targetTarget structure.
valueProperty value.
-
Set the value of this property in a structure.
Throws
CastExceptionif the value does not have the expected type for this property.Declaration
Swift
open func setDecimalValue(in target: StructureBase, to value: BigDecimal)Parameters
targetTarget structure.
valueProperty value.
-
Set the value of this property in a structure.
Throws
CastExceptionif the value does not have the expected type for this property.Declaration
Swift
open func setDecimalValue(in target: StructureBase, to value: BigDecimal?)Parameters
targetTarget structure.
valueProperty value.
-
Set the value of this property in a structure.
Throws
CastExceptionif the value does not have the expected type for this property.Declaration
Swift
open func setDoubleValue(in target: StructureBase, to value: Double)Parameters
targetTarget structure.
valueProperty value.
-
Set the value of this property in a structure.
Throws
CastExceptionif the value does not have the expected type for this property.Declaration
Swift
open func setDoubleValue(in target: StructureBase, to value: Double?)Parameters
targetTarget structure.
valueProperty value.
-
Set the value of this property in a structure.
Throws
CastExceptionif the value does not have the expected type for this property.Declaration
Swift
open func setEntityList(in target: StructureBase, to value: EntityValueList)Parameters
targetTarget structure.
valueProperty value.
-
Set the value of this property in a structure.
Throws
CastExceptionif the value does not have the expected type for this property.Declaration
Swift
open func setEntityValue(in target: StructureBase, to value: EntityValue)Parameters
targetTarget structure.
valueProperty value.
-
Set the value of this property in a structure.
Throws
CastExceptionif the value does not have the expected type for this property.Declaration
Swift
open func setEntityValue(in target: StructureBase, to value: EntityValue?)Parameters
targetTarget structure.
valueProperty value.
-
Set the value of this property in a structure.
Throws
CastExceptionif the value does not have the expected type for this property.Declaration
Swift
open func setEnumValue(in target: StructureBase, to value: EnumValue)Parameters
targetTarget structure.
valueProperty value.
-
Set the value of this property in a structure.
Throws
CastExceptionif the value does not have the expected type for this property.Declaration
Swift
open func setEnumValue(in target: StructureBase, to value: EnumValue?)Parameters
targetTarget structure.
valueProperty value.
-
Set the value of this property in a structure.
Throws
CastExceptionif the value does not have the expected type for this property.Declaration
Swift
open func setFloatValue(in target: StructureBase, to value: Float)Parameters
targetTarget structure.
valueProperty value.
-
Set the value of this property in a structure.
Throws
CastExceptionif the value does not have the expected type for this property.Declaration
Swift
open func setFloatValue(in target: StructureBase, to value: Float?)Parameters
targetTarget structure.
valueProperty value.
-
Set the value of this property in a structure.
Throws
CastExceptionif the value does not have the expected type for this property.Declaration
Swift
open func setGuidValue(in target: StructureBase, to value: GuidValue)Parameters
targetTarget structure.
valueProperty value.
-
Set the value of this property in a structure.
Throws
CastExceptionif the value does not have the expected type for this property.Declaration
Swift
open func setGuidValue(in target: StructureBase, to value: GuidValue?)Parameters
targetTarget structure.
valueProperty value.
-
Set the value of this property in a structure.
Throws
CastExceptionif the value does not have the expected type for this property.Declaration
Swift
open func setIntValue(in target: StructureBase, to value: Int)Parameters
targetTarget structure.
valueProperty value.
-
Set the value of this property in a structure.
Throws
CastExceptionif the value does not have the expected type for this property.Declaration
Swift
open func setIntValue(in target: StructureBase, to value: Int?)Parameters
targetTarget structure.
valueProperty value.
-
Set the value of this property in a structure.
Throws
CastExceptionif the value does not have the expected type for this property.Declaration
Swift
open func setIntegerValue(in target: StructureBase, to value: BigInteger)Parameters
targetTarget structure.
valueProperty value.
-
Set the value of this property in a structure.
Throws
CastExceptionif the value does not have the expected type for this property.Declaration
Swift
open func setIntegerValue(in target: StructureBase, to value: BigInteger?)Parameters
targetTarget structure.
valueProperty value.
-
Set the value of this property in a structure.
Throws
CastExceptionif the value does not have the expected type for this property.Declaration
Swift
open func setLongValue(in target: StructureBase, to value: Int64)Parameters
targetTarget structure.
valueProperty value.
-
Set the value of this property in a structure.
Throws
CastExceptionif the value does not have the expected type for this property.Declaration
Swift
open func setLongValue(in target: StructureBase, to value: Int64?)Parameters
targetTarget structure.
valueProperty value.
-
Set the value of this property in a structure.
Throws
CastExceptionif the value does not have the expected type for this property.Declaration
Swift
open func setShortValue(in target: StructureBase, to value: Int)Parameters
targetTarget structure.
valueProperty value.
-
Set the value of this property in a structure.
Throws
CastExceptionif the value does not have the expected type for this property.Declaration
Swift
open func setShortValue(in target: StructureBase, to value: Int?)Parameters
targetTarget structure.
valueProperty value.
-
Set the value of this property in a structure.
Throws
CastExceptionif the value does not have the expected type for this property.Declaration
Swift
open func setStringValue(in target: StructureBase, to value: String)Parameters
targetTarget structure.
valueProperty value.
-
Set the value of this property in a structure.
Throws
CastExceptionif the value does not have the expected type for this property.Declaration
Swift
open func setStringValue(in target: StructureBase, to value: String?)Parameters
targetTarget structure.
valueProperty value.
-
Set the value of this property in a structure.
Throws
CastExceptionif the value does not have the expected type for this property.Declaration
Swift
open func setUnsignedByteValue(in target: StructureBase, to value: Int)Parameters
targetTarget structure.
valueProperty value.
-
Set the value of this property in a structure.
Throws
CastExceptionif the value does not have the expected type for this property.Declaration
Swift
open func setUnsignedByteValue(in target: StructureBase, to value: Int?)Parameters
targetTarget structure.
valueProperty value.
-
Get the value of this property from a structure.
Throws
UndefinedExceptionif the property value was not previously set,CastExceptionif the value does not have the expected type for this property.Declaration
Swift
open func shortValue(from source: StructureBase) -> IntParameters
sourceSource structure.
Return Value
Property value.
-
Get the stream link for this property from a structure.
Declaration
Swift
open func streamLink(from source: StructureBase) -> StreamLinkParameters
sourceSource structure.
Return Value
Stream link.
-
Get the value of this property from a structure.
Throws
UndefinedExceptionif the property value was not previously set,CastExceptionif the value does not have the expected type for this property.Declaration
Swift
open func stringValue(from source: StructureBase) -> StringParameters
sourceSource structure.
Return Value
Property value.
-
If this property has a structure (complex/entity) type, then return it. Otherwise throw
UsageException.Declaration
Swift
open var structureType: StructureType { get } -
Convert this data value to a string. If the
dataTypeis defined by XML Schema Part 2: Datatypes, then the corresponding lexical format is used. JSON format is used for structured values (arrays and objects).Declaration
Swift
override open func toString() -> StringReturn Value
Lexical representation of this data value.
-
Synonym for
dataType. If this property has a basic type, thentype.isBasicwill betrue. If this property has a basic list type, thentype.isBasicListwill betrue. If this property has a complex type, thentype.isComplexwill betrueandtypewill be an instance ofComplexType. If this property has a complex list type, thentype.isComplexListwill betrueandtype.itemTypewill be an instance ofComplexType. If this property has an entity type, thentype.isEntitywill betrueandtypewill be an instance ofEntityType. If this property has an entity list type, thentype.isEntityListwill betrueandtype.itemTypewill be an instance ofEntityType.Declaration
Swift
public final var type: DataType { get set } -
Synonym for
dataType.code.Declaration
Swift
override public final var typeCode: Int { get } -
Get the value of this property from a structure.
Throws
UndefinedExceptionif the property value was not previously set,CastExceptionif the value does not have the expected type for this property.Declaration
Swift
open func unsignedByteValue(from source: StructureBase) -> IntParameters
sourceSource structure.
Return Value
Property value.
-
Declaration
Swift
override open func unwrap() -> DataValueReturn Value
The path, property, constant value or query function/operator call which is wrapped by this object.
-
Declaration
Swift
open func urlString() -> StringReturn Value
The name of this property, percent-encoded for use in a URL.