Trait/Object

eu.cdevreeze.yaidom.simple

Node

Related Docs: object Node | package simple

Permalink

sealed trait Node extends resolved.ResolvedNodes.Node with Immutable with Serializable

Immutable XML Node. It is the default XML node type in yaidom. There are subclasses for different types of nodes, such as elements, text nodes, comments, entity references and processing instructions. See eu.cdevreeze.yaidom.simple.Elem for the default element type in yaidom.

Linear Supertypes
Serializable, Serializable, Immutable, resolved.ResolvedNodes.Node, queryapi.Nodes.Node, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Node
  2. Serializable
  3. Serializable
  4. Immutable
  5. Node
  6. Node
  7. AnyRef
  8. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

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. final def toString(): String

    Permalink

    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, especially for large XML trees! Note that the toString method is often called implicitly, for example in logging statements. So, if the toString method is not used carefully, OutOfMemoryErrors may occur.

    Definition Classes
    Node → AnyRef → Any
  17. final def toTreeRepr: String

    Permalink

    Same as toTreeRepr(emptyScope)

  18. final def toTreeRepr(parentScope: Scope): String

    Permalink

    Returns the tree representation String, conforming to the tree representation DSL that creates NodeBuilders.

    Returns the tree representation String, conforming to the tree representation DSL that creates NodeBuilders. That is, it does not correspond to the tree representation DSL of Nodes, but of NodeBuilders!

    There are a couple of advantages of this method compared to some "toXmlString" method which returns the XML string:

    • The parsed XML tree is made explicit, which makes debugging far easier, especially since method toString invokes this method
    • The output of method toTreeRepr clearly corresponds to a NodeBuilder, and can indeed be parsed into one
    • That toTreeRepr output is even valid Scala code
    • When parsing the string into a NodeBuilder, the following is out of scope: character escaping (for XML), entity resolving, "ignorable" whitespace handling, etc.
  19. final def wait(): Unit

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

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

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

Inherited from Serializable

Inherited from Serializable

Inherited from Immutable

Inherited from queryapi.Nodes.Node

Inherited from AnyRef

Inherited from Any

Ungrouped