Packages

final class Group extends XmlNode

Class that represent a group of nodes without a container node.

You can convert a Group into Node using XmlNodeGroup.toNode method.

<Foo a="1">
<Foo a="2">
<Foo a="3">
Linear Supertypes
XmlNode, Xml, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Group
  2. XmlNode
  3. Xml
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. type Self = Group
    Definition Classes
    GroupXmlNode

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[Group]
    Definition Classes
    Xml
  7. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  8. final def asNode: Option[Node]
    Definition Classes
    Xml
  9. val 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

    Definition Classes
    GroupXmlNode
  10. def children: Seq[XmlNode]
    Definition Classes
    XmlNode
  11. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  12. 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

    Definition Classes
    GroupXmlNode
  13. def duplicate: Group

    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
    GroupXmlNodeXml
  14. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. def equals(obj: Any): Boolean
    Definition Classes
    Xml → AnyRef → Any
  16. def fold[T](ifNode: (Node) => T, ifGroup: (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

    Definition Classes
    XmlNode
  17. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  18. def hasAllAttributes(keyValue: (String, String), keyValues: (String, String)*): Boolean
    Definition Classes
    XmlNode
  19. def hasAllAttributes(value: (XmlAttribute) => Boolean, values: (XmlAttribute) => Boolean*): Boolean
    Definition Classes
    XmlNode
  20. def hasAllAttributesKeys(key: String, keys: String*): Boolean
    Definition Classes
    XmlNode
  21. def hasAllAttributesKeys(key: (String) => Boolean, keys: (String) => Boolean*): Boolean
    Definition Classes
    XmlNode
  22. 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

    Definition Classes
    XmlNode
  23. def hasChildren: Boolean

    Check if the node has children

    Check if the node has children

    returns

    true if the node has children, false otherwise

    Definition Classes
    XmlNode
  24. 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

    Definition Classes
    XmlNode
  25. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  26. final lazy val isAttribute: Boolean
    Definition Classes
    Xml
  27. final lazy val isData: Boolean
    Definition Classes
    Xml
  28. 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

    Definition Classes
    XmlNode
  29. 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

    Definition Classes
    XmlNode
  30. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  31. final lazy val isNode: Boolean
    Definition Classes
    Xml
  32. final lazy val isNull: Boolean
    Definition Classes
    Xml
  33. val label: String

    Get the node label value

    Get the node label value

    <Foo></Foo> //foo
    returns

    node label string

    Definition Classes
    GroupXmlNode
  34. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  35. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  36. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  37. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  38. 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

    Definition Classes
    XmlNode
  39. 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

    Definition Classes
    XmlNode
  40. final def toGroup: 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.

    Definition Classes
    XmlNode
  41. def toNode(label: String, attributes: List[XmlAttribute] = Nil): Node

    Convert current instance to a XmlNode.Node.

    Convert current instance to a XmlNode.Node.

    Wrap the group with a new XmlNode

    // before
    <Foo a="1">
    <Foo a="2">
    <Foo a="3">
    
    // after
    <Bar>
      <Foo a="1">
      <Foo a="2">
      <Foo a="3">
    </Bar>
    label

    name of the wrapper node

    attributes

    attributes of the wrapper node, could be empty

    returns

    An XmlNode with contains the current group nodes as children.

    Annotations
    @impure()
  42. final def toString(): String
    Definition Classes
    Xml → AnyRef → Any
  43. def unsafeNarrowGroup: Group
    Definition Classes
    XmlNode
    Annotations
    @impure()
  44. def unsafeNarrowNode: Node
    Definition Classes
    XmlNode
    Annotations
    @impure()
  45. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  46. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  47. 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 XmlNode

Inherited from Xml

Inherited from AnyRef

Inherited from Any

Ungrouped