PathBuilder

final class PathBuilder(val entries: IndexedSeq[Entry])

Builder for Path instances.

Builder for Path instances.

For example:

val path: Path = PathBuilder.from(QName("parent") -> 0, QName("child") -> 2).build(Scope.Empty)

Note that the indexes are 0-based. Also note that the Scope passed to the build method must be invertible. Otherwise the resolution of QNames can break the indexes of the path builder components.

Authors

Chris de Vreeze

Companion
object
class Object
trait Matchable
class Any

Value members

Concrete methods

def append(entry: Entry): PathBuilder

Appends a given Entry to this PathBuilder

Appends a given Entry to this PathBuilder

def build(scope: Scope): Path

Builds the Path, using the passed Scope, which must be invertible

Builds the Path, using the passed Scope, which must be invertible

override def equals(obj: Any): Boolean
Definition Classes
Any
override def hashCode: Int
Definition Classes
Any
def isEmpty: Boolean

Returns true if this is the empty PathBuilder, so if it has no entries

Returns true if this is the empty PathBuilder, so if it has no entries

def nonEmpty: Boolean

Returns true if this is not the empty PathBuilder, so if it has at least one entry

Returns true if this is not the empty PathBuilder, so if it has at least one entry

def prepend(entry: Entry): PathBuilder

Prepends a given Entry to this PathBuilder

Prepends a given Entry to this PathBuilder

override def toString: String
Definition Classes
Any

Concrete fields

val entries: IndexedSeq[Entry]