package xtract

Created by thayne on 2/2/15.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. xtract
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. case class AttributedXPathNode(attr: String, value: Option[String]) extends XPathNode with Product with Serializable
  2. trait DefaultXmlReaders extends AnyRef
  3. trait DoubleReaderExtensions extends AnyRef
  4. case class EmptyError(path: XPath = XPath) extends PathError with Product with Serializable

    A PathError indicating that the path was missing.

  5. case class IdxXPathNode(idx: Int) extends XPathNode with Product with Serializable
  6. trait IterableReaderExtensions extends AnyRef
  7. case class KeyXPathNode(key: String) extends XPathNode with Product with Serializable
  8. case class MinCountError(atLeast: Int) extends ValidationError with Product with Serializable

    A ValidationError indicating there weren't enough entries.

  9. case class MismatchedLabelError(label: String, path: XPath = XPath) extends PathError with Product with Serializable

    A PathError indicating that the node(s) at the specified path did not have the expected tag label.

  10. case class MultipleMatchesError(path: XPath = XPath) extends PathError with Product with Serializable

    A PathError indicating that the path matched multiple nodes, and only one was expected.

  11. trait ParseError extends AnyRef

    Top level types for errors encountered while reading xml with an XmlReader.

  12. case class ParseFailure(errors: Seq[ParseError]) extends ParseResult[Nothing] with Product with Serializable

    A ParseResult indicating a failed

  13. sealed trait ParseResult[+A] extends AnyRef

    Trait containing the result of an XmlReader.

    Trait containing the result of an XmlReader. It can contain one of the following:

    • ParseSuccess indicates a completely successful result
    • ParseFailure indicates a completely failed result
    • PartialParseSuccess indicates there were recoverable errors and contains both the result and a list of errors that occurred.
  14. case class ParseSuccess[+A](get: A) extends ParseResult[A] with Product with Serializable

    A ParseResult indicating a completely successful parse.

  15. case class PartialParseSuccess[+A](get: A, errors: Seq[ParseError]) extends ParseResult[A] with Product with Serializable

    A ParseResult indicating a successful parse that had recoverable errors.

    A ParseResult indicating a successful parse that had recoverable errors.

    Contains both a result value and a list of errors.

  16. trait PathError extends ValidationError

    A ValidationError indicating that the input NodeSeq didn't have the expected XPath.

  17. case class RangeError[T](min: T, max: T) extends ValidationError with Product with Serializable

    A ValidationError indicating the value was outside the expected range.

  18. case class RecursiveWildCardXPathNode(regex: Regex) extends XPathNode with Product with Serializable
  19. case class RecursiveXPathNode(key: String) extends XPathNode with Product with Serializable
  20. case class TypeError[A](tp: Class[A]) extends ValidationError with Product with Serializable

    A ValidationError indicating that the input wasn't the correct type.

    A ValidationError indicating that the input wasn't the correct type. For example, if an integer was expected, but the input text couldn't be parsed as an integer.

    tp

    The Class opject for the expected type.

  21. trait ValidationError extends ParseError

    A ParseError caused by some sort of failed validation.

  22. case class WildCardXPathNode(regex: Regex) extends XPathNode with Product with Serializable
  23. case class XPath(path: List[XPathNode] = Nil) extends Product with Serializable

    Class representing an xpath.

    Class representing an xpath. It can be applied to a NodeSeq to get a NodeSeq located at that path.

    path

    A sequence of XPathNodes to recursively walk down the XML tree to the location of the path.

  24. sealed trait XPathNode extends Function[NodeSeq, NodeSeq]
  25. trait XmlReader[+A] extends AnyRef

    An abstraction for a function that takes a NodeSeq and returns a ParseResult.

    An abstraction for a function that takes a NodeSeq and returns a ParseResult.

    It is used to parse XML to arbitrary scala objects, and supports combinatorial syntax to easily compose XmlReaders into new XmlReaders.

  26. trait XmlReaderExtensions extends IterableReaderExtensions with DoubleReaderExtensions

Value Members

  1. val __: XPath.type

    Alias for the root XPath

  2. object ParseFailure extends Serializable
  3. object ParseResult
  4. object XPath extends XPath

    The root XPath path.

  5. object XmlReader extends DefaultXmlReaders with XmlReaderExtensions

Inherited from AnyRef

Inherited from Any

Ungrouped