XmlNull
Attributes
- Graph
-
- Supertypes
- Self type
-
XmlNull.type
Members list
Type members
Inherited types
The names of the product elements
The names of the product elements
Attributes
- Inherited from:
- Singleton
Attributes
- Inherited from:
- Singleton
The name of the type
The name of the type
Attributes
- Inherited from:
- Mirror
The mirrored *-type
The mirrored *-type
Attributes
- Inherited from:
- Singleton
Attributes
- Inherited from:
- Singleton
Attributes
- Inherited from:
- Null (hidden)
Value members
Concrete methods
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
- Returns
-
true
if the receiver object is equivalent to the argument;false
otherwise. - Definition Classes
Inherited methods
Attributes
- Inherited from:
- Xml
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
- Definition Classes
-
Null -> XmlNode
- Inherited from:
- Null (hidden)
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
- Definition Classes
-
Null -> XmlNode
- Inherited from:
- Null (hidden)
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
- Inherited from:
- XmlNode
Create a new instance of type T
with elements taken from product p
.
Create a new instance of type T
with elements taken from product p
.
Attributes
- Inherited from:
- Singleton
Attributes
- Inherited from:
- XmlNode
Attributes
- Inherited from:
- XmlNode
Attributes
- Inherited from:
- XmlNode
Attributes
- Inherited from:
- XmlNode
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 - Inherited from:
- XmlNode
Check if the node has children
Check if the node has children
Attributes
- Returns
-
true
if the node has children,false
otherwise - Inherited from:
- XmlNode
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 - Inherited from:
- XmlNode
Get the node label value
Get the node label value
<Foo></Foo> //foo
Attributes
- Returns
-
node label string
- Definition Classes
-
Null -> XmlNode
- Inherited from:
- Null (hidden)
Attributes
- Inherited from:
- Product
Attributes
- Inherited from:
- Product
Get node text data
Get node text data
Attributes
- Returns
-
Node text if the content contains text. Always
None
if node is XmlNode.Group - Inherited from:
- XmlNode
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 - Inherited from:
- XmlNode
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 from:
- XmlNode
Attributes
- Inherited from:
- XmlNode
Attributes
- Inherited from:
- XmlNode