Property

open class Property: PropertyPath

Encapsulates the metadata of an OData structural or navigation property. Used for properties of complex and entity types.

  • Obsolete. Use path with unlabeled parameter.

    Declaration

    Swift

    public func path(child: Property) -> DataPath
  • Related entities will be deleted if the source entity is deleted.

    Declaration

    Swift

    public static let onDeleteCascade: Int = (1 as Int)
  • A delete request on a source entity with related entities will fail.

    Declaration

    Swift

    public static let onDeleteNoCascade: Int = (2 as 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 = (3 as 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 = (4 as Int)
  • Can this model element be removed by DataService.refreshMetadata. Defaults to false. Set this to true 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
  • id

    Zero-based index for this property within its parent type definition.

    Declaration

    Swift

    final public var id: Int = (0 as Int)
  • Name of the property.

    Declaration

    Swift

    final public var name: String = ""
  • Synonym for dataType. If this property has a basic type, then type.isBasic will be true. If this property has a basic list type, then type.isBasicList will be true. If this property has a complex type, then type.isComplex will be true and type will be an instance of ComplexType. If this property has a complex list type, then type.isComplexList will be true and type.itemType will be an instance of ComplexType. If this property has an entity type, then type.isEntity will be true and type will be an instance of EntityType. If this property has an entity list type, then type.isEntityList will be true and type.itemType will be an instance of EntityType.

    Declaration

    Swift

    final public var type: DataType!
  • Name of type that owns this property.

    Declaration

    Swift

    final public var owningType: String = "UNKNOWN"
  • 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?
  • true if this property is the primary key, or part of a composite primary key.

    Declaration

    Swift

    final public var isKey: Bool = false
  • true if this property is a primary key, or part of a composite foreign key.

    Declaration

    Swift

    final public var isForeignKey: Bool = false
  • true if this property was added since metadata was originally loaded.

    Declaration

    Swift

    final public var isExtension: Bool = false
  • true if 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 = false
  • true if this item allows Unicode content. If isUnicode is false, then this item only allows ASCII content.

    Declaration

    Swift

    final public var isUnicode: Bool = true
  • Minimum length for string and binary values.

    See also

    TypeFacets.ANY_LENGTH.

    Declaration

    Swift

    final public var minLength: Int = (0 as Int)
  • Maximum length for string and binary values.

    See also

    TypeFacets.ANY_LENGTH.

    Declaration

    Swift

    final public var maxLength: Int = (0 as Int)
  • Precision for decimal and integer 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 value for this item. May be nil.

    Declaration

    Swift

    final public var defaultValue: DataValue? = nil
  • true if this item is nullable.

    Declaration

    Swift

    final public var isOptional: Bool = true
  • true if this property is immutable (non-updatable after insert).

    Declaration

    Swift

    final public var isImmutable: Bool = false
  • If this property is a navigation property, then does it contain its target?

    Declaration

    Swift

    final public var containsTarget: Bool = false
  • If this property is a navigation property, then the action upon deletion of the source entity. Zero indicates an undefined action.

    See also

    constants.

    Declaration

    Swift

    final public var onDeleteAction: Int = (0 as Int)
  • If this property is a navigation property with a defined partner property, then the path of the partner.

    Declaration

    Swift

    final public var partnerPath: String?
  • 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

    final public var referentialConstraints: StringMap = StringMap.empty
  • Default initializer.

    Declaration

    Swift

    override public init()
  • Lookup an existing property 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 property annotation.

  • List of annotations for this property.

    Declaration

    Swift

    open var annotationList: AnnotationList
  • Map of annotations for this property.

    Declaration

    Swift

    open var annotationMap: AnnotationMap
  • Get the value of this property from a structure.

    Throws

    UndefinedException if the property value was not previously set, CastException if the value does not have the expected type for this property.

    Declaration

    Swift

    open func basicList(from source: StructureBase) -> DataValueList

    Parameters

    source

    Source structure.

    Return Value

    Property value.

  • Get the value of this property from a structure.

    Throws

    UndefinedException if the property value was not previously set, CastException if the value does not have the expected type for this property.

    Declaration

    Swift

    open func binaryValue(from source: StructureBase) -> Data

    Parameters

    source

    Source structure.

    Return Value

    Property value.

  • Get the value of this property from a structure.

    Throws

    UndefinedException if the property value was not previously set, CastException if the value does not have the expected type for this property.

    Declaration

    Swift

    open func booleanValue(from source: StructureBase) -> Bool

    Parameters

    source

    Source structure.

    Return Value

    Property value.

  • Get the value of this property from a structure.

    Throws

    UndefinedException if the property value was not previously set, CastException if the value does not have the expected type for this property.

    Declaration

    Swift

    open func byteValue(from source: StructureBase) -> Int

    Parameters

    source

    Source structure.

    Return Value

    Property value.

  • Get the value of this property from a structure.

    Throws

    UndefinedException if the property value was not previously set, CastException if the value does not have the expected type for this property.

    Declaration

    Swift

    open func complexList(from source: StructureBase) -> ComplexValueList

    Parameters

    source

    Source structure.

    Return Value

    Property value.

  • If this property has a complex type, then return it. Otherwise throw UsageException.

    See also

    DataType.isComplex.

    Declaration

    Swift

    open var complexType: ComplexType
  • Get the value of this property from a structure.

    Throws

    UndefinedException if the property value was not previously set, CastException if the value does not have the expected type for this property.

    Declaration

    Swift

    open func complexValue(from source: StructureBase) -> ComplexValue

    Parameters

    source

    Source structure.

    Return Value

    Property value.

  • Data type of the property.

    See also

    type for detailed usage information and example code.

    Declaration

    Swift

    override open var dataType: DataType
  • Get the value of this property from a structure.

    Throws

    UndefinedException if the property value was not previously set.

    Declaration

    Swift

    open func dataValue(from source: StructureBase) -> DataValue?

    Parameters

    source

    Source structure.

    Return Value

    Property value.

  • Get the value of this property from a structure.

    Throws

    UndefinedException if the property value was not previously set, CastException if the value does not have the expected type for this property.

    Declaration

    Swift

    open func decimalValue(from source: StructureBase) -> BigDecimal

    Parameters

    source

    Source structure.

    Return Value

    Property value.

  • Get the value of this property from a structure.

    Throws

    UndefinedException if the property value was not previously set, CastException if the value does not have the expected type for this property.

    Declaration

    Swift

    open func doubleValue(from source: StructureBase) -> Double

    Parameters

    source

    Source structure.

    Return Value

    Property value.

  • Get the value of this property from a structure.

    Throws

    UndefinedException if the property value was not previously set, CastException if the value does not have the expected type for this property.

    Declaration

    Swift

    open func entityList(from source: StructureBase) -> EntityValueList

    Parameters

    source

    Source structure.

    Return Value

    Property value.

  • If this property has an entity type, then return it. Otherwise throw UsageException.

    See also

    DataType.isEntity.

    Declaration

    Swift

    open var entityType: EntityType
  • Get the value of this property from a structure.

    Throws

    UndefinedException if the property value was not previously set, CastException if the value does not have the expected type for this property.

    Declaration

    Swift

    open func entityValue(from source: StructureBase) -> EntityValue

    Parameters

    source

    Source structure.

    Return Value

    Property value.

  • If this property has an enum type, then return it. Otherwise throw UsageException.

    See also

    DataType.isEnum.

    Declaration

    Swift

    open var enumType: EnumType
  • Get the value of this property from a structure.

    Throws

    UndefinedException if the property value was not previously set, CastException if the value does not have the expected type for this property.

    Declaration

    Swift

    open func enumValue(from source: StructureBase) -> EnumValue

    Parameters

    source

    Source structure.

    Return Value

    Property value.

  • true if this item has fixed length for string and binary values.

    See also

    minLength, maxLength.

    Declaration

    Swift

    open var fixedLength: Bool
  • Get the value of this property from a structure.

    Throws

    UndefinedException if the property value was not previously set, CastException if the value does not have the expected type for this property.

    Declaration

    Swift

    open func floatValue(from source: StructureBase) -> Float

    Parameters

    source

    Source structure.

    Return Value

    Property value.

  • Get the value of this property from a structure.

    Throws

    UndefinedException if the property value was not previously set, CastException if the value does not have the expected type for this property.

    Declaration

    Swift

    open func guidValue(from source: StructureBase) -> GuidValue

    Parameters

    source

    Source structure.

    Return Value

    Property value.

  • Get the value of this property from a structure.

    Throws

    UndefinedException if the property value was not previously set, CastException if the value does not have the expected type for this property.

    Declaration

    Swift

    open func intValue(from source: StructureBase) -> Int

    Parameters

    source

    Source structure.

    Return Value

    Property value.

  • Get the value of this property from a structure.

    Throws

    UndefinedException if the property value was not previously set, CastException if the value does not have the expected type for this property.

    Declaration

    Swift

    open func integerValue(from source: StructureBase) -> BigInteger

    Parameters

    source

    Source structure.

    Return Value

    Property value.

  • true if this is a navigation property.

    Declaration

    Swift

    open var isNavigation: Bool
  • true if this property is persistent (stored in the local database when offline).

    Declaration

    Swift

    open var isPersistent: Bool
  • true if this property has a stream type.

    Declaration

    Swift

    open var isStream: Bool
  • true if this is a structural property.

    Declaration

    Swift

    open var isStructural: Bool
  • If this property is a list with complex item type, then return it. Otherwise throw UsageException.

    Declaration

    Swift

    open var itemComplexType: ComplexType
  • If this property is a list with entity item type, then return it. Otherwise throw UsageException.

    Declaration

    Swift

    open var itemEntityType: EntityType
  • Get the value of this property from a structure.

    Throws

    UndefinedException if the property value was not previously set, CastException if the value does not have the expected type for this property.

    Declaration

    Swift

    open func longValue(from source: StructureBase) -> Int64

    Parameters

    source

    Source structure.

    Return Value

    Property value.

  • Get the value of this property from a structure.

    Throws

    UndefinedException if the property value was not previously set, CastException if the value does not have the expected type for this property.

    Declaration

    Swift

    open func optionalBinary(from source: StructureBase) -> Data?

    Parameters

    source

    Source structure.

    Return Value

    Property value.

  • Get the value of this property from a structure.

    Throws

    UndefinedException if the property value was not previously set, CastException if the value does not have the expected type for this property.

    Declaration

    Swift

    open func optionalBoolean(from source: StructureBase) -> Bool?

    Parameters

    source

    Source structure.

    Return Value

    Property value.

  • Get the value of this property from a structure.

    Throws

    UndefinedException if the property value was not previously set, CastException if the value does not have the expected type for this property.

    Declaration

    Swift

    open func optionalByte(from source: StructureBase) -> Int?

    Parameters

    source

    Source structure.

    Return Value

    Property value.

  • Get the value of this property from a structure.

    Throws

    UndefinedException if the property value was not previously set, CastException if the value does not have the expected type for this property.

    Declaration

    Swift

    open func optionalComplex(from source: StructureBase) -> ComplexValue?

    Parameters

    source

    Source structure.

    Return Value

    Property value.

  • Get the value of this property from a structure.

    Throws

    UndefinedException if the property value was not previously set, CastException if the value does not have the expected type for this property.

    Declaration

    Swift

    open func optionalDecimal(from source: StructureBase) -> BigDecimal?

    Parameters

    source

    Source structure.

    Return Value

    Property value.

  • Get the value of this property from a structure.

    Throws

    UndefinedException if the property value was not previously set, CastException if the value does not have the expected type for this property.

    Declaration

    Swift

    open func optionalDouble(from source: StructureBase) -> Double?

    Parameters

    source

    Source structure.

    Return Value

    Property value.

  • Get the value of this property from a structure.

    Throws

    UndefinedException if the property value was not previously set, CastException if the value does not have the expected type for this property.

    Declaration

    Swift

    open func optionalEntity(from source: StructureBase) -> EntityValue?

    Parameters

    source

    Source structure.

    Return Value

    Property value.

  • Get the value of this property from a structure.

    Throws

    UndefinedException if the property value was not previously set, CastException if the value does not have the expected type for this property.

    Declaration

    Swift

    open func optionalEnum(from source: StructureBase) -> EnumValue?

    Parameters

    source

    Source structure.

    Return Value

    Property value.

  • Get the value of this property from a structure.

    Throws

    UndefinedException if the property value was not previously set, CastException if the value does not have the expected type for this property.

    Declaration

    Swift

    open func optionalFloat(from source: StructureBase) -> Float?

    Parameters

    source

    Source structure.

    Return Value

    Property value.

  • Get the value of this property from a structure.

    Throws

    UndefinedException if the property value was not previously set, CastException if the value does not have the expected type for this property.

    Declaration

    Swift

    open func optionalGuid(from source: StructureBase) -> GuidValue?

    Parameters

    source

    Source structure.

    Return Value

    Property value.

  • Get the value of this property from a structure.

    Throws

    UndefinedException if the property value was not previously set, CastException if the value does not have the expected type for this property.

    Declaration

    Swift

    open func optionalInt(from source: StructureBase) -> Int?

    Parameters

    source

    Source structure.

    Return Value

    Property value.

  • Get the value of this property from a structure.

    Throws

    UndefinedException if the property value was not previously set, CastException if the value does not have the expected type for this property.

    Declaration

    Swift

    open func optionalInteger(from source: StructureBase) -> BigInteger?

    Parameters

    source

    Source structure.

    Return Value

    Property value.

  • Get the value of this property from a structure.

    Throws

    UndefinedException if the property value was not previously set, CastException if the value does not have the expected type for this property.

    Declaration

    Swift

    open func optionalLong(from source: StructureBase) -> Int64?

    Parameters

    source

    Source structure.

    Return Value

    Property value.

  • Get the value of this property from a structure.

    Throws

    UndefinedException if the property value was not previously set, CastException if the value does not have the expected type for this property.

    Declaration

    Swift

    open func optionalShort(from source: StructureBase) -> Int?

    Parameters

    source

    Source structure.

    Return Value

    Property value.

  • Get the value of this property from a structure.

    Throws

    UndefinedException if the property value was not previously set, CastException if the value does not have the expected type for this property.

    Declaration

    Swift

    open func optionalString(from source: StructureBase) -> String?

    Parameters

    source

    Source structure.

    Return Value

    Property value.

  • Get the value of this property from a structure.

    Throws

    UndefinedException if the property value was not previously set, CastException if the value does not have the expected type for this property.

    Declaration

    Swift

    open func optionalUnsignedByte(from source: StructureBase) -> Int?

    Parameters

    source

    Source structure.

    Return Value

    Property value.

  • Declaration

    Swift

    open func path(_ child: Property) -> DataPath

    Parameters

    child

    Child property.

    Return Value

    A new data path from this property to a child property.

  • Owning type name, forward slash, then property name, e.g. MySchema.MyEntityType/MyPropertyName.

    Declaration

    Swift

    open var qualifiedName: String
  • Set the value of this property in a structure.

    Throws

    CastException if the value does not have the expected type for this property.

    Declaration

    Swift

    open func setBasicList(in target: StructureBase, to value: DataValueList) -> Void

    Parameters

    target

    Target structure.

    value

    Property value.

  • Set the value of this property in a structure.

    Throws

    CastException if the value does not have the expected type for this property.

    Declaration

    Swift

    open func setBinaryValue(in target: StructureBase, to value: Data) -> Void

    Parameters

    target

    Target structure.

    value

    Property value.

  • Set the value of this property in a structure.

    Throws

    CastException if the value does not have the expected type for this property.

    Declaration

    Swift

    open func setBinaryValue(in target: StructureBase, to value: Data?) -> Void

    Parameters

    target

    Target structure.

    value

    Property value.

  • Set the value of this property in a structure.

    Throws

    CastException if the value does not have the expected type for this property.

    Declaration

    Swift

    open func setBooleanValue(in target: StructureBase, to value: Bool) -> Void

    Parameters

    target

    Target structure.

    value

    Property value.

  • Set the value of this property in a structure.

    Throws

    CastException if the value does not have the expected type for this property.

    Declaration

    Swift

    open func setBooleanValue(in target: StructureBase, to value: Bool?) -> Void

    Parameters

    target

    Target structure.

    value

    Property value.

  • Set the value of this property in a structure.

    Throws

    CastException if the value does not have the expected type for this property.

    Declaration

    Swift

    open func setByteValue(in target: StructureBase, to value: Int) -> Void

    Parameters

    target

    Target structure.

    value

    Property value.

  • Set the value of this property in a structure.

    Throws

    CastException if the value does not have the expected type for this property.

    Declaration

    Swift

    open func setByteValue(in target: StructureBase, to value: Int?) -> Void

    Parameters

    target

    Target structure.

    value

    Property value.

  • Set the value of this property in a structure.

    Throws

    CastException if the value does not have the expected type for this property.

    Declaration

    Swift

    open func setComplexList(in target: StructureBase, to value: ComplexValueList) -> Void

    Parameters

    target

    Target structure.

    value

    Property value.

  • Set the value of this property in a structure.

    Throws

    CastException if the value does not have the expected type for this property.

    Declaration

    Swift

    open func setComplexValue(in target: StructureBase, to value: ComplexValue) -> Void

    Parameters

    target

    Target structure.

    value

    Property value.

  • Set the value of this property in a structure.

    Throws

    CastException if the value does not have the expected type for this property.

    Declaration

    Swift

    open func setComplexValue(in target: StructureBase, to value: ComplexValue?) -> Void

    Parameters

    target

    Target structure.

    value

    Property value.

  • Set the value of this property in a structure.

    Declaration

    Swift

    open func setDataValue(in target: StructureBase, to value: DataValue?) -> Void

    Parameters

    target

    Target structure.

    value

    Property value.

  • Set the value of this property in a structure.

    Throws

    CastException if the value does not have the expected type for this property.

    Declaration

    Swift

    open func setDecimalValue(in target: StructureBase, to value: BigDecimal) -> Void

    Parameters

    target

    Target structure.

    value

    Property value.

  • Set the value of this property in a structure.

    Throws

    CastException if the value does not have the expected type for this property.

    Declaration

    Swift

    open func setDecimalValue(in target: StructureBase, to value: BigDecimal?) -> Void

    Parameters

    target

    Target structure.

    value

    Property value.

  • Set the value of this property in a structure.

    Throws

    CastException if the value does not have the expected type for this property.

    Declaration

    Swift

    open func setDoubleValue(in target: StructureBase, to value: Double) -> Void

    Parameters

    target

    Target structure.

    value

    Property value.

  • Set the value of this property in a structure.

    Throws

    CastException if the value does not have the expected type for this property.

    Declaration

    Swift

    open func setDoubleValue(in target: StructureBase, to value: Double?) -> Void

    Parameters

    target

    Target structure.

    value

    Property value.

  • Set the value of this property in a structure.

    Throws

    CastException if the value does not have the expected type for this property.

    Declaration

    Swift

    open func setEntityList(in target: StructureBase, to value: EntityValueList) -> Void

    Parameters

    target

    Target structure.

    value

    Property value.

  • Set the value of this property in a structure.

    Throws

    CastException if the value does not have the expected type for this property.

    Declaration

    Swift

    open func setEntityValue(in target: StructureBase, to value: EntityValue) -> Void

    Parameters

    target

    Target structure.

    value

    Property value.

  • Set the value of this property in a structure.

    Throws

    CastException if the value does not have the expected type for this property.

    Declaration

    Swift

    open func setEntityValue(in target: StructureBase, to value: EntityValue?) -> Void

    Parameters

    target

    Target structure.

    value

    Property value.

  • Set the value of this property in a structure.

    Throws

    CastException if the value does not have the expected type for this property.

    Declaration

    Swift

    open func setEnumValue(in target: StructureBase, to value: EnumValue) -> Void

    Parameters

    target

    Target structure.

    value

    Property value.

  • Set the value of this property in a structure.

    Throws

    CastException if the value does not have the expected type for this property.

    Declaration

    Swift

    open func setEnumValue(in target: StructureBase, to value: EnumValue?) -> Void

    Parameters

    target

    Target structure.

    value

    Property value.

  • Set the value of this property in a structure.

    Throws

    CastException if the value does not have the expected type for this property.

    Declaration

    Swift

    open func setFloatValue(in target: StructureBase, to value: Float) -> Void

    Parameters

    target

    Target structure.

    value

    Property value.

  • Set the value of this property in a structure.

    Throws

    CastException if the value does not have the expected type for this property.

    Declaration

    Swift

    open func setFloatValue(in target: StructureBase, to value: Float?) -> Void

    Parameters

    target

    Target structure.

    value

    Property value.

  • Set the value of this property in a structure.

    Throws

    CastException if the value does not have the expected type for this property.

    Declaration

    Swift

    open func setGuidValue(in target: StructureBase, to value: GuidValue) -> Void

    Parameters

    target

    Target structure.

    value

    Property value.

  • Set the value of this property in a structure.

    Throws

    CastException if the value does not have the expected type for this property.

    Declaration

    Swift

    open func setGuidValue(in target: StructureBase, to value: GuidValue?) -> Void

    Parameters

    target

    Target structure.

    value

    Property value.

  • Set the value of this property in a structure.

    Throws

    CastException if the value does not have the expected type for this property.

    Declaration

    Swift

    open func setIntValue(in target: StructureBase, to value: Int) -> Void

    Parameters

    target

    Target structure.

    value

    Property value.

  • Set the value of this property in a structure.

    Throws

    CastException if the value does not have the expected type for this property.

    Declaration

    Swift

    open func setIntValue(in target: StructureBase, to value: Int?) -> Void

    Parameters

    target

    Target structure.

    value

    Property value.

  • Set the value of this property in a structure.

    Throws

    CastException if the value does not have the expected type for this property.

    Declaration

    Swift

    open func setIntegerValue(in target: StructureBase, to value: BigInteger) -> Void

    Parameters

    target

    Target structure.

    value

    Property value.

  • Set the value of this property in a structure.

    Throws

    CastException if the value does not have the expected type for this property.

    Declaration

    Swift

    open func setIntegerValue(in target: StructureBase, to value: BigInteger?) -> Void

    Parameters

    target

    Target structure.

    value

    Property value.

  • Set the value of this property in a structure.

    Throws

    CastException if the value does not have the expected type for this property.

    Declaration

    Swift

    open func setLongValue(in target: StructureBase, to value: Int64) -> Void

    Parameters

    target

    Target structure.

    value

    Property value.

  • Set the value of this property in a structure.

    Throws

    CastException if the value does not have the expected type for this property.

    Declaration

    Swift

    open func setLongValue(in target: StructureBase, to value: Int64?) -> Void

    Parameters

    target

    Target structure.

    value

    Property value.

  • Set the value of this property in a structure.

    Throws

    CastException if the value does not have the expected type for this property.

    Declaration

    Swift

    open func setShortValue(in target: StructureBase, to value: Int) -> Void

    Parameters

    target

    Target structure.

    value

    Property value.

  • Set the value of this property in a structure.

    Throws

    CastException if the value does not have the expected type for this property.

    Declaration

    Swift

    open func setShortValue(in target: StructureBase, to value: Int?) -> Void

    Parameters

    target

    Target structure.

    value

    Property value.

  • Set the value of this property in a structure.

    Throws

    CastException if the value does not have the expected type for this property.

    Declaration

    Swift

    open func setStringValue(in target: StructureBase, to value: String) -> Void

    Parameters

    target

    Target structure.

    value

    Property value.

  • Set the value of this property in a structure.

    Throws

    CastException if the value does not have the expected type for this property.

    Declaration

    Swift

    open func setStringValue(in target: StructureBase, to value: String?) -> Void

    Parameters

    target

    Target structure.

    value

    Property value.

  • Set the value of this property in a structure.

    Throws

    CastException if the value does not have the expected type for this property.

    Declaration

    Swift

    open func setUnsignedByteValue(in target: StructureBase, to value: Int) -> Void

    Parameters

    target

    Target structure.

    value

    Property value.

  • Set the value of this property in a structure.

    Throws

    CastException if the value does not have the expected type for this property.

    Declaration

    Swift

    open func setUnsignedByteValue(in target: StructureBase, to value: Int?) -> Void

    Parameters

    target

    Target structure.

    value

    Property value.

  • Get the value of this property from a structure.

    Throws

    UndefinedException if the property value was not previously set, CastException if the value does not have the expected type for this property.

    Declaration

    Swift

    open func shortValue(from source: StructureBase) -> Int

    Parameters

    source

    Source structure.

    Return Value

    Property value.

  • Get the stream link for this property from a structure.

    Declaration

    Swift

    open func streamLink(from source: StructureBase) -> StreamLink

    Parameters

    source

    Source structure.

    Return Value

    Stream link.

  • Get the value of this property from a structure.

    Throws

    UndefinedException if the property value was not previously set, CastException if the value does not have the expected type for this property.

    Declaration

    Swift

    open func stringValue(from source: StructureBase) -> String

    Parameters

    source

    Source 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
  • Declaration

    Swift

    override open func toPath() -> DataPath

    Return Value

    this property or path, expressed as a DataPath.

  • Convert this data value to a string. If the dataType is 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() -> String

    Return Value

    Lexical representation of this data value.

  • Get the value of this property from a structure.

    Throws

    UndefinedException if the property value was not previously set, CastException if the value does not have the expected type for this property.

    Declaration

    Swift

    open func unsignedByteValue(from source: StructureBase) -> Int

    Parameters

    source

    Source structure.

    Return Value

    Property value.

  • Declaration

    Swift

    override open func unwrap() -> DataValue

    Return Value

    The path, property, constant value or query function/operator call which is wrapped by this object.

  • Declaration

    Swift

    open func urlString() -> String

    Return Value

    The name of this property, percent-encoded for use in a URL.