Packages

  • package root
    Definition Classes
    root
  • package eu
    Definition Classes
    root
  • package cdevreeze
    Definition Classes
    eu
  • package yaidom2

    Yaidom2 is yet another Scala XML query API.

    Yaidom2 is yet another Scala XML query API.

    Definition Classes
    cdevreeze
  • package dialect

    Support for "yaidom dialects", for example a "dialect" for XML Schema.

    Support for "yaidom dialects", for example a "dialect" for XML Schema. Such dialects offer a yaidom query API. They get an underlying element, which also offers a yaidom query API. Typically this yaidom query API (in both cases) is the backing element query API.

    The types in this package make creation of "dialects" a lot easier. They take an underlying element of the "raw" type, instead of requiring any type parameters. This makes it possible to decouple dialects entirely from the underlying element implementations!

    Using a dialect abstract element type as super-type, it is easy to implement type-safe query methods for the specific dialect.

    Definition Classes
    yaidom2
  • AbstractDialectBackingElem
  • AbstractDialectClarkElem
  • AbstractDialectScopedElem
t

eu.cdevreeze.yaidom2.dialect

AbstractDialectScopedElem

trait AbstractDialectScopedElem extends Elem

General partly implementation of "dialect Scoped elements". This makes implementing each dialect (as Scoped elements) a breeze.

In order to avoid type gymnastics, and to offer a simple API to extend in yaidom dialects, this class does not extend type AbstractDialectClarkElem. To the user of this API this does not matter.

In order for this type to be useful in dialect element implementations, wrapping an underlying element must be a very fast and non-recursive operation.

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AbstractDialectScopedElem
  2. Elem
  3. ScopedElemApi
  4. Elem
  5. ClarkElemApi
  6. ElemApi
  7. Elem
  8. CanBeDocumentChild
  9. CanBeDocumentChild
  10. CanBeDocumentChild
  11. Node
  12. Node
  13. Node
  14. AnyRef
  15. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. abstract type ThisElem <: Elem
    Definition Classes
    ElemScopedElemApiElemClarkElemApiElemApi
  2. abstract type ThisNode >: ThisElem <: Node
    Definition Classes
    ElemElem

