Element

public struct Element : Codable, Equatable

A component part of the document.

  • The numeric location of the identified element in the document, represented with two integers labeled begin and end.

    Declaration

    Swift

    public var location: Location?
  • The text of the element.

    Declaration

    Swift

    public var text: String?
  • Description of the action specified by the element and whom it affects.

    Declaration

    Swift

    public var types: [TypeLabel]?
  • List of functional categories into which the element falls; in other words, the subject matter of the element.

    Declaration

    Swift

    public var categories: [Category]?
  • List of document attributes.

    Declaration

    Swift

    public var attributes: [Attribute]?