eu.cdevreeze.yaidom.dom

DomElem

final class DomElem extends DomParentNode with ElemLike[DomElem] with HasParent[DomElem] with HasText

Self Type
DomElem
Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. DomElem
  2. HasText
  3. HasParent
  4. ElemLike
  5. ElemApi
  6. ParentElemLike
  7. ParentElemApi
  8. DomParentNode
  9. DomNode
  10. AnyRef
  11. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new DomElem(wrappedNode: Element)

Type Members

  1. type DomType = Element

    Definition Classes
    DomElemDomNode

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def \(expandedName: EName): IndexedSeq[DomElem]

    Shorthand for filterChildElems(expandedName).

    Shorthand for filterChildElems(expandedName).

    Definition Classes
    ElemLikeElemApi
  7. final def \(p: (DomElem) ⇒ Boolean): IndexedSeq[DomElem]

    Shorthand for filterChildElems(p).

    Shorthand for filterChildElems(p). Use this shorthand only if the predicate is a short expression.

    Definition Classes
    ParentElemLikeParentElemApi
  8. final def \@(expandedName: EName): Option[String]

    Shorthand for attributeOption(expandedName)

    Shorthand for attributeOption(expandedName)

    Definition Classes
    ElemLikeElemApi
  9. final def \\(expandedName: EName): IndexedSeq[DomElem]

    Shorthand for filterElemsOrSelf(expandedName).

    Shorthand for filterElemsOrSelf(expandedName).

    Definition Classes
    ElemLikeElemApi
  10. final def \\(p: (DomElem) ⇒ Boolean): IndexedSeq[DomElem]

    Shorthand for filterElemsOrSelf(p).

    Shorthand for filterElemsOrSelf(p). Use this shorthand only if the predicate is a short expression.

    Definition Classes
    ParentElemLikeParentElemApi
  11. final def \\!(expandedName: EName): IndexedSeq[DomElem]

    Shorthand for findTopmostElemsOrSelf(expandedName).

    Shorthand for findTopmostElemsOrSelf(expandedName).

    Definition Classes
    ElemLikeElemApi
  12. final def \\!(p: (DomElem) ⇒ Boolean): IndexedSeq[DomElem]

    Shorthand for findTopmostElemsOrSelf(p).

    Shorthand for findTopmostElemsOrSelf(p). Use this shorthand only if the predicate is a short expression.

    Definition Classes
    ParentElemLikeParentElemApi
  13. final def ancestors: IndexedSeq[DomElem]

    Returns ancestorsOrSelf.drop(1)

    Returns ancestorsOrSelf.drop(1)

    Definition Classes
    HasParent
  14. final def ancestorsOrSelf: IndexedSeq[DomElem]

    Returns all ancestor elements or self

    Returns all ancestor elements or self

    Definition Classes
    HasParent
  15. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  16. final def attribute(expandedName: EName): String

    Returns the value of the attribute with the given expanded name, and throws an exception otherwise

    Returns the value of the attribute with the given expanded name, and throws an exception otherwise

    Definition Classes
    ElemLikeElemApi
  17. final def attributeOption(expandedName: EName): Option[String]

    Returns the value of the attribute with the given expanded name, if any, wrapped in an Option

    Returns the value of the attribute with the given expanded name, if any, wrapped in an Option

    Definition Classes
    ElemLikeElemApi
  18. def attributeScope: Scope

    The attribute Scope, which is the same Scope but without the default namespace (which is not used for attributes)

  19. def attributes: IndexedSeq[(QName, String)]

  20. final def children: IndexedSeq[DomNode]

    Definition Classes
    DomParentNode
  21. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  22. def commentChildren: IndexedSeq[DomComment]

    Returns the comment children

  23. def declarations: Declarations

  24. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  25. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  26. final def filterChildElems(expandedName: EName): IndexedSeq[DomElem]

    Returns the child elements with the given expanded name

    Returns the child elements with the given expanded name

    Definition Classes
    ElemLikeElemApi
  27. final def filterChildElems(p: (DomElem) ⇒ Boolean): IndexedSeq[DomElem]

    Core method that returns the child elements obeying the given predicate.

    Core method that returns the child elements obeying the given predicate. This method could be defined as:

    def filterChildElems(p: E => Boolean): immutable.IndexedSeq[E] =
    this.findAllChildElems.filter(p)
    Definition Classes
    ParentElemLikeParentElemApi
  28. final def filterElems(expandedName: EName): IndexedSeq[DomElem]

    Returns the descendant elements with the given expanded name

    Returns the descendant elements with the given expanded name

    Definition Classes
    ElemLikeElemApi
  29. final def filterElems(p: (DomElem) ⇒ Boolean): IndexedSeq[DomElem]

    Returns the descendant elements obeying the given predicate.

    Returns the descendant elements obeying the given predicate. This method could be defined as:

    this.findAllChildElems flatMap (_.filterElemsOrSelf(p))
    Definition Classes
    ParentElemLikeParentElemApi
  30. final def filterElemsOrSelf(expandedName: EName): IndexedSeq[DomElem]

    Returns the descendant-or-self elements that have the given expanded name

    Returns the descendant-or-self elements that have the given expanded name

    Definition Classes
    ElemLikeElemApi
  31. final def filterElemsOrSelf(p: (DomElem) ⇒ Boolean): IndexedSeq[DomElem]

    Core method that returns the descendant-or-self elements obeying the given predicate.

    Core method that returns the descendant-or-self elements obeying the given predicate. This method could be defined as:

    def filterElemsOrSelf(p: E => Boolean): immutable.IndexedSeq[E] =
    Vector(this).filter(p) ++ (this.findAllChildElems flatMap (_.filterElemsOrSelf(p)))

    It can be proven that the result is equivalent to findAllElemsOrSelf filter p.

    Definition Classes
    ParentElemLikeParentElemApi
  32. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  33. def findAllChildElems: IndexedSeq[DomElem]

    Returns the element children

    Returns the element children

    Definition Classes
    DomElemParentElemLikeParentElemApi
  34. final def findAllElems: IndexedSeq[DomElem]

    Returns all descendant elements (not including this element).

    Returns all descendant elements (not including this element). This method could be defined as filterElems { e => true }. Equivalent to findAllElemsOrSelf.drop(1).

    Definition Classes
    ParentElemLikeParentElemApi
  35. final def findAllElemsOrSelf: IndexedSeq[DomElem]

    Returns this element followed by all descendant elements (that is, the descendant-or-self elements).

    Returns this element followed by all descendant elements (that is, the descendant-or-self elements). This method could be defined as filterElemsOrSelf { e => true }.

    Definition Classes
    ParentElemLikeParentElemApi
  36. final def findAncestor(p: (DomElem) ⇒ Boolean): Option[DomElem]

    Returns the first found ancestor element obeying the given predicate, if any, wrapped in an Option

    Returns the first found ancestor element obeying the given predicate, if any, wrapped in an Option

    Definition Classes
    HasParent
  37. final def findAncestorOrSelf(p: (DomElem) ⇒ Boolean): Option[DomElem]

    Returns the first found ancestor-or-self element obeying the given predicate, if any, wrapped in an Option

    Returns the first found ancestor-or-self element obeying the given predicate, if any, wrapped in an Option

    Definition Classes
    HasParent
    Annotations
    @tailrec()
  38. final def findAttributeByLocalName(localName: String): Option[String]

    Returns the first found attribute value of an attribute with the given local name, if any, wrapped in an Option.

    Returns the first found attribute value of an attribute with the given local name, if any, wrapped in an Option. Because of differing namespaces, it is possible that more than one such attribute exists, although this is not often the case.

    Definition Classes
    ElemLikeElemApi
  39. final def findChildElem(expandedName: EName): Option[DomElem]

    Returns the first found child element with the given expanded name, if any, wrapped in an Option

    Returns the first found child element with the given expanded name, if any, wrapped in an Option

    Definition Classes
    ElemLikeElemApi
  40. final def findChildElem(p: (DomElem) ⇒ Boolean): Option[DomElem]

    Returns the first found child element obeying the given predicate, if any, wrapped in an Option.

    Returns the first found child element obeying the given predicate, if any, wrapped in an Option. This method could be defined as filterChildElems(p).headOption.

    Definition Classes
    ParentElemLikeParentElemApi
  41. final def findElem(expandedName: EName): Option[DomElem]

    Returns the first found (topmost) descendant element with the given expanded name, if any, wrapped in an Option

    Returns the first found (topmost) descendant element with the given expanded name, if any, wrapped in an Option

    Definition Classes
    ElemLikeElemApi
  42. final def findElem(p: (DomElem) ⇒ Boolean): Option[DomElem]

    Returns the first found (topmost) descendant element obeying the given predicate, if any, wrapped in an Option.

    Returns the first found (topmost) descendant element obeying the given predicate, if any, wrapped in an Option. This method could be defined as filterElems(p).headOption.

    Definition Classes
    ParentElemLikeParentElemApi
  43. final def findElemOrSelf(expandedName: EName): Option[DomElem]

    Returns the first found (topmost) descendant-or-self element with the given expanded name, if any, wrapped in an Option

    Returns the first found (topmost) descendant-or-self element with the given expanded name, if any, wrapped in an Option

    Definition Classes
    ElemLikeElemApi
  44. final def findElemOrSelf(p: (DomElem) ⇒ Boolean): Option[DomElem]

    Returns the first found (topmost) descendant-or-self element obeying the given predicate, if any, wrapped in an Option.

    Returns the first found (topmost) descendant-or-self element obeying the given predicate, if any, wrapped in an Option. This method could be defined as filterElemsOrSelf(p).headOption.

    Definition Classes
    ParentElemLikeParentElemApi
  45. final def findTopmostElems(expandedName: EName): IndexedSeq[DomElem]

    Returns the descendant elements with the given expanded name that have no ancestor with the same name

    Returns the descendant elements with the given expanded name that have no ancestor with the same name

    Definition Classes
    ElemLikeElemApi
  46. final def findTopmostElems(p: (DomElem) ⇒ Boolean): IndexedSeq[DomElem]

    Returns the descendant elements obeying the given predicate that have no ancestor obeying the predicate.

    Returns the descendant elements obeying the given predicate that have no ancestor obeying the predicate. This method could be defined as:

    this.findAllChildElems flatMap (_.findTopmostElemsOrSelf(p))
    Definition Classes
    ParentElemLikeParentElemApi
  47. final def findTopmostElemsOrSelf(expandedName: EName): IndexedSeq[DomElem]

    Returns the descendant-or-self elements with the given expanded name that have no ancestor with the same name

    Returns the descendant-or-self elements with the given expanded name that have no ancestor with the same name

    Definition Classes
    ElemLikeElemApi
  48. final def findTopmostElemsOrSelf(p: (DomElem) ⇒ Boolean): IndexedSeq[DomElem]

    Core method that returns the descendant-or-self elements obeying the given predicate, such that no ancestor obeys the predicate.

    Core method that returns the descendant-or-self elements obeying the given predicate, such that no ancestor obeys the predicate. This method could be defined as:

    def findTopmostElemsOrSelf(p: E => Boolean): immutable.IndexedSeq[E] =
    if (p(this)) Vector(this)
    else (this.findAllChildElems flatMap (_.findTopmostElemsOrSelf(p)))
    Definition Classes
    ParentElemLikeParentElemApi
  49. final def getChildElem(expandedName: EName): DomElem

    Returns the single child element with the given expanded name, and throws an exception otherwise

    Returns the single child element with the given expanded name, and throws an exception otherwise

    Definition Classes
    ElemLikeElemApi
  50. final def getChildElem(p: (DomElem) ⇒ Boolean): DomElem

    Returns the single child element obeying the given predicate, and throws an exception otherwise.

    Returns the single child element obeying the given predicate, and throws an exception otherwise. This method could be defined as findChildElem(p).get.

    Definition Classes
    ParentElemLikeParentElemApi
  51. final def getClass(): Class[_]

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

    Definition Classes
    AnyRef → Any
  53. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  54. final def localName: String

    The local name (or local part).

    The local name (or local part). Convenience method.

    Definition Classes
    ElemLikeElemApi
  55. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  56. final def normalizedText: String

    Returns XmlStringUtils.normalizeString(text).

    Returns XmlStringUtils.normalizeString(text).

    Definition Classes
    HasText
  57. final def notify(): Unit

    Definition Classes
    AnyRef
  58. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  59. final def parent: DomElem

    Returns the equivalent parentOption.get, throwing an exception if this is the root element

    Returns the equivalent parentOption.get, throwing an exception if this is the root element

    Definition Classes
    HasParent
  60. def parentOption: Option[DomElem]

    Returns the parent element, if any, wrapped in an Option

    Returns the parent element, if any, wrapped in an Option

    Definition Classes
    DomElemHasParent
  61. def qname: QName

  62. def resolvedAttributes: IndexedSeq[(EName, String)]

    The attributes as an ordered mapping from ENames (instead of QNames) to values, obtained by resolving attribute QNames against the attribute scope

    The attributes as an ordered mapping from ENames (instead of QNames) to values, obtained by resolving attribute QNames against the attribute scope

    Definition Classes
    DomElemElemLikeElemApi
  63. def resolvedName: EName

    Resolved name of the element, as EName

    Resolved name of the element, as EName

    Definition Classes
    DomElemElemLikeElemApi
  64. def scope: Scope

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

    Definition Classes
    AnyRef
  66. def text: String

    Returns the concatenation of the texts of text children, including whitespace and CData.

    Returns the concatenation of the texts of text children, including whitespace and CData. Non-text children are ignored. If there are no text children, the empty string is returned.

    Definition Classes
    DomElemHasText
  67. def textChildren: IndexedSeq[DomText]

    Returns the text children

  68. final def toString(): String

    Definition Classes
    DomNode → AnyRef → Any
  69. final def trimmedText: String

    Returns text.trim.

    Returns text.trim.

    Definition Classes
    HasText
  70. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()
  73. val wrappedNode: Element

    Definition Classes
    DomElemDomNode

Inherited from HasText

Inherited from HasParent[DomElem]

Inherited from ElemLike[DomElem]

Inherited from ElemApi[DomElem]

Inherited from ParentElemLike[DomElem]

Inherited from ParentElemApi[DomElem]

Inherited from DomParentNode

Inherited from DomNode

Inherited from AnyRef

Inherited from Any

Ungrouped