Trait/Object

eu.cdevreeze.yaidom.queryapi

ElemTransformationLike

Related Docs: object ElemTransformationLike | package queryapi

Permalink

trait ElemTransformationLike extends ElemTransformationApi

This is the partially implemented element transformation API, as function API instead of OO API. That is, this is the function API corresponding to trait eu.cdevreeze.yaidom.queryapi.TransformableElemLike.

In other words, this trait has abstract methods transformChildElems and transformChildElemsToNodeSeq. Based on these abstract methods, this trait offers a rich API for transforming descendant elements or descendant-or-self elements.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ElemTransformationLike
  2. ElemTransformationApi
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. abstract type ElemType <: NodeType

    Permalink
  2. abstract type NodeType

    Permalink

Abstract Value Members

  1. abstract def transformChildElems(elem: ElemType, f: (ElemType) ⇒ ElemType): ElemType

    Permalink

    Returns the same element, except that child elements have been replaced by applying the given function.

    Returns the same element, except that child elements have been replaced by applying the given function. Non-element child nodes occur in the result element unaltered.

    Definition Classes
    ElemTransformationLikeElemTransformationApi
  2. abstract def transformChildElemsToNodeSeq(elem: ElemType, f: (ElemType) ⇒ IndexedSeq[NodeType]): ElemType

    Permalink

    Returns the same element, except that child elements have been replaced by applying the given function.

    Returns the same element, except that child elements have been replaced by applying the given function. Non-element child nodes occur in the result element unaltered.

    Definition Classes
    ElemTransformationLikeElemTransformationApi

Concrete 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. final def asInstanceOf[T0]: T0

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. final def getClass(): Class[_]

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

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

    Permalink
    Definition Classes
    Any
  12. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  15. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  16. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  17. final def transformElems(elem: ElemType, f: (ElemType) ⇒ ElemType): ElemType

    Permalink

    Transforms the element by applying the given function to all its descendant elements, in a bottom-up manner.

    Transforms the element by applying the given function to all its descendant elements, in a bottom-up manner.

    That is, returns the equivalent of:

    transformChildElems(elem, e => transformElemsOrSelf(e, f))
    Definition Classes
    ElemTransformationLikeElemTransformationApi
  18. final def transformElemsOrSelf(elem: ElemType, f: (ElemType) ⇒ ElemType): ElemType

    Permalink

    Transforms the element by applying the given function to all its descendant-or-self elements, in a bottom-up manner.

    Transforms the element by applying the given function to all its descendant-or-self elements, in a bottom-up manner.

    That is, returns the equivalent of:

    f(transformChildElems(elem, e => transformElemsOrSelf(e, f)))

    In other words, returns the equivalent of:

    f(transformElems(elem, f))
    Definition Classes
    ElemTransformationLikeElemTransformationApi
  19. final def transformElemsOrSelfToNodeSeq(elem: ElemType, f: (ElemType) ⇒ IndexedSeq[NodeType]): IndexedSeq[NodeType]

    Permalink

    Transforms each descendant element to a node sequence by applying the given function to all its descendant-or-self elements, in a bottom-up manner.

    Transforms each descendant element to a node sequence by applying the given function to all its descendant-or-self elements, in a bottom-up manner.

    That is, returns the equivalent of:

    f(transformChildElemsToNodeSeq(elem, e => transformElemsOrSelfToNodeSeq(e, f)))

    In other words, returns the equivalent of:

    f(transformElemsToNodeSeq(elem, f))
    Definition Classes
    ElemTransformationLikeElemTransformationApi
  20. final def transformElemsToNodeSeq(elem: ElemType, f: (ElemType) ⇒ IndexedSeq[NodeType]): ElemType

    Permalink

    Transforms each descendant element to a node sequence by applying the given function to all its descendant elements, in a bottom-up manner.

    Transforms each descendant element to a node sequence by applying the given function to all its descendant elements, in a bottom-up manner. The function is not applied to this element itself.

    That is, returns the equivalent of:

    transformChildElemsToNodeSeq(elem, e => transformElemsOrSelfToNodeSeq(e, f))

    It is equivalent to the following expression:

    transformElemsOrSelf(elem, { e => transformChildElemsToNodeSeq(e, f) })
    Definition Classes
    ElemTransformationLikeElemTransformationApi
  21. final def wait(): Unit

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

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

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

Inherited from ElemTransformationApi

Inherited from AnyRef

Inherited from Any

Ungrouped