DataAttributesBase

public protocol DataAttributesBase : AnyObject

Interface for a collection of data attributes.

Note: This is a beta release of this feature, so there could be a few bugs and unexpected behavior. Related APIs may change for new releases without a deprecation process.

  • Returns a list of attribute names.

    Declaration

    Swift

    func getAttributeNames() -> [String]

    Return Value

    The list of attribute names.

  • Returns the value type of an attribute or nil if it is not contained.

    Declaration

    Swift

    func getValueType(_ name: String) -> DataAttributeValue.ValueType?

    Parameters

    name

    Attribute name.

    Return Value

    Attribute value type or nil if it is not contained.

  • Gets the value of an attribute as a string or nil if it is not contained.

    Declaration

    Swift

    func getAsString(_ name: String) -> String?

    Parameters

    name

    Attribute name.

    Return Value

    Attribute value.

  • Gets the value of a string attribute or nil if it is not contained or the type doesn’t match.

    Declaration

    Swift

    func getString(_ name: String) -> String?

    Parameters

    name

    Attribute name.

    Return Value

    Attribute value.

  • Gets the value of a 64-bits integer attribute or nil if it is not contained or the type doesn’t match.

    Declaration

    Swift

    func getInt64(_ name: String) -> Int64?

    Parameters

    name

    Attribute name.

    Return Value

    Attribute value.

  • Gets the value of a single precision floating decimal attribute or nil if it is not contained or the type doesn’t match.

    Declaration

    Swift

    func getFloat(_ name: String) -> Float?

    Parameters

    name

    Attribute name.

    Return Value

    Attribute value.

  • Gets the value of a double precision floating decimal attribute or nil if it is not contained or the type doesn’t match.

    Declaration

    Swift

    func getDouble(_ name: String) -> Double?

    Parameters

    name

    Attribute name.

    Return Value

    Attribute value.

  • Gets the value of a boolean attribute or nil if it is not contained or the type doesn’t match.

    Declaration

    Swift

    func getBoolean(_ name: String) -> Bool?

    Parameters

    name

    Attribute name.

    Return Value

    Attribute value.

  • Gets the DataAttributeValue or nil if it is not contained.

    Declaration

    Swift

    func getValue(_ name: String) -> DataAttributeValue?

    Parameters

    name

    Attribute name.

    Return Value

    Attribute value.