Attributes
- Companion
- object
- Graph
-
- Supertypes
- Known subtypes
Members list
Value members
Abstract methods
Get the node label value
Get the node label value
<Foo a="1" b="2" ></Foo> //a="1" b="2"
Attributes
- Returns
-
list of node attributes
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
Attributes
- Returns
-
Node content instance
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
Attributes
- Returns
-
A new instance with the same values of the current one
Get the node label value
Get the node label value
<Foo></Foo> //foo
Attributes
- Returns
-
node label string
Concrete methods
Build and apply a Cursor
to this XmlNode
instance.
Build and apply a Cursor
to this XmlNode
instance.
Type parameters
- X
-
type of the focusing output
Value parameters
- f
-
function to build the cursor
Attributes
- Returns
-
Cursor result, Left when fails Right when succeed
Build and apply a FreeCursor
to this XmlNode
instance.
Build and apply a FreeCursor
to this XmlNode
instance.
Type parameters
- T
-
type of the focusing output
Value parameters
- f
-
function to build the cursor
Attributes
- Returns
-
Cursor result, Left when fails Right when succeed
Type parameters
- T
-
result type parameter
Value parameters
- ifGroup
-
Function invoked when the current node is of type Group
- ifNode
-
Function invoked when the current node is of type Node
Attributes
- Returns
-
T value
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.
Attributes
- Returns
-
true
if the node has a child with specified label which satisfies the predicate,false
otherwise
Check if the node has children
Check if the node has children
Attributes
- Returns
-
true
if the node has children,false
otherwise
Check is the node has text
Check is the node has text
Attributes
- Returns
-
true
if the node has text content,false
otherwise. Alwaysfalse
if node is XmlNode.Group
Check if the node has empty content
Check if the node has empty content
Attributes
- Returns
-
true
if node content is empty,false
otherwise
Get node text data
Get node text data
Attributes
- Returns
-
Node text if the content contains text. Always
None
if node is XmlNode.Group
Get node text as string
Get node text as string
Attributes
- Returns
-
Node text if the content contains text. Always
None
if node is XmlNode.Group
Convert the node to a group. If this instance already is a group it will be returned the same instance.
Convert the node to a group. If this instance already is a group it will be returned the same instance.
Attributes
Inherited methods
Attributes
- Inherited from:
- Xml
Compares the receiver object (this
) with the argument object (that
) for equivalence.
Compares the receiver object (this
) with the argument object (that
) for equivalence.
Any implementation of this method should be an equivalence relation:
- It is reflexive: for any instance
x
of typeAny
,x.equals(x)
should returntrue
. - It is symmetric: for any instances
x
andy
of typeAny
,x.equals(y)
should returntrue
if and only ify.equals(x)
returnstrue
. - It is transitive: for any instances
x
,y
, andz
of typeAny
ifx.equals(y)
returnstrue
andy.equals(z)
returnstrue
, thenx.equals(z)
should returntrue
.
If you override this method, you should verify that your implementation remains an equivalence relation. Additionally, when overriding this method it is usually necessary to override hashCode
to ensure that objects which are "equal" (o1.equals(o2)
returns true
) hash to the same scala.Int. (o1.hashCode.equals(o2.hashCode)
).
Value parameters
- that
-
the object to compare against this object for equality.
Attributes
Concrete fields
Check if the node is a group
Check if the node is a group
Attributes
- Returns
-
true
if node is a group,false
otherwise