trait XmlSource[-A] extends Serializable
Type class for turning instances of A
into valid instances of Node.
While it's certainly possible, instances of XmlSource are rarely used directly. The preferred, idiomatic way
is to use the implicit syntax provided by XmlSourceOps, brought in scope by
importing kantan.xpath.ops._
.
See the companion object for construction methods and default instances.
- Self Type
- XmlSource[A]
- Source
- XmlSource.scala
- Alphabetic
- By Inheritance
- XmlSource
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
- abstract def asNode(a: A): ParseResult[Node]
Turns the specified value into a Node.
Turns the specified value into a Node.
Results are wrapped in a ParseResult, which makes this method safe. For an unsafe alternative, see asUnsafeNode.
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 asInstanceOf[T0]: T0
- Definition Classes
- Any
- def asUnsafeNode(a: A): Node
Turns the specified value into a Node.
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def contramap[B](f: (B) => A): XmlSource[B]
Turns an
XmlSource[A]
into anXmlSource[B]
.Turns an
XmlSource[A]
into anXmlSource[B]
.- See also
- def contramapResult[AA <: A, B](f: (B) => ParseResult[AA]): XmlSource[B]
Turns an
XmlSource[A]
into anXmlSource[B]
.Turns an
XmlSource[A]
into anXmlSource[B]
.- See also
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def eval[B](a: A, expr: Query[DecodeResult[B]]): ReadResult[B]
Evaluates the specified XPath expression against specified value.
- def eval[B](a: A, expr: XPathExpression)(implicit arg0: Compiler[B]): XPathResult[B]
Compiles the specified XPath expression and evaluates it against the specified value.
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def unsafeEval[B](a: A, expr: Query[DecodeResult[B]]): B
Evaluates the specified XPath expression against specified value.
Evaluates the specified XPath expression against specified value.
- Annotations
- @SuppressWarnings()
- def unsafeEval[B](a: A, expr: XPathExpression)(implicit arg0: Compiler[B]): B
Compiles the specified XPath expression and evaluates it against specified value.
Compiles the specified XPath expression and evaluates it against specified value.
- Annotations
- @SuppressWarnings()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- 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()