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? { get set }
  • Gets the value as string or sets the string value to the fragment object.

    Declaration

    Swift

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

    Declaration

    Swift

    public override var number: NSNumber? { get set }
  • int

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

    Declaration

    Swift

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

    Declaration

    Swift

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

    Declaration

    Swift

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

    Declaration

    Swift

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

    Declaration

    Swift

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

    Declaration

    Swift

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

    Declaration

    Swift

    public override var blob: Blob? { get set }
  • 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 set }
  • 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? { get set }
  • Subscript access to a MutableFragment object by index.

    Declaration

    Swift

    public override subscript(index: Int) -> MutableFragment { get }

    Parameters

    index

    The index.

  • Subscript access to a MutableFragment object by key.

    Declaration

    Swift

    public override subscript(key: String) -> MutableFragment { get }

    Parameters

    key

    The key.