Packages

sealed trait XmlNode extends Xml

Linear Supertypes
Xml, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. XmlNode
  2. Xml
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. abstract type Self <: XmlNode

Abstract Value Members

  1. abstract def attributes: List[XmlAttribute]

    Get the node label value

    Get the node label value

    <Foo a="1" b="2" ></Foo> //a="1" b="2"
    returns

    list of node attributes

  2. abstract def content: NodeContent

    Return the node content which can be:

    Return the node content which can be:

    If you need a specific kind of content please use either XmlNode.text, XmlNode.isEmpty or XmlNode.children instead

    returns

    Node content instance

  3. abstract def duplicate: XmlNode

    Create a new immutable instance with the same values of the current one

    Create a new immutable instance with the same values of the current one

    returns

    A new instance with the same values of the current one

    Definition Classes
    XmlNodeXml
  4. abstract def label: String

    Get the node label value

    Get the node label value

    <Foo></Foo> //foo
    returns

    node label string

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asAttribute: Option[XmlAttribute]
    Definition Classes
    Xml
  5. final def asData: Option[XmlData]
    Definition Classes
    Xml
  6. final def asGroup: Option[XmlNode.Group]
    Definition Classes
    Xml
  7. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  8. final def asNode: Option[Node]
    Definition Classes
    Xml
  9. def children: Seq[XmlNode]
  10. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  11. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. def equals(obj: Any): Boolean
    Definition Classes
    Xml → AnyRef → Any
  13. def fold[T](ifNode: (Node) => T, ifGroup: (XmlNode.Group) => T): T

    T

    result type parameter

    ifNode

    Function invoked when the current node is of type Node

    ifGroup

    Function invoked when the current node is of type Group

    returns

    T value

  14. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  15. def hasAllAttributes(keyValue: (String, String), keyValues: (String, String)*): Boolean
  16. def hasAllAttributes(value: (XmlAttribute) => Boolean, values: (XmlAttribute) => Boolean*): Boolean
  17. def hasAllAttributesKeys(key: String, keys: String*): Boolean
  18. def hasAllAttributesKeys(key: (String) => Boolean, keys: (String) => Boolean*): Boolean
  19. def hasChild(label: String, predicate: (XmlNode) => Boolean = _ => true): Boolean

    Check if the node has a child with the specified label which satisfies the specified predicate.

    Check if the node has a child with the specified label which satisfies the specified predicate.

    returns

    true if the node has a child with specified label which satisfies the predicate, false otherwise

  20. def hasChildren: Boolean

    Check if the node has children

    Check if the node has children

    returns

    true if the node has children, false otherwise

  21. def hasText: Boolean

    Check is the node has text

    Check is the node has text

    returns

    true if the node has text content, false otherwise. Always false if node is XmlNode.Group

  22. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  23. final lazy val isAttribute: Boolean
    Definition Classes
    Xml
  24. final lazy val isData: Boolean
    Definition Classes
    Xml
  25. def isEmpty: Boolean

    Check if the node has empty content

    Check if the node has empty content

    returns

    true if node content is empty, false otherwise

  26. lazy val isGroup: Boolean

    Check if the node is a group

    Check if the node is a group

    returns

    true if node is a group, false otherwise

  27. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  28. final lazy val isNode: Boolean
    Definition Classes
    Xml
  29. final lazy val isNull: Boolean
    Definition Classes
    Xml
  30. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  31. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  32. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  33. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  34. def text: Option[XmlData]

    Get node text data

    Get node text data

    returns

    Node text if the content contains text. Always None if node is XmlNode.Group

  35. def textString: String

    Get node text as string

    Get node text as string

    returns

    Node text if the content contains text. Always None if node is XmlNode.Group

  36. final def toGroup: XmlNode.Group

    Convert the node to a group.

    Convert the node to a group. If this instance already is a group it will be returned the same instance.

  37. final def toString(): String
    Definition Classes
    Xml → AnyRef → Any
  38. def unsafeNarrowGroup: XmlNode.Group
    Annotations
    @impure()
  39. def unsafeNarrowNode: Node
    Annotations
    @impure()
  40. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  41. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  42. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from Xml

Inherited from AnyRef

Inherited from Any

Ungrouped