Invariant
com.reactific.riddl.language.AST.Invariant
case class Invariant(loc: At, id: Identifier, condition: Option[LiteralString], brief: Option[LiteralString], description: Option[Description]) extends LeafDefinition, ProcessorDefinition, StateDefinition
An invariant expression that can be used in the definition of an entity. Invariants provide conditional expressions that must be true at all times in the lifecycle of an entity.
Value parameters
- brief
-
A brief description (one sentence) for use in documentation
- condition
-
The string representation of the condition that ought to be true
- description
-
An optional description of the invariant.
- id
-
The name of the invariant
- loc
-
The location of the invariant definition
Attributes
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait StateDefinitiontrait ProcessorDefinitiontrait SagaDefinitiontrait StreamletDefinitiontrait RepositoryDefinitiontrait ProjectorDefinitiontrait EntityDefinitiontrait ContextDefinitiontrait ApplicationDefinitiontrait AdaptorDefinitiontrait LeafDefinitiontrait Definitiontrait Container[Definition]trait BrieflyDescribedValuetrait DescribedValuetrait RiddlValuetrait RiddlNodeclass Objecttrait Matchableclass AnyShow all
Members list
Value members
Concrete methods
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:
- Definition
Attributes
- Inherited from:
- BrieflyDescribedValue
Attributes
- Inherited from:
- LeafDefinition
Attributes
- Inherited from:
- DescribedValue
Attributes
- Inherited from:
- Definition
Attributes
- Inherited from:
- BrieflyDescribedValue
Attributes
- Definition Classes
- Inherited from:
- Definition
Attributes
- Inherited from:
- DescribedValue
Attributes
- Inherited from:
- Definition
Attributes
- Inherited from:
- Definition
Attributes
- Inherited from:
- Definition
Attributes
- Inherited from:
- Definition
Attributes
- Inherited from:
- Definition
Attributes
- Definition Classes
- Inherited from:
- Definition
Attributes
- Inherited from:
- Definition
Attributes
- Inherited from:
- Container
Attributes
- Inherited from:
- Definition
Attributes
- Inherited from:
- Product
Attributes
- Inherited from:
- Product
Attributes
- Inherited from:
- Definition
In this article