in scala/xml
class NodeBuffer

class NodeBuffer()
extends ArrayBuffer[Node]
with ScalaObject

this class acts as a Buffer for nodes. If it is used as a sequence of nodes Seq[Node], it must be ensured that no updates occur after that point, because scala.xml.Node is assumed to be immutable.

Method Summary
override def +(n: Node): NodeBuffer
     append a single node to this buffer, returns reference on this NodeBuffer for convenience.
  def +(ns: Seq[Node]): NodeBuffer
     append a sequence of nodes to this buffer, returns reference on this NodeBuffer for convenience.
  def +(t: String): NodeBuffer
     append given string as a scala.xml.Text node to this buffer, returns reference on this NodeBuffer for convenience.

Methods inherited from java/lang/Object-class
eq, finalize, getClass, notify, notifyAll, synchronized, wait, wait, wait

Methods inherited from scala/Any-class
!=, ==, asInstanceOf, isInstanceOf, match

Methods inherited from scala/Iterable-class
/:, :\, exists, find, foldLeft, foldRight, forall, foreach, sameElements

Methods inherited from scala/Seq-class
copyToArray, drop, indexOf, isDefinedAt, lastIndexOf, subseq, take, toList, toString

Methods inherited from scala/collection/mutable/ArrayBuffer-class
++, ++:, +:, apply, clear, clone, equals, insertAll, remove, stringPrefix, update

Methods inherited from scala/collection/mutable/Buffer-class
++, ++=, ++=, +=, <<, append, appendAll, hashCode, insert, prepend, prependAll, trimEnd, trimStart

Methods inherited from scala/collection/mutable/ResizableArray-class
array, copy, elements, ensureSize, initialSize, length, size, swap

Method Detail

+

  override def +(n: Node): NodeBuffer
append a single node to this buffer, returns reference on this NodeBuffer for convenience.

+

  def +(ns: Seq[Node]): NodeBuffer
append a sequence of nodes to this buffer, returns reference on this NodeBuffer for convenience.

+

  def +(t: String): NodeBuffer
append given string as a scala.xml.Text node to this buffer, returns reference on this NodeBuffer for convenience.