WithOptions

com.reactific.riddl.language.ast.Options.WithOptions
trait WithOptions[T <: OptionValue] extends Definition

Base trait that can be used in any definition that takes options and ensures the options are defined, can be queried, and formatted.

Type parameters

T

The sealed base trait of the permitted options for this definition

Attributes

Graph
Supertypes
trait Definition
trait RiddlValue
trait RiddlNode
class Object
trait Matchable
class Any
Show all
Known subtypes
class Connector
trait VitalDefinition[OPT, DEF]
class Domain
class Epic
class Function
trait Processor[OPT, DEF]
class Adaptor
class Application
class Context
class Entity
class Projector
class Repository
class Streamlet
class Saga
Show all

Members list

Value members

Abstract methods

def options: Seq[T]

Concrete methods

override def format: String

Format the node to a string

Format the node to a string

Attributes

Definition Classes
def hasOption[OPT <: T : ClassTag]: Boolean
override def hasOptions: Boolean

Attributes

Definition Classes
override def isEmpty: Boolean

determine if this node is empty or not.

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

Attributes

Definition Classes

Inherited methods

Attributes

Inherited from:
BrieflyDescribedValue

Attributes

Inherited from:
BrieflyDescribedValue
def contents: Seq[D]

Attributes

Inherited from:
Container

Attributes

Inherited from:
DescribedValue

Attributes

Inherited from:
DescribedValue

Attributes

Inherited from:
Definition
override def hasDefinitions: Boolean

Attributes

Definition Classes
Inherited from:
Definition

Attributes

Inherited from:
Definition
def id: Identifier

Attributes

Inherited from:
Definition

Attributes

Inherited from:
Definition

Attributes

Inherited from:
Definition
override def isContainer: Boolean

Determine if this node is a container or not

Determine if this node is a container or not

Attributes

Definition Classes
Inherited from:
Container
override def isDefinition: Boolean

Attributes

Definition Classes
Inherited from:
Definition

Attributes

Inherited from:
Definition

Attributes

Inherited from:
Container

Attributes

Inherited from:
Definition
def kind: String

Attributes

Inherited from:
Definition
def loc: At

The location in the parse at which this RiddlValue occurs

The location in the parse at which this RiddlValue occurs

Attributes

Inherited from:
RiddlValue
final def nonEmpty: Boolean

Attributes

Inherited from:
RiddlNode

Attributes

Inherited from:
Definition