Abstract Value Members

  1. abstract def children: ArraySeq[ThisNode]

    Returns all child nodes, of any kind of node (element node, text node etc.).

    Returns all child nodes, of any kind of node (element node, text node etc.).

    Definition Classes
    AbstractDialectScopedElemElem
  2. abstract def select(step: ElemStep[ThisElem]): Seq[ThisElem]

    Applies the given element step to this element.

    Applies the given element step to this element.

    Definition Classes
    AbstractDialectScopedElemElem
  3. abstract def underlyingElem: Elem

    Returns the underlying element.

    Returns the underlying element. This method must be very fast.

  4. abstract def wrapElem(underlyingElem: Elem): ThisElem

    Wraps un underlying element.

    Wraps un underlying element. This method must be very fast.

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. final def attr(attributeLocalName: String): String

    Gets an attribute that has no namespace by local name, throwing if no such attribute is found.

    Gets an attribute that has no namespace by local name, throwing if no such attribute is found.

    Definition Classes
    AbstractDialectScopedElemClarkElemApi
  6. final def attr(attributeNamespace: String, attributeLocalName: String): String
  7. final def attr(attributeNamespaceOption: Option[String], attributeLocalName: String): String
  8. final def attr(attributeName: EName): String
  9. final def attrAsQName(attributeNamespace: String, attributeLocalName: String): QName
  10. final def attrAsQName(attributeNamespaceOption: Option[String], attributeLocalName: String): QName
  11. final def attrAsQName(attributeName: EName): QName
  12. final def attrAsQNameOption(attributeNamespace: String, attributeLocalName: String): Option[QName]
  13. final def attrAsQNameOption(attributeNamespaceOption: Option[String], attributeLocalName: String): Option[QName]
  14. final def attrAsQNameOption(attributeName: EName): Option[QName]
  15. final def attrAsResolvedQName(attributeNamespace: String, attributeLocalName: String): EName
  16. final def attrAsResolvedQName(attributeNamespaceOption: Option[String], attributeLocalName: String): EName
  17. final def attrAsResolvedQName(attributeName: EName): EName
  18. final def attrAsResolvedQNameOption(attributeNamespace: String, attributeLocalName: String): Option[EName]
  19. final def attrAsResolvedQNameOption(attributeNamespaceOption: Option[String], attributeLocalName: String): Option[EName]
  20. final def attrAsResolvedQNameOption(attributeName: EName): Option[EName]
  21. final def attrOption(attributeLocalName: String): Option[String]

    Finds an attribute that has no namespace by local name, if any.

    Finds an attribute that has no namespace by local name, if any.

    Definition Classes
    AbstractDialectScopedElemClarkElemApi
  22. final def attrOption(attributeNamespace: String, attributeLocalName: String): Option[String]
  23. final def attrOption(attributeNamespaceOption: Option[String], attributeLocalName: String): Option[String]
  24. final def attrOption(attributeName: EName): Option[String]
  25. final def attributes: SeqMap[EName, String]
  26. final def attributesByQName: SeqMap[QName, String]
  27. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  28. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  29. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  30. final def filterChildElems(p: (ThisElem) => Boolean): Seq[ThisElem]
    Definition Classes
    AbstractDialectScopedElemElemApi
  31. final def filterDescendantElems(p: (ThisElem) => Boolean): Seq[ThisElem]
    Definition Classes
    AbstractDialectScopedElemElemApi
  32. final def filterDescendantElemsOrSelf(p: (ThisElem) => Boolean): Seq[ThisElem]
    Definition Classes
    AbstractDialectScopedElemElemApi
  33. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  34. final def findAllChildElems(): Seq[ThisElem]
    Definition Classes
    AbstractDialectScopedElemElemApi
  35. final def findAllDescendantElems(): Seq[ThisElem]
    Definition Classes
    AbstractDialectScopedElemElemApi
  36. final def findAllDescendantElemsOrSelf(): Seq[ThisElem]
    Definition Classes
    AbstractDialectScopedElemElemApi
  37. final def findChildElem(p: (ThisElem) => Boolean): Option[ThisElem]
    Definition Classes
    AbstractDialectScopedElemElemApi
  38. final def findDescendantElem(p: (ThisElem) => Boolean): Option[ThisElem]
    Definition Classes
    AbstractDialectScopedElemElemApi
  39. final def findDescendantElemOrSelf(navigationPath: Seq[Int]): Option[ThisElem]

    Returns the optional descendant-or-self element at the given navigation path.

    Returns the optional descendant-or-self element at the given navigation path. If the navigation path is Seq(3, 5, 0), the first navigation step is to the child element at (element) index 3, zero-based, the next navigation step is to its child element at zero-based (element) index 5, and the last navigation step is to the latter's child element at zero-based (element) index 0.

    If the navigation path is out of bounds in one of the steps, None is returned.

    Definition Classes
    AbstractDialectScopedElemElemApi
  40. final def findDescendantElemOrSelf(p: (ThisElem) => Boolean): Option[ThisElem]
    Definition Classes
    AbstractDialectScopedElemElemApi
  41. final def findTopmostElems(p: (ThisElem) => Boolean): Seq[ThisElem]
    Definition Classes
    AbstractDialectScopedElemElemApi
  42. final def findTopmostElemsOrSelf(p: (ThisElem) => Boolean): Seq[ThisElem]
    Definition Classes
    AbstractDialectScopedElemElemApi
  43. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  44. final def getDescendantElemOrSelf(navigationPath: Seq[Int]): ThisElem

    Returns the descendant-or-self element at the given navigation path.

    Returns the descendant-or-self element at the given navigation path. If the navigation path is Seq(3, 5, 0), the first navigation step is to the child element at (element) index 3, zero-based, the next navigation step is to its child element at zero-based (element) index 5, and the last navigation step is to the latter's child element at zero-based (element) index 0.

    If the navigation path is out of bounds in one of the steps, an exception is thrown.

    Definition Classes
    AbstractDialectScopedElemElemApi
  45. def hasNoPrefixedNamespaceUndeclarations: Boolean

    Returns true if the Scopes of the child elements are such that no (prefixed) namespace undeclarations are needed.

    Returns true if the Scopes of the child elements are such that no (prefixed) namespace undeclarations are needed. This is a requirement for namespaces in XML 1.0 (ignoring the default namespace), but not for namespaces in XML 1.1.

    Definition Classes
    Elem
  46. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  47. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  48. final def localName: String

    Returns the local name.

    Returns the local name. That is, returns the local part of the name of the element. This method must be fast in order to support fast local name queries.

    Definition Classes
    AbstractDialectScopedElemClarkElemApi
  49. final def name: EName
  50. final def namespaceAsString: String

    Returns the equivalent of namespaceOption.getOrElse("").

    Returns the equivalent of namespaceOption.getOrElse(""). This method must be fast in order to support fast namespace queries.

    Definition Classes
    AbstractDialectScopedElemClarkElemApi
  51. final def namespaceOption: Option[String]

    Returns the optional namespace.

    Returns the optional namespace. That is, returns the optional namespace of the name of the element. This method must be fast in order to support fast namespace queries.

    Definition Classes
    AbstractDialectScopedElemClarkElemApi
  52. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  53. final def nodeKind: NodeKind
    Definition Classes
    ElemNode
  54. final def normalizedText: String
  55. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  56. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  57. final def qname: QName
  58. final def scope: Scope
  59. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  60. final def text: String
  61. final def textAsQName: QName
  62. final def textAsResolvedQName: EName
  63. def toString(): String
    Definition Classes
    AnyRef → Any
  64. final def trimmedText: String
  65. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  66. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  67. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from Elem

Inherited from ScopedElemApi

Inherited from Elem

Inherited from ClarkElemApi

Inherited from ElemApi

Inherited from Elem

Inherited from CanBeDocumentChild

Inherited from CanBeDocumentChild

Inherited from CanBeDocumentChild

Inherited from Node

Inherited from Node

Inherited from Node

Inherited from AnyRef

Inherited from Any

Ungrouped