MutableFragment

public final class MutableFragment: Fragment, MutableDictionaryFragment, MutableArrayFragment

MutableFragment provides read and write access to data value. MutableFragment also provides subscript access by either key or index to the nested values which are wrapped by MutableFragment objects.

  • Gets the value from or sets the value to the fragment object.

    Declaration

    Swift

    public override var value: Any?
  • Gets the value as string or sets the string value to the fragment object.

    Declaration

    Swift

    public override var string: String?
  • Gets the value as number or sets the number value to the fragment object.

    Declaration

    Swift

    public override var number: NSNumber?
  • int

    Gets the value as integer or sets the integer value to the fragment object.

    Declaration

    Swift

    public override var int: Int
  • Gets the value as integer or sets the integer value to the fragment object.

    Declaration

    Swift

    public override var int64: Int64
  • Gets the value as float or sets the float value to the fragment object.

    Declaration

    Swift

    public override var float: Float
  • Gets the value as double or sets the double value to the fragment object.

    Declaration

    Swift

    public override var double: Double
  • Gets the value as boolean or sets the boolean value to the fragment object.

    Declaration

    Swift

    public override var boolean: Bool
  • Gets the value as blob or sets the blob value to the fragment object.

    Declaration

    Swift

    public override var date: Date?
  • Gets the value as blob or sets the blob value to the fragment object.

    Declaration

    Swift

    public override var blob: Blob?
  • Get the value as an MutableArrayObject object, a mapping object of an array value. Returns nil if the value is nil, or the value is not an array.

    Declaration

    Swift

    public override var array: MutableArrayObject?
  • Get a property’s value as a MutableDictionaryObject object, a mapping object of a dictionary value. Returns nil if the value is nil, or the value is not a dictionary.

    Declaration

    Swift

    public override var dictionary: MutableDictionaryObject?
  • Subscript access to a MutableFragment object by index.

    Declaration

    Swift

    public override subscript(index: Int) -> MutableFragment

    Parameters

    index

    The index.

  • Subscript access to a MutableFragment object by key.

    Declaration

    Swift

    public override subscript(key: String) -> MutableFragment

    Parameters

    key

    The key.