Path

org.finos.morphir.PathModule.Path$
See thePath companion class
object Path

Attributes

Companion
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Path.type

Members list

Type members

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def apply(first: String, rest: String*): Path
def apply(first: Name, rest: Name*): Path
def fromArray(names: Array[Name]): Path
def fromIterable(names: Iterable[Name]): Path
def fromList(names: List[Name]): Path
def fromList(names: Name*): Path
def fromString(str: String): Path

Translates a string into a path by splitting it into names along special characters. The algorithm will treat any non-word characters that are not spaces as a path separator.

Translates a string into a path by splitting it into names along special characters. The algorithm will treat any non-word characters that are not spaces as a path separator.

Attributes

def fromStrings(names: String*): Path
def fromVector(names: Vector[Name]): Path
def isPrefixOf(prefix: Path, path: Path): Boolean

Checks if the first provided path is a prefix of the second path

Checks if the first provided path is a prefix of the second path

Attributes

def toList(path: Path): List[Name]
def toString(f: Name => String, separator: String, path: Path): String

Concrete fields

val empty: Path
val root: Path
val separatorRegex: Regex