Root

cats.xml.cursor.NodeCursor$.Root$
case object Root extends NodeCursor

Attributes

Graph
Supertypes
trait Singleton
trait Product
trait Mirror
trait Product
trait Equals
trait Serializable
trait Dynamic
class Object
trait Matchable
class Any
Self type
Root.type

Members list

Concise view

Type members

Inherited types

override type Focus = HFocus

Attributes

Inherited from:
VCursor
type MirroredElemLabels = EmptyTuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Singleton
type MirroredElemTypes = EmptyTuple

Attributes

Inherited from:
Singleton
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror
type MirroredMonoType = Singleton.this.type

The mirrored *-type

The mirrored *-type

Attributes

Inherited from:
Singleton
type MirroredType = Singleton.this.type

Attributes

Inherited from:
Singleton

Value members

Concrete methods

override def focus(xml: XmlNode): Result[XmlNode]

Apply the current cursor to the specified input. This allows to select a precise part of the Xml tree.

Apply the current cursor to the specified input. This allows to select a precise part of the Xml tree.

The method is pure and return a Left when the focusing fails

Attributes

input

target of the cursor

Returns:

Right when succeed Left when fail

Definition Classes
override def history: List[Op]

Attributes

Definition Classes

Inherited methods

Attributes

Inherited from:
NodeCursor
def \(nodeName: String): NodeCursor

Attributes

Inherited from:
NodeCursor
def \\(nodeName: String): NodeCursor

Attributes

Inherited from:
NodeCursor
def andThen(nextNodeCursor: NodeCursor): NodeCursor

Attributes

Inherited from:
NodeCursor
def apply(index: Int): NodeCursor

Attributes

Inherited from:
NodeCursor
def applyDynamic(nodeName: String)(index: Int): NodeCursor

Attributes

Inherited from:
NodeCursor
def as[T : Decoder]: FreeCursor[Xml, T]

Create a FreeCursor which represent a cursor with a free T type as result of the focusing, this implies that a Decoder instance is need to convert the fixed Xml type of the Cursor to the free T type of the FreeCursor.

Create a FreeCursor which represent a cursor with a free T type as result of the focusing, this implies that a Decoder instance is need to convert the fixed Xml type of the Cursor to the free T type of the FreeCursor.

So, practically speaking, when the FreeCursor is applied this Cursor is applied and the result is decoded using the specified Decoder for type T.

Attributes

T

free type in which decode the current cursor result

Returns:

A new FreeCursor

Inherited from:
Cursor
def atIndex(index: Int): NodeCursor

Attributes

Inherited from:
NodeCursor
def attr(key: String): AttrCursor

Attributes

Inherited from:
NodeCursor
def attrAt(index: Long): AttrCursor

Attributes

Inherited from:
NodeCursor

Attributes

Inherited from:
NodeCursor

Attributes

Inherited from:
NodeCursor
def deepDown(nodeName: String): NodeCursor

Attributes

Inherited from:
NodeCursor
def down(nodeName: String): NodeCursor

Attributes

Inherited from:
NodeCursor
def downPath(path: String): NodeCursor

Attributes

Inherited from:
NodeCursor

Attributes

Inherited from:
NodeCursor
final override def equals(obj: Any): Boolean

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 type Any, x.equals(x) should return true.
  • It is symmetric: for any instances x and y of type Any, x.equals(y) should return true if and only if y.equals(x) returns true.
  • It is transitive: for any instances x, y, and z of type Any if x.equals(y) returns true and y.equals(z) returns true, then x.equals(z) should return true.

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)).

Attributes

that

the object to compare against this object for equality.

Returns:

true if the receiver object is equivalent to the argument; false otherwise.

Definition Classes
NodeCursor -> Any
Inherited from:
NodeCursor
def filter(p: XmlNode => Boolean): NodeCursor

Attributes

Inherited from:
NodeCursor
def find(p: XmlNode => Boolean): NodeCursor

Attributes

Inherited from:
NodeCursor
def fromProduct(p: Product): MirroredMonoType

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:
NodeCursor

Attributes

Inherited from:
NodeCursor
override def modify(modifier: () => XmlNode): Modifier[XmlNode]

Attributes

Definition Classes
NodeCursor -> WithModifierSupport
Inherited from:
NodeCursor
def modifyIfGroup(modifier: () => Group): Modifier[XmlNode]

Attributes

Inherited from:
NodeCursor
def modifyIfNode(modifier: () => Node): Modifier[XmlNode]

Attributes

Inherited from:
NodeCursor

Attributes

Inherited from:
NodeCursor
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product
def selectDynamic(nodeName: String): NodeCursor

Attributes

Inherited from:
NodeCursor

Attributes

Inherited from:
NodeCursor
final override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns:

a string representation of the object.

Definition Classes
Cursor -> Any
Inherited from:
Cursor
final def up: VC

Attributes

Inherited from:
VCursor
def |(p: XmlNode => Boolean): NodeCursor

Attributes

Inherited from:
NodeCursor

Concrete fields

override val isRoot: Boolean

Inherited fields

final lazy override val path: String

A String representation of the cursor.

A String representation of the cursor.

Attributes

Returns:

a String which represent the cursor path

Inherited from:
NodeCursor