sealed trait Node extends queryapi.ScopedNodes.Node 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.
- Alphabetic
- By Inheritance
- Node
- Serializable
- Node
- Node
- Node
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- 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, especially for large XML trees! Note that the
toString
method is often called implicitly, for example in logging statements. So, if thetoString
method is not used carefully, OutOfMemoryErrors may occur.- Definition Classes
- Node → AnyRef → Any
- final def toTreeRepr: String
Same as
toTreeRepr(emptyScope)
- final def toTreeRepr(parentScope: Scope): String
Returns the tree representation String, conforming to the tree representation DSL that creates
NodeBuilder
s.Returns the tree representation String, conforming to the tree representation DSL that creates
NodeBuilder
s. That is, it does not correspond to the tree representation DSL ofNode
s, but ofNodeBuilder
s!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 aNodeBuilder
, 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.
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()