Trait/Object

kantan.xpath

XmlSource

Related Docs: object XmlSource | package xpath

Permalink

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]
Linear Supertypes
Serializable, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. XmlSource
  2. Serializable
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def asNode(a: A): ParseResult[Node]

    Permalink

    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

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def asUnsafeNode(a: A): Node

    Permalink

    Turns the specified value into a Node.

    Turns the specified value into a Node.

    This method is unsafe - it will throw an exception should any error occur during parsing. For a safe alternative, see asNode.

    Annotations
    @SuppressWarnings()
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def contramap[B](f: (B) ⇒ A): XmlSource[B]

    Permalink

    Turns an XmlSource[A] into an XmlSource[B].

    Turns an XmlSource[A] into an XmlSource[B].

    See also

    contramapResult.

  8. def contramapResult[AA <: A, B](f: (B) ⇒ ParseResult[AA]): XmlSource[B]

    Permalink

    Turns an XmlSource[A] into an XmlSource[B].

    Turns an XmlSource[A] into an XmlSource[B].

    See also

    contramap

  9. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  11. def eval[B](a: A, expr: Query[DecodeResult[B]]): ReadResult[B]

    Permalink

    Evaluates the specified XPath expression against specified value.

  12. def eval[B](a: A, expr: XPathExpression)(implicit arg0: Compiler[B]): XPathResult[B]

    Permalink

    Compiles the specified XPath expression and evaluates it against the specified value.

  13. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  15. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  16. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  17. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  18. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  19. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  20. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  21. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  22. def unsafeEval[B](a: A, expr: Query[DecodeResult[B]]): B

    Permalink

    Evaluates the specified XPath expression against specified value.

    Evaluates the specified XPath expression against specified value.

    Annotations
    @SuppressWarnings()
  23. def unsafeEval[B](a: A, expr: XPathExpression)(implicit arg0: Compiler[B]): B

    Permalink

    Compiles the specified XPath expression and evaluates it against specified value.

    Compiles the specified XPath expression and evaluates it against specified value.

    Annotations
    @SuppressWarnings()
  24. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped