Trait

eu.cdevreeze.yaidom.queryapi

UpdatableElemLike

Related Doc: package queryapi

Permalink

trait UpdatableElemLike[N, E <: N with UpdatableElemLike[N, E]] extends IsNavigable[E] with UpdatableElemApi[N, E]

API and implementation trait for functionally updatable elements. This trait extends trait eu.cdevreeze.yaidom.queryapi.IsNavigable, adding knowledge about child nodes in general, and about the correspondence between child path entries and child indexes.

More precisely, this trait adds the following abstract methods to the abstract methods required by its super-trait: children, withChildren and collectChildNodeIndexes. Based on these abstract methods (and the super-trait), this trait offers a rich API for functionally updating elements.

The purely abstract API offered by this trait is eu.cdevreeze.yaidom.queryapi.UpdatableElemApi. See the documentation of that trait for examples of usage, and for a more formal treatment.

N

The node supertype of the element subtype

E

The captured element subtype

Self Type
E
Linear Supertypes
UpdatableElemApi[N, E], IsNavigable[E], IsNavigableApi[E], AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. UpdatableElemLike
  2. UpdatableElemApi
  3. IsNavigable
  4. IsNavigableApi
  5. AnyRef
  6. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def children: IndexedSeq[N]

    Permalink

    Returns the child nodes of this element, in the correct order

    Returns the child nodes of this element, in the correct order

    Definition Classes
    UpdatableElemLikeUpdatableElemApi
  2. abstract def collectChildNodeIndexes(pathEntries: Set[Entry]): Map[Entry, Int]

    Permalink

    Filters the child elements with the given path entries, and returns a Map from the path entries of those filtered elements to the child node indexes.

    Filters the child elements with the given path entries, and returns a Map from the path entries of those filtered elements to the child node indexes. The result Map has no entries for path entries that cannot be resolved. This method should be fast, especially if the passed path entry set is small.

    Definition Classes
    UpdatableElemLikeUpdatableElemApi
  3. abstract def findAllChildElemsWithPathEntries: IndexedSeq[(E, Entry)]

    Permalink

    Returns all child elements paired with their path entries.

    Returns all child elements paired with their path entries.

    Definition Classes
    IsNavigableIsNavigableApi
  4. abstract def findChildElemByPathEntry(entry: Entry): Option[E]

    Permalink

    Finds the child element with the given Path.Entry (where this element is the root), if any, wrapped in an Option.

    Finds the child element with the given Path.Entry (where this element is the root), if any, wrapped in an Option.

    Typically this method must be very efficient, in order for methods like findElemOrSelfByPath to be efficient.

    Definition Classes
    IsNavigableIsNavigableApi
  5. abstract def withChildren(newChildren: IndexedSeq[N]): E

    Permalink

    Returns an element with the same name, attributes and scope as this element, but with the given child nodes

    Returns an element with the same name, attributes and scope as this element, but with the given child nodes

    Definition Classes
    UpdatableElemLikeUpdatableElemApi

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. final def childNodeIndex(pathEntry: Entry): Int

    Permalink

    Finds the child node index of the given path entry, or -1 if not found.

    Finds the child node index of the given path entry, or -1 if not found. More precisely, returns:

    collectChildNodeIndexes(Set(pathEntry)).getOrElse(pathEntry, -1)
    Definition Classes
    UpdatableElemLikeUpdatableElemApi
  6. def clone(): AnyRef

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

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. final def findElemOrSelfByPath(path: Path): Option[E]

    Permalink

    Finds the element with the given Path (where this element is the root), if any, wrapped in an Option.

    Finds the element with the given Path (where this element is the root), if any, wrapped in an Option.

    That is, returns:

    findReverseAncestryOrSelfByPath(path).map(_.last)

    Note that for each non-empty Path, we have:

    findElemOrSelfByPath(path) == findChildElemByPathEntry(path.firstEntry) flatMap (e => e.findElemOrSelfByPath(path.withoutFirstEntry))
    Definition Classes
    IsNavigableIsNavigableApi
  11. final def findReverseAncestryOrSelfByPath(path: Path): Option[IndexedSeq[E]]

    Permalink

    Finds the reversed ancestry-or-self of the element with the given Path (where this element is the root), wrapped in an Option.

    Finds the reversed ancestry-or-self of the element with the given Path (where this element is the root), wrapped in an Option. None is returned if no element can be found at the given Path.

    Hence, the resulting element collection, if any, starts with this element and ends with the element at the given Path, relative to this element.

    This method comes in handy for (efficiently) computing base URIs, where the (reverse) ancestry-or-self is needed as input.

    Definition Classes
    IsNavigableIsNavigableApi
  12. final def getChildElemByPathEntry(entry: Entry): E

    Permalink

    Returns (the equivalent of) findChildElemByPathEntry(entry).get

    Returns (the equivalent of) findChildElemByPathEntry(entry).get

    Definition Classes
    IsNavigableIsNavigableApi
  13. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  14. final def getElemOrSelfByPath(path: Path): E

    Permalink

    Returns (the equivalent of) findElemOrSelfByPath(path).get

    Returns (the equivalent of) findElemOrSelfByPath(path).get

    Definition Classes
    IsNavigableIsNavigableApi
  15. final def getReverseAncestryOrSelfByPath(path: Path): IndexedSeq[E]

    Permalink

    Returns (the equivalent of) findReverseAncestryOrSelfByPath(path).get

    Returns (the equivalent of) findReverseAncestryOrSelfByPath(path).get

    Definition Classes
    IsNavigableIsNavigableApi
  16. def hashCode(): Int

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

    Permalink
    Definition Classes
    Any
  18. final def minusChild(index: Int): E

    Permalink

    Returns a copy in which the child at the given position (0-based) has been removed.

    Returns a copy in which the child at the given position (0-based) has been removed. Throws an exception if index >= children.size.

    Definition Classes
    UpdatableElemLikeUpdatableElemApi
  19. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  22. final def plusChild(child: N): E

    Permalink

    Returns a copy in which the given child has been inserted at the end

    Returns a copy in which the given child has been inserted at the end

    Definition Classes
    UpdatableElemLikeUpdatableElemApi
  23. final def plusChild(index: Int, child: N): E

    Permalink

    Returns a copy in which the given child has been inserted at the given position (0-based).

    Returns a copy in which the given child has been inserted at the given position (0-based). If index == children.size, adds the element at the end. If index > children.size, throws an exception.

    Afterwards, the resulting element indeed has the given child at position index (0-based).

    Definition Classes
    UpdatableElemLikeUpdatableElemApi
  24. final def plusChildOption(childOption: Option[N]): E

    Permalink

    Returns a copy in which the given child, if any, has been inserted at the end.

    Returns a copy in which the given child, if any, has been inserted at the end. That is, returns plusChild(childOption.get) if the given optional child element is non-empty.

    Definition Classes
    UpdatableElemLikeUpdatableElemApi
  25. final def plusChildOption(index: Int, childOption: Option[N]): E

    Permalink

    Returns a copy in which the given child, if any, has been inserted at the given position (0-based).

    Returns a copy in which the given child, if any, has been inserted at the given position (0-based). That is, returns plusChild(index, childOption.get) if the given optional child element is non-empty.

    Definition Classes
    UpdatableElemLikeUpdatableElemApi
  26. final def plusChildren(childSeq: IndexedSeq[N]): E

    Permalink

    Returns a copy in which the given children have been inserted at the end

    Returns a copy in which the given children have been inserted at the end

    Definition Classes
    UpdatableElemLikeUpdatableElemApi
  27. final def synchronized[T0](arg0: ⇒ T0): T0

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

    Permalink
    Definition Classes
    AnyRef → Any
  29. final def updateChildElem(pathEntry: Entry, newElem: E): E

    Permalink

    Returns updateChildElem(pathEntry) { e => newElem }

    Returns updateChildElem(pathEntry) { e => newElem }

    Definition Classes
    UpdatableElemLikeUpdatableElemApi
  30. final def updateChildElem(pathEntry: Entry)(f: (E) ⇒ E): E

    Permalink

    Functionally updates the tree with this element as root element, by applying the passed function to the element that has the given eu.cdevreeze.yaidom.core.Path.Entry (compared to this element as root).

    Functionally updates the tree with this element as root element, by applying the passed function to the element that has the given eu.cdevreeze.yaidom.core.Path.Entry (compared to this element as root).

    It can be defined as follows:

    updateChildElems(Set(pathEntry)) { case (che, pe) => f(che) }
    Definition Classes
    UpdatableElemLikeUpdatableElemApi
  31. final def updateChildElemWithNodeSeq(pathEntry: Entry, newNodes: IndexedSeq[N]): E

    Permalink

    Returns updateChildElemWithNodeSeq(pathEntry) { e => newNodes }

    Returns updateChildElemWithNodeSeq(pathEntry) { e => newNodes }

    Definition Classes
    UpdatableElemLikeUpdatableElemApi
  32. final def updateChildElemWithNodeSeq(pathEntry: Entry)(f: (E) ⇒ IndexedSeq[N]): E

    Permalink

    Functionally updates the tree with this element as root element, by applying the passed function to the element that has the given eu.cdevreeze.yaidom.core.Path.Entry (compared to this element as root).

    Functionally updates the tree with this element as root element, by applying the passed function to the element that has the given eu.cdevreeze.yaidom.core.Path.Entry (compared to this element as root).

    It can be defined as follows:

    updateChildElemsWithNodeSeq(Set(pathEntry)) { case (che, pe) => f(che) }
    Definition Classes
    UpdatableElemLikeUpdatableElemApi
  33. final def updateChildElems(f: (E, Entry) ⇒ Option[E]): E

    Permalink

    Invokes updateChildElems, passing the path entries for which the passed function is defined.

    Invokes updateChildElems, passing the path entries for which the passed function is defined. It is equivalent to:

    val editsByPathEntries: Map[Path.Entry, E] =
      findAllChildElemsWithPathEntries.flatMap({ case (che, pe) => f(che, pe).map(newE => (pe, newE)) }).toMap
    
    updateChildElems(editsByPathEntries.keySet) { case (che, pe) => editsByPathEntries.getOrElse(pe, che) }
    Definition Classes
    UpdatableElemLikeUpdatableElemApi
  34. final def updateChildElems(pathEntries: Set[Entry])(f: (E, Entry) ⇒ E): E

    Permalink

    Updates the child elements with the given path entries, applying the passed update function.

    Updates the child elements with the given path entries, applying the passed update function.

    That is, returns the equivalent of:

    updateChildElemsWithNodeSeq(pathEntries) { case (che, pe) => Vector(f(che, pe)) }

    If the set of path entries is small, this method is rather efficient.

    Definition Classes
    UpdatableElemLikeUpdatableElemApi
  35. final def updateChildElemsWithNodeSeq(f: (E, Entry) ⇒ Option[IndexedSeq[N]]): E

    Permalink

    Invokes updateChildElemsWithNodeSeq, passing the path entries for which the passed function is defined.

    Invokes updateChildElemsWithNodeSeq, passing the path entries for which the passed function is defined. It is equivalent to:

    val editsByPathEntries: Map[Path.Entry, immutable.IndexedSeq[N]] =
      findAllChildElemsWithPathEntries.flatMap({ case (che, pe) => f(che, pe).map(newNodes => (pe, newNodes)) }).toMap
    
    updateChildElemsWithNodeSeq(editsByPathEntries.keySet) { case (che, pe) =>
      editsByPathEntries.getOrElse(pe, immutable.IndexedSeq(che))
    }
    Definition Classes
    UpdatableElemLikeUpdatableElemApi
  36. final def updateChildElemsWithNodeSeq(pathEntries: Set[Entry])(f: (E, Entry) ⇒ IndexedSeq[N]): E

    Permalink

    Updates the child elements with the given path entries, applying the passed update function.

    Updates the child elements with the given path entries, applying the passed update function. This is the core method of the update API, and the other methods have implementations that directly or indirectly depend on this method.

    That is, returns:

    if (pathEntries.isEmpty) self
    else {
      val indexesByPathEntries: Seq[(Path.Entry, Int)] =
        collectChildNodeIndexes(pathEntries).toSeq.sortBy(_._2)
    
      // Updating in reverse order of indexes, in order not to invalidate the path entries
      val newChildren = indexesByPathEntries.reverse.foldLeft(self.children) {
        case (accChildNodes, (pathEntry, idx)) =>
          val che = accChildNodes(idx).asInstanceOf[E]
          accChildNodes.patch(idx, f(che, pathEntry), 1)
      }
      self.withChildren(newChildren)
    }

    If the set of path entries is small, this method is rather efficient.

    Definition Classes
    UpdatableElemLikeUpdatableElemApi
  37. final def updateElemOrSelf(path: Path, newElem: E): E

    Permalink

    Returns updateElemOrSelf(path) { e => newElem }

    Returns updateElemOrSelf(path) { e => newElem }

    Definition Classes
    UpdatableElemLikeUpdatableElemApi
  38. final def updateElemOrSelf(path: Path)(f: (E) ⇒ E): E

    Permalink

    Functionally updates the tree with this element as root element, by applying the passed function to the element that has the given eu.cdevreeze.yaidom.core.Path (compared to this element as root).

    Functionally updates the tree with this element as root element, by applying the passed function to the element that has the given eu.cdevreeze.yaidom.core.Path (compared to this element as root).

    It can be defined as follows:

    updateElemsOrSelf(Set(path)) { case (e, path) => f(e) }
    Definition Classes
    UpdatableElemLikeUpdatableElemApi
  39. final def updateElemWithNodeSeq(path: Path, newNodes: IndexedSeq[N]): E

    Permalink

    Returns updateElemWithNodeSeq(path) { e => newNodes }

    Returns updateElemWithNodeSeq(path) { e => newNodes }

    Definition Classes
    UpdatableElemLikeUpdatableElemApi
  40. final def updateElemWithNodeSeq(path: Path)(f: (E) ⇒ IndexedSeq[N]): E

    Permalink

    Functionally updates the tree with this element as root element, by applying the passed function to the element that has the given eu.cdevreeze.yaidom.core.Path (compared to this element as root).

    Functionally updates the tree with this element as root element, by applying the passed function to the element that has the given eu.cdevreeze.yaidom.core.Path (compared to this element as root). If the given path is the root path, this element itself is returned unchanged.

    This function could be defined as follows:

    updateElemsWithNodeSeq(Set(path)) { case (e, path) => f(e) }
    Definition Classes
    UpdatableElemLikeUpdatableElemApi
  41. final def updateElems(paths: Set[Path])(f: (E, Path) ⇒ E): E

    Permalink

    Updates the descendant elements with the given paths, applying the passed update function.

    Updates the descendant elements with the given paths, applying the passed update function.

    That is, returns:

    val pathsByFirstEntry: Map[Path.Entry, Set[Path]] = paths.filterNot(_.isRoot).groupBy(_.firstEntry)
    
    updateChildElems(pathsByFirstEntry.keySet) {
      case (che, pathEntry) =>
        che.updateElemsOrSelf(pathsByFirstEntry(pathEntry).map(_.withoutFirstEntry)) {
          case (elm, path) =>
            f(elm, path.prepend(pathEntry))
        }
    }

    If the set of paths is small, this method is rather efficient.

    Definition Classes
    UpdatableElemLikeUpdatableElemApi
  42. final def updateElemsOrSelf(paths: Set[Path])(f: (E, Path) ⇒ E): E

    Permalink

    Updates the descendant-or-self elements with the given paths, applying the passed update function.

    Updates the descendant-or-self elements with the given paths, applying the passed update function.

    That is, returns:

    val pathsByFirstEntry: Map[Path.Entry, Set[Path]] = paths.filterNot(_.isRoot).groupBy(_.firstEntry)
    
    val descendantUpdateResult =
      updateChildElems(pathsByFirstEntry.keySet) {
        case (che, pathEntry) =>
          // Recursive (but non-tail-recursive) call
          che.updateElemsOrSelf(pathsByFirstEntry(pathEntry).map(_.withoutFirstEntry)) {
            case (elm, path) =>
              f(elm, path.prepend(pathEntry))
          }
      }
    
    if (paths.contains(Path.Root)) f(descendantUpdateResult, Path.Root) else descendantUpdateResult

    In other words, returns:

    val descendantUpdateResult = updateElems(paths)(f)
    if (paths.contains(Path.Root)) f(descendantUpdateResult, Path.Root) else descendantUpdateResult

    If the set of paths is small, this method is rather efficient.

    Definition Classes
    UpdatableElemLikeUpdatableElemApi
  43. final def updateElemsOrSelfWithNodeSeq(paths: Set[Path])(f: (E, Path) ⇒ IndexedSeq[N]): IndexedSeq[N]

    Permalink

    Updates the descendant-or-self elements with the given paths, applying the passed update function.

    Updates the descendant-or-self elements with the given paths, applying the passed update function.

    That is, returns:

    val pathsByFirstEntry: Map[Path.Entry, Set[Path]] = paths.filterNot(_.isRoot).groupBy(_.firstEntry)
    
    val descendantUpdateResult =
      updateChildElemsWithNodeSeq(pathsByFirstEntry.keySet) {
        case (che, pathEntry) =>
          // Recursive (but non-tail-recursive) call
          che.updateElemsOrSelfWithNodeSeq(pathsByFirstEntry(pathEntry).map(_.withoutFirstEntry)) {
            case (elm, path) =>
              f(elm, path.prepend(pathEntry))
          }
      }
    
    if (paths.contains(Path.Root)) f(descendantUpdateResult, Path.Root) else Vector(descendantUpdateResult)

    In other words, returns:

    val descendantUpdateResult = updateElemsWithNodeSeq(paths)(f)
    if (paths.contains(Path.Root)) f(descendantUpdateResult, Path.Root) else Vector(descendantUpdateResult)

    If the set of paths is small, this method is rather efficient.

    Definition Classes
    UpdatableElemLikeUpdatableElemApi
  44. final def updateElemsWithNodeSeq(paths: Set[Path])(f: (E, Path) ⇒ IndexedSeq[N]): E

    Permalink

    Updates the descendant elements with the given paths, applying the passed update function.

    Updates the descendant elements with the given paths, applying the passed update function.

    That is, returns:

    val pathsByFirstEntry: Map[Path.Entry, Set[Path]] = paths.filterNot(_.isRoot).groupBy(_.firstEntry)
    
    updateChildElemsWithNodeSeq(pathsByFirstEntry.keySet) {
      case (che, pathEntry) =>
        che.updateElemsOrSelfWithNodeSeq(pathsByFirstEntry(pathEntry).map(_.withoutFirstEntry)) {
          case (elm, path) =>
            f(elm, path.prepend(pathEntry))
        }
    }

    If the set of paths is small, this method is rather efficient.

    Definition Classes
    UpdatableElemLikeUpdatableElemApi
  45. final def updateTopmostElems(f: (E, Path) ⇒ Option[E]): E

    Permalink

    Invokes updateElems, passing the topmost non-empty paths for which the passed function is defined.

    Invokes updateElems, passing the topmost non-empty paths for which the passed function is defined. It is equivalent to:

    val mutableEditsByPaths = mutable.Map[Path, E]()
    
    val foundElems =
      ElemWithPath(self) findTopmostElems { elm =>
        val optResult = f(elm.elem, elm.path)
        if (optResult.isDefined) {
          mutableEditsByPaths += (elm.path -> optResult.get)
        }
        optResult.isDefined
      }
    
    val editsByPaths = mutableEditsByPaths.toMap
    
    updateElems(editsByPaths.keySet) {
      case (elm, path) => editsByPaths.getOrElse(path, elm)
    }
    Definition Classes
    UpdatableElemLikeUpdatableElemApi
  46. final def updateTopmostElemsOrSelf(f: (E, Path) ⇒ Option[E]): E

    Permalink

    Invokes updateElemsOrSelf, passing the topmost paths for which the passed function is defined.

    Invokes updateElemsOrSelf, passing the topmost paths for which the passed function is defined. It is equivalent to:

    val mutableEditsByPaths = mutable.Map[Path, E]()
    
    val foundElems =
      ElemWithPath(self) findTopmostElemsOrSelf { elm =>
        val optResult = f(elm.elem, elm.path)
        if (optResult.isDefined) {
          mutableEditsByPaths += (elm.path -> optResult.get)
        }
        optResult.isDefined
      }
    
    val editsByPaths = mutableEditsByPaths.toMap
    
    updateElemsOrSelf(editsByPaths.keySet) {
      case (elm, path) => editsByPaths.getOrElse(path, elm)
    }
    Definition Classes
    UpdatableElemLikeUpdatableElemApi
  47. final def updateTopmostElemsOrSelfWithNodeSeq(f: (E, Path) ⇒ Option[IndexedSeq[N]]): IndexedSeq[N]

    Permalink

    Invokes updateElemsOrSelfWithNodeSeq, passing the topmost paths for which the passed function is defined.

    Invokes updateElemsOrSelfWithNodeSeq, passing the topmost paths for which the passed function is defined. It is equivalent to:

    val mutableEditsByPaths = mutable.Map[Path, immutable.IndexedSeq[N]]()
    
    val foundElems =
      ElemWithPath(self) findTopmostElemsOrSelf { elm =>
        val optResult = f(elm.elem, elm.path)
        if (optResult.isDefined) {
          mutableEditsByPaths += (elm.path -> optResult.get)
        }
        optResult.isDefined
      }
    
    val editsByPaths = mutableEditsByPaths.toMap
    
    updateElemsOrSelfWithNodeSeq(editsByPaths.keySet) {
      case (elm, path) => editsByPaths.getOrElse(path, immutable.IndexedSeq(elm))
    }
    Definition Classes
    UpdatableElemLikeUpdatableElemApi
  48. final def updateTopmostElemsWithNodeSeq(f: (E, Path) ⇒ Option[IndexedSeq[N]]): E

    Permalink

    Invokes updateElemsWithNodeSeq, passing the topmost non-empty paths for which the passed function is defined.

    Invokes updateElemsWithNodeSeq, passing the topmost non-empty paths for which the passed function is defined. It is equivalent to:

    val mutableEditsByPaths = mutable.Map[Path, immutable.IndexedSeq[N]]()
    
    val foundElems =
      ElemWithPath(self) findTopmostElems { elm =>
        val optResult = f(elm.elem, elm.path)
        if (optResult.isDefined) {
          mutableEditsByPaths += (elm.path -> optResult.get)
        }
        optResult.isDefined
      }
    
    val editsByPaths = mutableEditsByPaths.toMap
    
    updateElemsWithNodeSeq(editsByPaths.keySet) {
      case (elm, path) => editsByPaths.getOrElse(path, immutable.IndexedSeq(elm))
    }
    Definition Classes
    UpdatableElemLikeUpdatableElemApi
  49. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  52. final def withChildSeqs(newChildSeqs: IndexedSeq[IndexedSeq[N]]): E

    Permalink

    Shorthand for withChildren(newChildSeqs.flatten)

    Shorthand for withChildren(newChildSeqs.flatten)

    Definition Classes
    UpdatableElemLikeUpdatableElemApi
  53. final def withPatchedChildren(from: Int, newChildren: IndexedSeq[N], replace: Int): E

    Permalink

    Shorthand for withChildren(children.patch(from, newChildren, replace))

    Shorthand for withChildren(children.patch(from, newChildren, replace))

    Definition Classes
    UpdatableElemLikeUpdatableElemApi
  54. final def withUpdatedChildren(index: Int, newChild: N): E

    Permalink

    Shorthand for withChildren(children.updated(index, newChild))

    Shorthand for withChildren(children.updated(index, newChild))

    Definition Classes
    UpdatableElemLikeUpdatableElemApi

Deprecated Value Members

  1. final def updated(path: Path, newElem: E): E

    Permalink
    Definition Classes
    UpdatableElemLikeUpdatableElemApi
    Annotations
    @deprecated
    Deprecated

    (Since version 1.5.0) Renamed to 'updateElemOrSelf'

  2. final def updated(path: Path)(f: (E) ⇒ E): E

    Permalink
    Definition Classes
    UpdatableElemLikeUpdatableElemApi
    Annotations
    @deprecated
    Deprecated

    (Since version 1.5.0) Renamed to 'updateElemOrSelf'

  3. final def updated(pathEntry: Entry)(f: (E) ⇒ E): E

    Permalink
    Definition Classes
    UpdatableElemLikeUpdatableElemApi
    Annotations
    @deprecated
    Deprecated

    (Since version 1.5.0) Renamed to 'updateChildElem'

  4. final def updatedAtPathEntries(pathEntries: Set[Entry])(f: (E, Entry) ⇒ E): E

    Permalink
    Definition Classes
    UpdatableElemLikeUpdatableElemApi
    Annotations
    @deprecated
    Deprecated

    (Since version 1.5.0) Renamed to 'updateChildElems'

  5. final def updatedAtPaths(paths: Set[Path])(f: (E, Path) ⇒ E): E

    Permalink
    Definition Classes
    UpdatableElemLikeUpdatableElemApi
    Annotations
    @deprecated
    Deprecated

    (Since version 1.5.0) Renamed to 'updateElemsOrSelf'

  6. final def updatedWithNodeSeq(path: Path, newNodes: IndexedSeq[N]): E

    Permalink
    Definition Classes
    UpdatableElemLikeUpdatableElemApi
    Annotations
    @deprecated
    Deprecated

    (Since version 1.5.0) Renamed to 'updateElemWithNodeSeq'

  7. final def updatedWithNodeSeq(path: Path)(f: (E) ⇒ IndexedSeq[N]): E

    Permalink
    Definition Classes
    UpdatableElemLikeUpdatableElemApi
    Annotations
    @deprecated
    Deprecated

    (Since version 1.5.0) Renamed to 'updateElemWithNodeSeq'

  8. final def updatedWithNodeSeqAtPathEntries(pathEntries: Set[Entry])(f: (E, Entry) ⇒ IndexedSeq[N]): E

    Permalink
    Definition Classes
    UpdatableElemLikeUpdatableElemApi
    Annotations
    @deprecated
    Deprecated

    (Since version 1.5.0) Renamed to 'updateChildElemsWithNodeSeq'

  9. final def updatedWithNodeSeqAtPaths(paths: Set[Path])(f: (E, Path) ⇒ IndexedSeq[N]): E

    Permalink
    Definition Classes
    UpdatableElemLikeUpdatableElemApi
    Annotations
    @deprecated
    Deprecated

    (Since version 1.5.0) Renamed to 'updateElemsWithNodeSeq'

Inherited from UpdatableElemApi[N, E]

Inherited from IsNavigable[E]

Inherited from IsNavigableApi[E]

Inherited from AnyRef

Inherited from Any

Ungrouped