Packages

case class Repository(loc: At, id: Definitions.Identifier, types: Seq[Type] = Seq.empty[Type], handlers: Seq[Handler] = Seq.empty[Handler], inlets: Seq[Inlet] = Seq.empty[Inlet], outlets: Seq[Outlet] = Seq.empty[Outlet], authors: Seq[AuthorRef] = Seq.empty[AuthorRef], includes: Seq[Include[RepositoryDefinition]] = Seq
.empty[Include[RepositoryDefinition]]
, options: Seq[Definitions.RepositoryOption] = Seq.empty[RepositoryOption], terms: Seq[Term] = Seq.empty[Term], brief: Option[Definitions.LiteralString] = Option.empty[LiteralString], description: Option[Definitions.Description] = None)
extends Processor[RepositoryOption, RepositoryDefinition] with ContextDefinition with Product with Serializable

A RIDDL repository is an abstraction for anything that can retain information(e.g. messages for retrieval at a later time. This might be a relational database, NoSQL database, data lake, API, or something not yet invented. There is no specific technology implied other than the retention and retrieval of information. You should think of repositories more like a message-oriented version of the Java Repository Pattern than any particular kind ofdatabase.

loc

Location in the source of the Repository

id

The unique identifier for this Repository

types

The types, typically messages, that the Repository uses

handlers

The handler for specifying how messages should be handled by the repository

authors

The author(s) who wrote this repository specification.

includes

Included files

options

Options that can be used by the translators

terms

Definitions of terms about this repository

brief

A brief description of this repository

description

A detailed description of this repository

See also

https://java-design-patterns.com/patterns/repository/#explanation

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Repository
  2. Serializable
  3. Product
  4. Equals
  5. ContextDefinition
  6. Processor
  7. WithTypes
  8. VitalDefinition
  9. WithTerms
  10. WithIncludes
  11. WithAuthors
  12. WithOptions
  13. Definition
  14. Container
  15. BrieflyDescribedValue
  16. DescribedValue
  17. RiddlValue
  18. RiddlNode
  19. AnyRef
  20. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Repository(loc: At, id: Definitions.Identifier, types: Seq[Type] = Seq.empty[Type], handlers: Seq[Handler] = Seq.empty[Handler], inlets: Seq[Inlet] = Seq.empty[Inlet], outlets: Seq[Outlet] = Seq.empty[Outlet], authors: Seq[AuthorRef] = Seq.empty[AuthorRef], includes: Seq[Include[RepositoryDefinition]] = Seq
    .empty[Include[RepositoryDefinition]]
    , options: Seq[Definitions.RepositoryOption] = Seq.empty[RepositoryOption], terms: Seq[Term] = Seq.empty[Term], brief: Option[Definitions.LiteralString] = Option.empty[LiteralString], description: Option[Definitions.Description] = None)

    loc

    Location in the source of the Repository

    id

    The unique identifier for this Repository

    types

    The types, typically messages, that the Repository uses

    handlers

    The handler for specifying how messages should be handled by the repository

    authors

    The author(s) who wrote this repository specification.

    includes

    Included files

    options

    Options that can be used by the translators

    terms

    Definitions of terms about this repository

    brief

    A brief description of this repository

    description

    A detailed description of this repository

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. val authors: Seq[AuthorRef]
    Definition Classes
    RepositoryWithAuthors
  6. implicit def bool2int(b: Boolean): Int

    Implicit conversion of boolean to Int for easier computation of statistics below

    Implicit conversion of boolean to Int for easier computation of statistics below

    b

    The boolean to convert to an Int

    Definition Classes
    VitalDefinition
  7. val brief: Option[Definitions.LiteralString]
    Definition Classes
    RepositoryBrieflyDescribedValue
  8. def briefValue: String
    Definition Classes
    BrieflyDescribedValue
  9. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
  10. def completeness: (Int, Int)

    Compute the completeness of this definition.

    Compute the completeness of this definition. Vital definitions should have options, terms, and authors but includes are optional. Incompleteness is signalled by child definitions that are empty.

    returns

    A numerator and denominator for percent complete

    Definition Classes
    VitalDefinition
  11. lazy val contents: Seq[RepositoryDefinition]
    Definition Classes
    RepositoryWithIncludesContainer
  12. val description: Option[Definitions.Description]
    Definition Classes
    RepositoryDescribedValue
  13. def descriptionValue: String
    Definition Classes
    DescribedValue
  14. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. def find(name: String): Option[Definitions.Definition]
    Definition Classes
    Definition
  16. def format: String

    Format the node to a string

    Format the node to a string

    Definition Classes
    WithOptionsRiddlNode
  17. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  18. def getOptionValue[OPT <: Definitions.RepositoryOption](implicit arg0: ClassTag[OPT]): Option[Seq[Definitions.LiteralString]]
    Definition Classes
    WithOptions
  19. val handlers: Seq[Handler]
    Definition Classes
    RepositoryProcessor
  20. def hasAuthors: Boolean
    Definition Classes
    WithAuthorsDefinition
  21. def hasInlets: Boolean
    Definition Classes
    Processor
  22. def hasOption[OPT <: Definitions.RepositoryOption](implicit arg0: ClassTag[OPT]): Boolean
    Definition Classes
    WithOptions
  23. def hasOptions: Boolean
    Definition Classes
    WithOptionsDefinition
  24. def hasOutlets: Boolean
    Definition Classes
    Processor
  25. def hasTerms: Boolean
    Definition Classes
    WithTerms
  26. def hasTypes: Boolean
    Definition Classes
    WithTypesDefinition
  27. val id: Definitions.Identifier
    Definition Classes
    RepositoryDefinition
  28. def identify: String
    Definition Classes
    Definition
  29. def identifyWithLoc: String
    Definition Classes
    Definition
  30. val includes: Seq[Include[RepositoryDefinition]]
    Definition Classes
    RepositoryWithIncludes
  31. val inlets: Seq[Inlet]
    Definition Classes
    RepositoryProcessor
  32. def isContainer: Boolean

    Determine if this node is a container or not

    Determine if this node is a container or not

    Definition Classes
    ContainerRiddlNode
  33. def isEmpty: Boolean

    determine if this node is empty or not.

    determine if this node is empty or not. Non-containers are always empty

    Definition Classes
    WithOptionsContainerRiddlNode
  34. def isImplicit: Boolean
    Definition Classes
    Definition
  35. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  36. def isRootContainer: Boolean
    Definition Classes
    Container
  37. def isVital: Boolean
    Definition Classes
    VitalDefinitionDefinition
  38. def kind: String
    Definition Classes
    RepositoryDefinition
  39. val loc: At

    The location in the parse at which this RiddlValue occurs

    The location in the parse at which this RiddlValue occurs

    Definition Classes
    RepositoryRiddlValue
  40. def maturity: Int

    Compute the 'maturity' of a definition.

    Compute the 'maturity' of a definition. Maturity is a score with no maximum but with scoring rules that target 100 points per definition. Maturity is broken down this way:

    • has a description - up to 50 points depending on # of non empty lines
    • has a brief description - 5 points
    • has options specified - 5 points
    • has terms defined -
    • has an author in or above the definition - 5 points \-
    • definition specific things: 0.65
    Definition Classes
    VitalDefinition
  41. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  42. final def nonEmpty: Boolean
    Definition Classes
    RiddlNode
    Annotations
    @deprecatedOverriding()
  43. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  44. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  45. val options: Seq[Definitions.RepositoryOption]
    Definition Classes
    RepositoryWithOptions
  46. val outlets: Seq[Outlet]
    Definition Classes
    RepositoryProcessor
  47. def productElementNames: Iterator[String]
    Definition Classes
    Product
  48. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  49. val terms: Seq[Term]
    Definition Classes
    RepositoryWithTerms
  50. val types: Seq[Type]
    Definition Classes
    RepositoryWithTypes
  51. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  52. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  53. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from ContextDefinition

Inherited from WithTypes

Inherited from WithTerms

Inherited from WithAuthors

Inherited from Definitions.Definition

Inherited from Definitions.RiddlValue

Inherited from Definitions.RiddlNode

Inherited from AnyRef

Inherited from Any

Ungrouped