Class/Object

eu.cdevreeze.yaidom.core

AbsolutePath

Related Docs: object AbsolutePath | package core

Permalink

final class AbsolutePath extends Immutable

Absolute path of a descendant (or self) Elem relative to and starting with a root Elem. It represents a unique absolute path to an element, given a root element, independent of other types of nodes, as if the XML tree only consists of elements.

Unlike Path objects, which are navigation paths and relative to some root element, absolute paths are absolute, containing the root element (as absolute path entry) as well. The absolute paths can never be empty (unlike navigation paths).

An eu.cdevreeze.yaidom.core.AbsolutePath corresponds to one and only one canonical path of the element, which is the corresponding (canonical) XPath expression. See http://ns.inria.org/active-tags/glossary/glossary.html#canonical-path. Note, however, that these XPath expression use URI qualified EQ-names rather than qualified names.

The toString format of absolute paths is the same as for the equally named class in Saxon. Note the Saxon absolute paths may be empty, whereas yaidom absolute paths can never be empty. After all, yaidom absolute paths can only be used for elements, not for documents.

Linear Supertypes
Immutable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AbsolutePath
  2. Immutable
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new AbsolutePath(entries: IndexedSeq[Entry])

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def ancestors: IndexedSeq[AbsolutePath]

    Permalink

    Returns the ancestors, starting with the parent (if any), and ending with a root absolute path

  5. def ancestorsOrSelf: IndexedSeq[AbsolutePath]

    Permalink

    Returns the ancestors-or-self, starting with this absolute path, then the parent (if any), and ending with a root absolute path.

  6. def append(entry: Entry): AbsolutePath

    Permalink

    Appends a given Entry to this AbsolutePath

  7. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  8. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. def containsName(ename: EName): Boolean

    Permalink

    Convenience method returning true if at least one entry has the given element name

  10. def elementName: EName

    Permalink

    Returns the element name (as EName) of the last absolute path entry

  11. val entries: IndexedSeq[Entry]

    Permalink
  12. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  13. def equals(obj: Any): Boolean

    Permalink
    Definition Classes
    AbsolutePath → AnyRef → Any
  14. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. def findAncestor(p: (AbsolutePath) ⇒ Boolean): Option[AbsolutePath]

    Permalink

    Returns ancestors.find(p)

  16. def findAncestorOrSelf(p: (AbsolutePath) ⇒ Boolean): Option[AbsolutePath]

    Permalink

    Returns ancestorsOrSelf.find(p)

  17. def firstEntry: Entry

    Permalink

    Returns the first entry

  18. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  19. def hashCode(): Int

    Permalink
    Definition Classes
    AbsolutePath → AnyRef → Any
  20. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  21. def isRoot: Boolean

    Permalink

    Returns true if this absolute path has precisely one entry

  22. def lastEntry: Entry

    Permalink

    Returns the last entry

  23. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  24. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  25. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  26. def parent: AbsolutePath

    Permalink

    Like parentOption, but unwrapping the result (or throwing an exception otherwise)

  27. def parentOption: Option[AbsolutePath]

    Permalink

    Gets the parent (if any, because a root path has no parent) wrapped in an Option.

  28. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  29. def toCanonicalXPath: String

    Permalink

    Returns the corresponding canonical XPath, replacing QNames by URI qualified EQ-names.

    Returns the corresponding canonical XPath, replacing QNames by URI qualified EQ-names.

    See http://ns.inria.org/active-tags/glossary/glossary.html#canonical-path for (real) canonical XPath.

    The XPath expressions returned by this method need no context to convey their semantics, unlike XPath expressions containing QNames (canonical or otherwise). This is an important advantage of these expressions, in spite of their relative verbosity. A good use case is error reporting about parts of XML documents. For example, Saxon-EE uses a similar notation for error reporting (in XML format) in its schema validator.

  30. def toString(): String

    Permalink

    Returns toCanonicalXPath

    Returns toCanonicalXPath

    Definition Classes
    AbsolutePath → AnyRef → Any
  31. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Immutable

Inherited from AnyRef

Inherited from Any

Ungrouped