eu.cdevreeze.yaidom

Document

final class Document extends Immutable with Serializable

Document. Although at first sight the document root element seems to be the root node, this is not entirely true. For example, there may be comments at top level, outside the document root element.

The document is itself not a Node. This choice has the following advantages:

A Document is constructed from an optional URI, a document element (as Elem), top-level processing instructions, if any, and top-level comments, if any.

Note that class Document does not have any query methods for Elem instances. In particular, the ParentElemApi does not apply to documents. Therefore, given a document, querying for elements (other than the document element itself) always goes via the document element.

Annotations
@SerialVersionUID( 1L )
Linear Supertypes
Serializable, Serializable, Immutable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Document
  2. Serializable
  3. Serializable
  4. Immutable
  5. AnyRef
  6. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Document(uriOption: Option[URI], documentElement: Elem, processingInstructions: IndexedSeq[ProcessingInstruction], comments: IndexedSeq[Comment])

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. def allComments: IndexedSeq[Comment]

    Expensive method to obtain all comments, throughout the tree

  7. def allProcessingInstructions: IndexedSeq[ProcessingInstruction]

    Expensive method to obtain all processing instructions, throughout the tree

  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. def children: IndexedSeq[Node]

    Returns the immediate child nodes of the document.

    Returns the immediate child nodes of the document. That includes at least the document element, but top-level comments and processing instructions are also returned.

  10. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  11. val comments: IndexedSeq[Comment]

  12. val documentElement: Elem

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

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

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

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

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

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

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

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

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

    Definition Classes
    AnyRef
  22. val processingInstructions: IndexedSeq[ProcessingInstruction]

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

    Definition Classes
    AnyRef
  24. final def toString(): String

    Returns the tree representation string corresponding to this element, that is, toTreeRepr.

    Returns the tree representation string corresponding to this element, that is, toTreeRepr. Possibly expensive!

    Definition Classes
    Document → AnyRef → Any
  25. final def toTreeRepr(): String

  26. def topmostUpdated(pf: PartialFunction[Elem, Elem]): Document

    Returns withDocumentElement(this.documentElement.topmostUpdated(pf))

  27. def updated(pf: PartialFunction[Elem, Elem]): Document

    Returns withDocumentElement(this.documentElement.updated(pf))

  28. def updated(path: ElemPath, newElem: Elem): Document

    Returns updated(path) { e => newElem }

  29. def updated(path: ElemPath)(f: (Elem) ⇒ Elem): Document

    Returns withDocumentElement(this.documentElement.updated(path)(f)).

  30. val uriOption: Option[URI]

  31. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()
  34. def withDocumentElement(newRoot: Elem): Document

    Creates a copy, but with the new documentElement passed as parameter newRoot

  35. def withUriOption(newUriOption: Option[URI]): Document

    Creates a copy, but with the new uriOption passed as parameter newUriOption

Inherited from Serializable

Inherited from Serializable

Inherited from Immutable

Inherited from AnyRef

Inherited from Any

Ungrouped