NodeIDModule

org.finos.morphir.NodeIDModule
trait NodeIDModule

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait Names
object naming
Self type

Members list

Type members

Classlikes

trait HasId

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
object NodeID

Attributes

Companion
trait
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
NodeID.type
sealed trait NodeID extends Product, Serializable

Represents a path in the IR. ==Overview== A NodeID can have two slightly different structures depending on if we are refering to modules or definitions (types/values).

Represents a path in the IR. ==Overview== A NodeID can have two slightly different structures depending on if we are refering to modules or definitions (types/values).

  • When refefering to modules: "module:<Package>:<Module>"
  • When refering to definitions: "type\value:<Package>:<Module><localName>#<nodePath>", where nodePath is optional

Examples of valid NodeIDs:

  • "module:Morphir.Reference.Model:BooksAndRecords"
  • "type:Morphir.Reference.Model:BooksAndRecords:deal"
  • "value:Morphir.Reference.Model:BooksAndRecords:deal#1"

==Referring to modules== We can refer to modules by their Qualified Name, with the module: prefix

For example: "module:Morphir.Reference.Model:BooksAndRecords" refers to the Books and Records module inside the Morphir.Reference.Model package.

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Known subtypes
class ModuleID
class TypeID
class ValueID
Self type
sealed case class NodePath(steps: Vector[NodePathStep])

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type
object NodePath

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
NodePath.type
object NodePathStep

Attributes

Companion
trait
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
sealed trait NodePathStep

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Types

type NodeIDCompanion = NodeID.type