sealed trait XmlNode extends Xml
- Alphabetic
- By Inheritance
- XmlNode
- Xml
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
- 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
- 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
- abstract def duplicate: XmlNode
Create a new immutable instance with the same values of the current one
- abstract def label: String
Get the node label value
Get the node label value
<Foo></Foo> //foo
- returns
node label string
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 asAttribute: Option[XmlAttribute]
- Definition Classes
- Xml
- final def asData: Option[XmlData]
- Definition Classes
- Xml
- final def asGroup: Option[XmlNode.Group]
- Definition Classes
- Xml
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- final def asNode: Option[Node]
- Definition Classes
- Xml
- def children: Seq[XmlNode]
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(obj: Any): Boolean
- Definition Classes
- Xml → AnyRef → Any
- 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
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- def hasAllAttributes(keyValue: (String, String), keyValues: (String, String)*): Boolean
- def hasAllAttributes(value: (XmlAttribute) => Boolean, values: (XmlAttribute) => Boolean*): Boolean
- def hasAllAttributesKeys(key: String, keys: String*): Boolean
- def hasAllAttributesKeys(key: (String) => Boolean, keys: (String) => Boolean*): Boolean
- 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
- def hasChildren: Boolean
Check if the node has children
Check if the node has children
- returns
true
if the node has children,false
otherwise
- 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. Alwaysfalse
if node is XmlNode.Group
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- final lazy val isAttribute: Boolean
- Definition Classes
- Xml
- final lazy val isData: Boolean
- Definition Classes
- Xml
- 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
- 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
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final lazy val isNode: Boolean
- Definition Classes
- Xml
- final lazy val isNull: Boolean
- Definition Classes
- Xml
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- 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
- 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
- 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.
- final def toString(): String
- Definition Classes
- Xml → AnyRef → Any
- def unsafeNarrowGroup: XmlNode.Group
- Annotations
- @impure()
- def unsafeNarrowNode: Node
- Annotations
- @impure()
- 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()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)