case class Domain(loc: Location, id: AST.Identifier, options: Seq[DomainOption] = Seq.empty[DomainOption], authors: Seq[AuthorInfo] = Seq.empty[AuthorInfo], types: Seq[Type] = Seq.empty[Type], contexts: Seq[Context] = Seq.empty[Context], plants: Seq[Plant] = Seq.empty[Plant], stories: Seq[Story] = Seq.empty[Story], domains: Seq[Domain] = Seq.empty[Domain], terms: Seq[Term] = Seq.empty[Term], includes: Seq[Include] = Seq.empty[Include], brief: Option[AST.LiteralString] = Option.empty[LiteralString], description: Option[AST.Description] = None) extends TypeContainer with WithOptions[DomainOption] with DomainDefinition with WithIncludes with WithTypes with WithTerms with WithAuthors with Product with Serializable
The definition of a domain. Domains are the highest building block in RIDDL and may be nested inside each other to form a hierarchy of domains. Generally, domains follow hierarchical organization structure but other taxonomies and ontologies may be modelled with domains too.
- loc
The location of the domain definition
- id
The name of the domain
- types
The types defined in the scope of the domain
- contexts
The contexts defined in the scope of the domain
- plants
The plants defined in the scope of the domain
- domains
Nested sub-domains within this domain
- terms
Definition of terms pertaining to this domain that provide explanation of concepts from the domain.
- brief
A brief description (one sentence) for use in documentation
- description
An optional description of the domain.
- Alphabetic
- By Inheritance
- Domain
- Serializable
- Product
- Equals
- WithAuthors
- WithTerms
- WithTypes
- WithIncludes
- DomainDefinition
- WithOptions
- Definition
- Container
- BrieflyDescribedValue
- DescribedValue
- RiddlValue
- RiddlNode
- TypeContainer
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new Domain(loc: Location, id: AST.Identifier, options: Seq[DomainOption] = Seq.empty[DomainOption], authors: Seq[AuthorInfo] = Seq.empty[AuthorInfo], types: Seq[Type] = Seq.empty[Type], contexts: Seq[Context] = Seq.empty[Context], plants: Seq[Plant] = Seq.empty[Plant], stories: Seq[Story] = Seq.empty[Story], domains: Seq[Domain] = Seq.empty[Domain], terms: Seq[Term] = Seq.empty[Term], includes: Seq[Include] = Seq.empty[Include], brief: Option[AST.LiteralString] = Option.empty[LiteralString], description: Option[AST.Description] = None)
- loc
The location of the domain definition
- id
The name of the domain
- types
The types defined in the scope of the domain
- contexts
The contexts defined in the scope of the domain
- plants
The plants defined in the scope of the domain
- domains
Nested sub-domains within this domain
- terms
Definition of terms pertaining to this domain that provide explanation of concepts from the domain.
- brief
A brief description (one sentence) for use in documentation
- description
An optional description of the domain.
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- val authors: Seq[AuthorInfo]
- Definition Classes
- Domain → WithAuthors
- val brief: Option[AST.LiteralString]
- Definition Classes
- Domain → BrieflyDescribedValue
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
- def collectMessages: Seq[Type]
- Definition Classes
- TypeContainer
- def containedDefinitions: Seq[AST.Definition]
- Definition Classes
- WithIncludes
- def contents: Seq[AST.DomainDefinition]
- val contexts: Seq[Context]
- val description: Option[AST.Description]
- Definition Classes
- Domain → DescribedValue
- val domains: Seq[Domain]
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def format: String
Format the node to a string
Format the node to a string
- Definition Classes
- WithOptions → RiddlNode
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def getOptionValue[OPT <: DomainOption](implicit arg0: ClassTag[OPT]): Option[Seq[AST.LiteralString]]
- Definition Classes
- WithOptions
- def hasAuthors: Boolean
- Definition Classes
- WithAuthors → Definition
- def hasOption[OPT <: DomainOption](implicit arg0: ClassTag[OPT]): Boolean
- Definition Classes
- WithOptions
- def hasOptions: Boolean
- Definition Classes
- WithOptions → Definition
- def hasTypes: Boolean
- Definition Classes
- WithTypes → Definition
- val id: AST.Identifier
- Definition Classes
- Domain → Definition
- def identify: String
- Definition Classes
- Definition
- def identifyWithLoc: String
- Definition Classes
- Definition
- val includes: Seq[Include]
- Definition Classes
- Domain → WithIncludes
- def isContainer: Boolean
Determine if this node is a container or not
- 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
- WithOptions → Container → RiddlNode
- def isImplicit: Boolean
- Definition Classes
- Definition
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isRootContainer: Boolean
- Definition Classes
- Container
- final val kind: String
- Definition Classes
- Domain → Definition
- def kindId: String
- Definition Classes
- Definition
- val loc: Location
The location in the parse at which this RiddlValue occurs
The location in the parse at which this RiddlValue occurs
- Definition Classes
- Domain → RiddlValue
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def nonEmpty: Boolean
- Definition Classes
- RiddlNode
- Annotations
- @deprecatedOverriding()
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- val options: Seq[DomainOption]
- Definition Classes
- Domain → WithOptions
- val plants: Seq[Plant]
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- val stories: Seq[Story]
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- val terms: Seq[Term]
- val types: Seq[Type]
- Definition Classes
- Domain → WithTypes → TypeContainer
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated