MapBase

open class MapBase : DataValue

Base class for strongly-typed maps.

  • The number of items in this map.

    Declaration

    Swift

    public final var count: Int { get }
  • Default initializer.

    Declaration

    Swift

    override public init()
  • The data type for this map.

    Declaration

    Swift

    override open var dataType: DataType { get }
  • true if this map is empty.

    Declaration

    Swift

    @inline(__always)
    public final var isEmpty: Bool { get }
  • true if this map is mutable.

    Declaration

    Swift

    @inline(__always)
    public final var isMutable: Bool { get }
  • true if this map is not empty.

    Declaration

    Swift

    @inline(__always)
    public final var isNotEmpty: Bool { get }
  • Remove all entries from this map.

    Declaration

    Swift

    @inline(__always)
    open func removeAll()
  • The number of entries in this map.

    Declaration

    Swift

    @inline(__always)
    public final var size: Int { get }
  • 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.

  • The underlying untyped map. Use with care, avoiding the addition of entries with an incorrect key or value type.

    Declaration

    Swift

    open var untypedMap: UntypedMap { get }